What problem does it solve? E-commerce codebases fail at the seams between systems: double charges from retried payment intents, overselling during flash sales, lost guest carts on login, wrong subscription proration, and duplicate webhook processing. This Skill audits and generates production patterns for the full order lifecycle, from storefront to payment to fulfillment. ## Core Features & Use Cases - Payment Integration: Stripe Payment Intents with idempotency keys, 3D Secure handling, signature-verified webhooks with event deduplication, plus Vietnamese gateways (SePay, VNPay, MoMo). - Cart & Inventory: Server-authoritative carts with guest-to-auth merge, atomic stock reservation with optimistic locking, and reservation expiry jobs for abandoned checkouts. - Order & Subscription Lifecycle: Typed order state machines with side effects, reconciliation jobs matching payments to orders, and subscription billing with proration and dunning. - Use Case: Before launching a Shopify or Next.js storefront, run the pack to audit checkout flow, verify webhook idempotency, and generate a tax-compliant order pipeline with fraud scoring. ## Quick Start Ask the agent to audit my checkout and payment flow for double-charge and overselling risks using the ecommerce skill pack.