What is this?
Malaysian market traders have tracked customer credit ("hutang") for decades using the iconic red-and-blue Buku 555 notebook. Paper gets wet at the fish stall, pages get lost, and asking a neighbour for money is awkward.
Buku 555 Berhantu resurrects the Buku 555 as a phone-first web app:
- The trader speaks or types an entry in Bahasa Melayu (e.g. "Kak Ros ambil 2 kilo kembung RM18, bayar Jumaat")
- It parses customer, item, amount (RM) and due day
- It shows who owes what, total outstanding, and who is overdue
- For overdue customers, a polite ghost reminder message is prepared and opened in WhatsApp via a click-to-chat link. The trader always presses Send; nothing is sent automatically
- Marking an entry paid exorcises the ghost 👻✨
Designed for a 60-year-old fish seller on a cheap Android phone at 5am: big tap targets, Malay-first UI, works offline, no login, no server.
How it was built with Kiro
Built with the Kiro CLI agentic workflow:
- Steering docs (
.kiro/steering/): Malay-first copy, no server or tracking, big tap targets for older traders. - Spec generation: Kiro produced
requirements.md(EARS user stories),design.md(architecture, parser grammar, correctness properties), andtasks.md(T-1 to T-27) in.kiro/specs/buku-555/. - Implementation: Kiro implemented all source files (
parser.js,ledger.js,i18n.js,app.js,index.html,styles.css,assets/ghost.svg) from the specs. - Property-based testing:
fast-checkproperties designed indesign.mdthen coded intests/(e.g.amountRM≥ 0,totalOutstandingequals sum of unpaid entries, export→import round-trip preserves entries). - Agent hooks (
.kiro/hooks/):run-tests-on-saverunsnpm teston every.jssave and fixes failures without weakening tests;i18n-checkverifies every key ini18n.jshas both Malay and English. - Verification loop: Kiro ran
npm install && npm testand fixed failures until all tests were green.
Kiro features used: steering docs (.kiro/steering), spec generation (.kiro/specs), agentic code generation from specs, property-based testing with fast-check, and custom agent hooks (.kiro/hooks).
New: MCP server + custom agent (added with Kiro, Nov 2026)
- MCP server (
mcp/): a dependency-free stdio MCP server with four tools:list_debts,add_debt,mark_debt_paidandlist_overdue_debts. Kiro launches it via.kiro/settings/mcp.json, and its spec lives in.kiro/specs/mcp-server/. - Hantu Auditor custom agent (
.kiro/agents/hantu-auditor.json): a read-only agent that reviews the debt book through the MCP server, flags overdue or suspicious debts, and writes a spooky-but-friendly reminder in Malay and English for each one. - Agent hook:
run-tests-on-savenow also covers the MCP server, so every change is checked by the 239 unit and property-based tests.
New: partial payments, undo and customer statements (added with Kiro, Nov 2026)
Three new Kiro specs in .kiro/specs/, each written as requirements, design and tasks, then built by Kiro CLI:
- Bayaran ansuran (partial payments) (
bayaran-ansuran): say "Kak Ros bayar RM10" and the payment is applied to her oldest debts first. "Pak Ali langsai" clears everything. Old saved data is migrated automatically, with property-based tests for the payment maths. - Undo dan edit (
undo-dan-edit): every add, payment and delete shows an 8-second Undo bar. Entries can be edited, deletes ask for confirmation, and the payment history is kept. - Penyata pelanggan (customer statements) (
penyata-pelanggan): tap a customer to see all their debts, payments and balance, search customers, and send a full statement over WhatsApp with one tap. A newget_statementMCP tool lets the Hantu Auditor agent read statements too.
Honest note: Kiro's monthly usage ran out during the final bug-hunt pass, so the last review fixes (a layout bug, duplicate rows on statements, and some Malay parser edge cases) were made by hand and are listed separately in .kiro/specs/penyata-pelanggan/tasks.md and in PR #2. Tests went from 100 to 239.
Built With
- css3
- fast-check
- html5
- javascript
- kiro
- mcp
- web
