/design-engine:pos-and-retail-operationsfrom design-engine
Designs, audits, or implements tenant-aware point-of-sale workflows for retail/field-sales ERP systems where products, stock, customers, payments, and inventory must stay aligned.
Ships in design-engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill owns the operational POS contract: a fast sale entry surface whose customer, product, inventory, payment, permission, and accounting decisions are explicit, repeatable, and auditable.
ecommerce-and-checkout-ux.04-web-and-ui-design skill.| Artefact or context | Source | Required? | Why |
|---|---|---|---|
| Product-to-finished-stock map | Product and inventory owners | yes | Determines what may be sold and deducted |
| Manufacturing recipes and component rules | Manufacturing owner | yes when applicable | Ingredients are consumed at manufacture |
| Tenant, branch, store, and sales-agent permissions | Engineering and operations | yes | Prevents cross-tenant or cross-surface leakage |
| Customer and payment rules | Finance and sales owners | yes | Establishes default, credit, tender, and receipt behaviour |
| Supported devices and operator journeys | Research and operations | yes | Determines scan, search, list, card, and recovery treatment |
Keep these surfaces distinct in copy, permissions, telemetry, and code:
pos.php — the general shop or tenant point of sale.agent-pos.php — sales posted strictly on behalf of a sales agent.encode-sales.php — manual entry of a sale that has already occurred.They may share presentation components and the canonical posting service, but they must not silently become interchangeable workflows. A separate bulk order-to-cash process owns quote, customer order, delivery, invoice, and payment collection.
Each tenant has one configured generic default customer, normally named “Walk-in”. It is selected in tenant/franchise settings. Super administrators, max administrators, and a tenant user granted the dedicated configuration permission may change it.
All three POS surfaces must resolve the same server-side tenant setting on load. They must not search for names containing “cash” or “walk”, choose the first active customer, or allow a sales-point default to replace the tenant default. A missing or inactive configuration is a visible configuration state, not permission to guess.
The operator may replace the default with a named customer before posting; the default is an initial state, not a hidden override of an intentional choice.
The operator sells a product. Each saleable product has one matching finished stock item (1:1). The product carries customer-facing name, image, category, price, and description; the stock item carries inventory identity, unit of measure, batches, cost, and balance. The UI must never present ingredients, packaging, or arbitrary raw stock items as sellable products.
Manufacturing consumes recipe ingredient stock items and produces the mapped finished stock item. Selling a product deducts its mapped finished stock item, not its recipe ingredients. Availability, FEFO/batch selection, costing, and the ledger must use that mapping at the service boundary.
The primary loop is: identify operator context → confirm customer → find a product → show price and available quantity → add or edit quantity → choose tender or credit → review total → post once → show receipt/reference.
Make the current branch/store/agent context visible. Make product name and finished-stock availability more prominent than internal codes. Keep the cart editable, totals stable, and errors attached to the affected line. Preserve a server-generated idempotency key across retries; never create duplicate sales because a payment modal or network response was slow.
All three surfaces call the same posting service or an explicit adapter into it. The transaction boundary must atomically validate tenant, permissions, customer, product mapping, batch/stock availability, price, invoice, payment, stock deduction, GL posting, and audit lineage. A UI “success” state is not evidence; verify the persisted invoice, payment, stock ledger, and journal.
Use a restrained, high-contrast operational hierarchy: one clear primary action, a persistent cart summary, visible context, and short recovery copy. Choose a deliberate typeface pairing rather than a default dashboard font; state the choice and test number legibility at the operator’s likely distance. Use color for state (available, warning, blocked, paid) with text or icons as the redundant cue. Apply the design doctrine, WCAG 2.2, and the host product’s tokens; do not invent a decorative POS skin disconnected from the product.
| Condition | Action | Wrong-choice failure |
|---|---|---|
| Tenant default exists and active | Auto-load it in all three POS surfaces | Divergent customer attribution |
| Default missing or inactive | Show configuration warning and block unassigned posting | Silent sale to an arbitrary customer |
| Named customer deliberately selected | Preserve the selection through review and post | Resetting it on branch/product changes |
| Product has no active 1:1 finished-stock mapping | Hide/block it from POS and report the data defect | Selling ingredients or an unmapped phantom |
| Recipe ingredient stock is low | Stop manufacturing or warn manufacturing workflow | Deducting ingredients at sale |
| Finished stock is low | Block the sale or show the exact shortage | Allowing negative stock invisibly |
| Payment request times out | Retry the same idempotency key and reconcile status | Creating a duplicate invoice/payment |
| User has branch sales rights but no plant rights | Keep plant/job data out of POS and plant screens | Treating branch access as plant access |
| Artefact | Consumer | Evidence and acceptance condition |
|---|---|---|
| POS surface contract | Product, design, and engineering | Three surfaces and the separate bulk workflow are named |
| Default-customer rule | Tenant administrators and QA | One server-resolved customer is shown in all three screens |
| Product-stock mapping contract | Inventory and manufacturing | Product sale and manufacturing deduction paths are distinct |
| Operator interaction spec | Design and frontend | Primary loop, states, recovery, and accessibility are testable |
| Posting verification record | Finance, audit, and engineering | Invoice/payment/stock/GL evidence reconciles with one idempotency key |
See examples/pos-and-retail-operations-worked.md for a Nile Harvest-style
multi-surface walkthrough covering a configured Walk-in customer, a mapped
finished product, manufacturing consumption, sale deduction, and retry-safe
payment.
skills/09-design-systems-tokens-and-theming/chwezi-business-app-house-style/SKILL.md (one amber next-step button, task screens use line icons only)doctrine/design-doctrine.mdgovernance/design-quality-gate.mdskills/06-sector-and-domain-ux/ecommerce-and-checkout-ux/SKILL.mdskills/00-cross-cutting-ops-qa-a11y/accessibility-wcag-2-2-compliance/SKILL.mdskills/04-web-and-ui-design/form-ux-design/SKILL.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionUse when art-directing advertising or campaign creative - copy and image relationships, poster and cover tests, triplet or cousin campaign systems, big-idea tests across channels, a 7-point effectiveness screen, critique and ad layout specs handed back to the marketing engine. Use art-direction-routes for brand or website directions./ai-agent-uxUse when an AI agent or copilot interface needs status, plans, approvals, uncertainty, interruption, or trust controls across web or mobile. Do not use for formatting a single AI answer; route output structure and citations to ai-output-design./ai-image-generation-art-directionUse when turning an art-direction brief into generated imagery, prompts, negative constraints, reject gates, provenance notes, and post-processing instructions. Use photography-art-direction for sourced photos and visual-product-slop-audit for product-wide review./ai-output-designUse when an AI answer surface needs structure, citations, grounding, editable refinement, or a chat-versus-canvas decision. Do not use for agent autonomy, approvals, or execution status; route those interaction controls to ai-agent-ux.