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.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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.
allowed-tools
Read, Grep, Glob, Bash
Order Processing
When to use
Designing or implementing an order state machine with explicit transitions and audit logging
Building fulfillment workflows (pick/pack/ship, WMS push, partial fulfillment handling)
Implementing split shipments for multi-location or mixed-availability orders
Building a returns and exchanges (RMA) flow with inspection and refund/exchange logic
Setting up order event sourcing for audit trail and async downstream processing
Generating invoices and receipts with legally required fields
Wiring up order notification pipelines (confirmation, shipping, delivery, refund)
Core principles
State transitions must be explicit and validated — reject invalid transitions with errors; no silent state drift
Every transition is an event — store the full history in order_events, not just the current state
Atomic state + event writes — update order state AND record the event in a single transaction
Fulfillment failures need a path — partial fulfillment and split shipments must be first-class states, not edge cases
Notification dispatch must be idempotent — order events can be processed more than once; guard against duplicate sends
Reference Files
references/state-machine-fulfillment.md — order state definitions, allowed transitions, implementation patterns, pick/pack/ship workflow, WMS integration, split shipments, invoice generation
references/returns-events-notifications.md — RMA flow, return policies, exchange handling, order event sourcing design, customer and internal notification channels