Order processing

From rnavarych/alpha-engineer · View interactive version

Order processing is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Order processing for e-commerce: order state machine (pending through delivered/cancelled/returned), fulfillment workflows, returns/exchanges (RMA), invoice/receipt generation, order event sourcing, split shipments, and order notifications.

How to use this skill

Skill file

Order Processing

When to use

Core principles

  1. State transitions must be explicit and validated — reject invalid transitions with errors; no silent state drift
  2. Every transition is an event — store the full history in order_events, not just the current state
  3. Atomic state + event writes — update order state AND record the event in a single transaction
  4. Fulfillment failures need a path — partial fulfillment and split shipments must be first-class states, not edge cases
  5. Notification dispatch must be idempotent — order events can be processed more than once; guard against duplicate sends

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.