This post is written as part of the **Kiroween 2026 hackathon.

When building a Point-of-Sale (POS) system, most teams end up maintaining completely separate codebases for a café and a retail store duplicating cart math, stock tracking, receipts, and shift reports just because one vertical needs tables and kitchen tickets while the other needs barcode scanning.

For Kiroween 2026 (Skeleton Crew category), I built KIRO POS: one lean, strongly typed POS core engine that powers two complete production applications KIRO Café & F&B (/cafe) and KIRO Retail Store (/retail) plus a conversational AI copilot (Kiro Chat) with human-in-the-loop approval guardrails.

What made this build different wasn't just the final app it was how Kiro IDE changed my engineering workflow from ad-hoc "vibe coding" into an auditable, invariant-driven build.

1. The Skeleton Crew Architecture: Zero Core Forks

Instead of littering business logic with if (preset === "fnb") branches, every vertical lives in its own folder under apps/ (apps/cafe-pos and apps/retail-pos) and declares a single typed AppConfig registered in src/lib/app-registry.ts:

export const APP_CONFIGS: Record<BusinessPreset, AppConfig> = { fnb: CAFE_APP_CONFIG, retail: RETAIL_APP_CONFIG, } 
  • KIRO Café & F&B (/cafe): serviceChargeRate: 0.05, taxRate: 0.10, tables: true, kitchenTicket: true, barcodeScan: false
  • KIRO Retail Store (/retail): serviceChargeRate: 0, taxRate: 0.10, tables: false, kitchenTicket: false, barcodeScan: true

Cart totals, split payments, receipts, kitchen tickets, barcode search, the Settings Blueprint card, and Kiro Chat all read directly from AppConfig. Adding a third vertical (such as a Pharmacy or Salon) only requires adding one config, one catalog, and one route the compiler enforces registration via Record<BusinessPreset, AppConfig>.

2. How Kiro Powered the Build (Everything Inside /.kiro)

Scoped Steering Docs (always + fileMatch)

One of Kiro's biggest unlocks for me was file-matched steering in .kiro/steering/:

  • Always-included (product.md, tech.md, structure.md): Enforced strict TypeScript (zero any), kebab-case file naming, USD/English UI constants, and the apps/ vs src/ Skeleton Crew boundary.
  • Scoped via fileMatch (pos-rules.md, chat-safety.md): Only injected when editing POS stores/components or Chat files. pos-rules.md locked down the exact financial order (item discounts → order discount → 5% service charge in F&B only → 10% tax → half-up rounding) and stock conservation rules, while chat-safety.md guaranteed that sensitive AI actions (order discounts, checkout, clear cart, void) can never auto-execute they must emit a PENDING Proposal Card and only run via approveProposal in src/store/chat-store.ts.

Spec-Driven Development vs. Vibe Coding

I broke the project into four structured specs under .kiro/specs/ (core-pos, chat-copilot, checkout-receipt, and shift-reports-settings), each with requirements.md, design.md, and tasks.md. Unlike pure vibe coding where edge cases like cash variance, split payments, or expired proposals silently break during refactors specs gave Kiro an explicit contract to validate against every time we refactored toward the Skeleton Crew architecture.

Three Automated PostFileSave Agent Hooks

In .kiro/hooks/, I combined deterministic command hooks with an AI safety audit hook:

  1. typecheck-on-save.json (command): Runs npx tsc --noEmit on every .ts/.tsx save.
  2. test-totals-on-save.json (command): Runs npm test (Vitest + fast-check) whenever store or library files change.
  3. pos-safety-audit.json (agent): Automatically inspects saved files in src/store/, src/components/pos/, and src/components/chat/ to verify zero any types, tabular-nums alignment on rendered prices, and that sensitive chat actions still route exclusively through Proposal Cards.

A Zero-Dependency Custom MCP Server

I extended Kiro with a local Node.js ESM MCP server (scripts/pos-mcp-server.mjs, registered in .kiro/settings/mcp.json as kiro-pos-tools). Speaking JSON-RPC 2.0 over stdio with zero external dependencies, it exposes three domain tools:

  • list_skeleton_presets
  • search_seed_catalog (reads live data directly from apps/cafe-pos/catalog.ts and apps/retail-pos/catalog.ts)
  • simulate_pos_totals

This let Kiro query both vertical catalogs and cross-check official pricing math directly while building features and tests.

3. Property-Based Testing Caught Two Real Bugs

Writing example unit tests for a POS is easy to fool yourself with. Using Vitest + fast-check (6 test suites, 29 passing tests), I tested invariants across randomized inputs:

  • Financial math & half-up rounding (cart-totals.test.ts, money.utils.test.ts)
  • Skeleton Crew config isolation (app-registry.test.ts)
  • EAN-13 barcode check digits (barcode.utils.test.ts)
  • Per-day invoice sequencing (invoice-id.utils.test.ts)
  • Randomized stock state-machine sequences (stock-flow.test.ts)

Running random sequences of add, increment, decrement, remove, clear, hold, resume, discard, and checkout against the invariant:

catalogStock + cartQty + heldQty + soldQty === initialStock 

caught two genuine bugs in src/store/cart-store.ts that manual testing missed:

  1. Clicking + in the cart could increment a line item past remaining available stock.
  2. Calling incrementItem on a product not currently in the cart still decremented catalog stock.

Fixing both bugs and locking them behind property tests made the register genuinely rock-solid.

4. Safe Conversational AI + Kiroween Polish

Kiro Chat connects to Qwen 3.8 Flash via /api/chat (and falls back seamlessly to a built-in zero-key local command engine if no API key is present or on timeout). Cashiers can ask free-form menu questions ("A customer wants a coffee and a pastry under $12"), place multi-item natural orders ("2 Large Iced Oat Lattes with less ice and 1 Butter Croissant for table 4"), and still stay protected by Proposal Cards on every discount, checkout, cart clear, or void.

And because it's Kiroween, Dark Mode (Kiroween Midnight Glass) transforms Kiro Chat with parchment bubbles, a two-frame flying bat send button, and a flaming pumpkin that burns away cleared chat messages.

Try It Yourself

Building KIRO POS with Kiro proved that AI-assisted development doesn't have to mean fragile prototypes combining specs, scoped steering, automated hooks, custom MCP tools, and property-based testing let a single developer ship two production-grade vertical apps in one cohesive core.