Ecommerce
Installation
SKILL.md
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.