Built for Kiroween 2026 (Costume Contest) with spec-driven development in Kiro.
The problem: subscriptions you forgot you had
A $12.99 streaming service. A $9.99 cloud plan. A $14.99 app nobody opens. Each one is small. Together, they quietly drain hundreds of dollars a year.
Traditional budget apps show you a spreadsheet. Spreadsheets don't make you cancel anything.
So I built GhostBudget — a personal budget tracker with a haunted-mansion theme. Every recurring subscription is a ghost haunting the house. Every spending category is a room. When a room goes over budget, it becomes possessed. And when you exorcise a ghost, the app tells you, to the cent, how much you save per year.
What GhostBudget does
Four tabs, zero accounts, zero cloud, zero tracking. Your data never leaves your device, and the app works fully offline after the first visit.
- Overview — balance, this month's income vs. expenses, a hand-rolled SVG donut of spending by category, a 6-month spending bar chart, and recent transactions.
- Transactions — add income or expenses with category, date, and note; filter by type, category, or text search; delete; export everything as JSON or CSV; import a JSON backup (invalid files are rejected without touching your data).
- Ghosts — every subscription shown with cost, monthly/yearly period, next charge date, and days until it charges. Ghosts charging within 7 days are highlighted as "stirring". Exorcise a ghost to cancel it — the app shows exactly how much money you save per year (monthly cost × 12, yearly cost as-is). Banished ghosts wait in the crypt and can be Resurrected with their original details intact.
- Mansion — each of the 8 spending categories is a room with a monthly budget limit and a progress bar: Calm (under 70%), Stirring (70–100%), Possessed (over 100%, overspend amount shown). Rooms without a limit are "unwarded" — spending is still tracked.
The 8 rooms: Housing (Master Bedroom), Food (Kitchen), Transport (Carriage House), Entertainment (Ballroom), Bills (Dungeon), Health (Apothecary), Shopping (Attic), Other (Cellar).
It also has a currency selector (USD, IDR, EUR, GBP — display only, stored amounts are never converted), one-click demo data, a "banish all data" wipe with confirmation, and PWA support so it installs and works fully offline via a service worker.
How Kiro built it: spec first, code second
This is the part that made the project different. GhostBudget was developed with spec-driven development in Kiro: the specification came first, the code followed it, and the specification stayed in the repository as the record of what was built and why. The .kiro directory is committed with the project on purpose — it is not just documentation of how the app was built, it is part of the submission itself.
1. Requirements, design, tasks — before any app code.
-
requirements.md— user stories with acceptance criteria in EARS style ("WHEN … THE SYSTEM SHALL …"), covering all four tabs, the exorcise/resurrect flow, per-category budgets, persistence, export/import, PWA/offline behaviour, currency selection, and non-functional requirements such as keyboard accessibility and readable contrast. Every criterion has a stable ID (e.g.REQ-GH-05for the exact yearly-savings formula), so any feature can be traced from the spec to the code to the test. -
design.md— the architecture: ES modules split by responsibility (logic.jsfor pure money math,store.jsfor persistence,charts.jsfor hand-rolled SVG,seed.jsfor demo data,app.jsfor DOM wiring), the data model, one-way state flow, error handling (including corrupt-data recovery that never crashes), and the testing strategy — including property-based checks such as "totals never go negative", "exorcising never loses money math", and "a CSV round-trip preserves every row". -
tasks.md— the build plan as discrete, checkable tasks grouped in eight waves (skeleton → pure logic + tests → persistence → charts → Overview/Transactions UI → Ghosts/Mansion UI → PWA → docs and verification). Every task is marked complete, and the wave order mattered: the pure logic and its tests were finished and green before any DOM code was written, which is why the app's money math is testable in plain Node with no browser at all.
Working spec-first changed the build in concrete ways. The requirement that exorcism savings be exactly monthly × 12 (REQ-GH-05) was written before the feature, so the implementation had a formula to match rather than a number to invent. The budget status boundaries (calm < 70%, stirring 70–100%, possessed > 100%) were fixed in the spec, so the boundary tests were written against the spec, not against whatever the code happened to do.
2. Steering files: the rules that held the build together.
Three steering files in .kiro/steering/ acted as the project's standing instructions: product.md (the vision and the tone rule — "spooky but readable, never scary at the cost of clarity" — plus what is deliberately out of scope: no accounts, no sync, no bank connections), tech.md (the hard stack rules: zero dependencies, no build step, ES modules, one localStorage key, SVG charts hand-rolled, system font stacks only, tests with Node's built-in node:test), and structure.md (the file tree plus a "where new code goes" table).
3. Hooks: tests that run themselves.
.kiro/hooks/run-tests-on-save.json runs npm test every time a JavaScript file is saved, and asks for confirmation to run the full suite before a session stops. A regression is caught at the moment it is introduced, not at demo time.
4. A custom agent: the Budget Exorcist.
.kiro/agents/budget-exorcist.md defines a specialist agent whose only job is to hunt wasteful recurring spending. It reads the GhostBudget data model (read-only), ranks suspect ghosts by yearly savings, shows the full math for every proposal, suggests cheaper alternatives without inventing prices, and — by rule — never deletes anything without confirmation. The user always clicks "Exorcise" in the app; the agent only makes the case. It is the product's core fantasy turned into a Kiro agent.
5. MCP: the filesystem server.
.kiro/settings/mcp.json configures a filesystem MCP server scoped to the project directory, so Kiro works directly on the real project files — reading the spec, the code, and the tests as one connected workspace instead of through copy-pasted snippets.
The stack: deliberately boring
Zero dependencies. No build step. ES modules. One localStorage key (ghostbudget.v1). Hand-rolled SVG charts. System fonts only. Tests with Node's built-in test runner. No network loads at runtime — no CDN, no webfonts, no analytics.
That is what makes the "no network loads at runtime" claim true — and checkable. Any static file server runs it:
cd ghostbudget python3 -m http.server 8000 What Kiro changed about the result
Without Kiro, GhostBudget would likely have been built UI-first with the maths invented as it went. With Kiro, the order was reversed: requirements with stable IDs, a design that isolated all money math into pure, browser-free functions, tasks in verifiable waves, steering rules that kept the stack at zero dependencies, hooks that ran the tests on every save, and a custom agent that embodies the product's central idea.
The haunted mansion is the costume. The spec is the skeleton underneath it.
Try it
- Live demo: https://maulidian14.github.io/ghostbudget/
- Repository: https://github.com/Maulidian14/ghostbudget
- Demo video (70 seconds): https://www.youtube.com/watch?v=P20HrQb086s
Built for Kiroween 2026 — Costume Contest. MIT License. Copyright © 2026 Maulidian Arif Rofiat.