From shopware-checkout
LineItems im Shopware-6-Warenkorb: LineItem erzeugen/hinzufügen (LineItemFactory/CartService), Typen (product/promotion/ custom), Payload, Label/Quantity/Preis, eigener LineItem-Typ. Trigger: "LineItem", "Warenkorb-Position", "addLineItem", "LineItemFactoryRegistry", "custom line item", "cart add product", "LineItem payload". Shopware 6.7.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shopware-checkout:sw-cart-line-itemThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Eine Warenkorb-Position ist ein `LineItem` (Typ z.B. `product`, `promotion`, `custom`/eigener Typ). Hinzufügen über
Eine Warenkorb-Position ist ein LineItem (Typ z.B. product, promotion, custom/eigener Typ). Hinzufügen über
den CartService bzw. die Store-API.
$lineItem = $this->lineItemFactory->create([
'type' => LineItem::PRODUCT_LINE_ITEM_TYPE, 'referencedId' => $productId, 'quantity' => 2,
], $context);
$this->cartService->add($cart, $lineItem, $context);
Eigene Typen über einen LineItemFactoryHandler registrieren. Payload trägt eigene Daten; Preis wird vom Processor
berechnet (nie hart setzen). Verschachtelte Positionen (Bundles/Sets): sw-nested-line-items. Add/Remove im
Storefront/Headless über die Store-API (shopware-api → sw-store-api-endpoints).
npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-checkoutCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.