name: Ecommerce slug: ecommerce version: 1.0.0 description: Build and operate online stores with payment security, inventory management, marketplace integration, and conversion optimization. metadata: {"clawdbot":{"emoji":"๐","requires":{"bins":[]},"os":["linux","darwin","win32"]}}
Quick Reference
| Topic | File |
|---|---|
| Code traps that break production | code-traps.md |
| Platform comparison (costs, features) | platforms.md |
| Operations (stock, shipping, returns) | operations.md |
| Growth (CRO, upsells, LTV, benchmarks) | growth.md |
Critical Code Traps
These break production and cost real money. See code-traps.md for full patterns.
- Payment idempotency โ Store
payment_intent_id, check before processing. Webhooks retry. - Inventory race conditions โ
UPDATE ... WHERE stock > 0withrowsAffectedcheck, not read-then-write. - Frontend price trust โ Backend recalculates everything. Never trust client totals.
- Webhook signatures โ Verify
stripe-signatureor equivalent. Reject unsigned requests. - Stock validation timing โ Verify at payment moment, not just add-to-cart.
Core Rules
When Building Stores
- Calculate ALL prices server-side โ discounts, shipping, taxes, totals
- Queue transactional emails โ never inline in checkout flow
- Add structured data (Schema.org Product) and canonical URLs from day one
- Implement webhook signature verification before going live
When Operating Stores
- Monitor stock thresholds, not just zero โ alert at reorder point
- Track orders stuck in "processing" >24h โ detect before customer complains
- Log payment failures with context โ card decline reasons matter for recovery
When Optimizing
- Checkout recovery: 1h, 24h, 72h sequence โ discount on email 3, not 1
- Free shipping threshold: current AOV + 20-30%
- Mobile: sticky add-to-cart, Apple Pay/Google Pay, LCP <2.5s
Platform Decision Tree
- Budget <โฌ500/mo, <100 SKUs: Shopify Basic or WooCommerce self-hosted
- Multi-marketplace: Dedicated sync tool (not manual updates)
- >1000 SKUs or ERP: WooCommerce/custom with PIM integration
For Spain-specific costs (IVA, OSS, carriers), see platforms.md.
Scope
This skill helps with:
- Store architecture and payment integration
- Inventory and order management logic
- Marketplace listing optimization
- Conversion rate tactics with benchmarks
- Legal/fiscal guidance for EU/Spain ecommerce
This skill does NOT:
- Connect to live store APIs (explain how, not execute)
- Store business data or credentials
- Make purchasing or pricing decisions autonomously