From ccds-ecom
Coupons, discounts, gift cards, loyalty, and promotion-stacking rules. Auto-invoked when designing promo logic, debugging unexpected discount totals, or integrating loyalty / store-credit systems.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ccds-ecom:ecom-promotionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Promotions are the most error-prone code in e-commerce — a single stacking bug
Promotions are the most error-prone code in e-commerce — a single stacking bug can discount the whole catalog to zero during peak, and gift cards are bearer instruments that fraud rings actively probe.
(cart, customer, context) → discount_lines,
no hidden mutation — identical inputs always reproduce identical outputs,
which is the only way to audit a disputed total.promo_id, rule_version, discount_amount, cart context) — without
it, attribution, abuse detection, and finance reconciliation are guesswork.Also worth a regression suite: replay historical orders against the current engine pinned to their stored rule-set version — totals must match to the cent.
Related: ecom-tax (discount-before-tax vs after-tax treatment),
ecom-payments (gift card as tender, refund-to-card), ecom-inventory
(reserving BOGO/bundle components) · domain agent: ecom-architect
(promotions-engine boundary) · output/ADR format: playbook-conventions
npx claudepluginhub ggrace519/claude-code-dev-studio --plugin ccds-ecomProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.