Inspiration
Small teams still run on spreadsheets and paper. A teaching lab can't say who has the oscilloscope. A food bank throws away what expired on the shelf because nobody can see what to use first.
Every one of those tools needs the same ten things: sign-in, roles, lists, forms, history, notifications, reports, search, CSV and QR labels. Then it needs a little that is its own. Teams rarely get the ten things right, so the tool stays a spreadsheet.
We wanted the ten things done once, properly and tested hard, so the next tool is a handful of files. That is exactly what Skeleton Crew asks for.
What it does
Crypt Kit is a skeleton. You describe a kind of record once, as a resource definition: its fields, who may read and write it, the statuses it moves through, and when it becomes overdue. From that one file you get:
- a REST API with role-based permissions, enforced on the server
- list, form, detail and history screens, plus a dashboard
- board and calendar views, comments, subtasks and global search (Ctrl+K)
- CSV import and export, QR codes, label sheets and themed PDF reports
- notifications and email, and an installable, offline-ready phone app
- a chat assistant that answers from your own records
Three apps are raised from it, and all three are live:
- 🦴 Crypt Kit, the skeleton itself as a to-do suite: notes, projects, reminders, goals and a time log.
- 🧪 Lab Ledger, for teaching labs. A student scans a QR asset tag and requests a checkout, and a technician approves it. It also handles reservations, calibration schedules and usage insights.
- 👻 Pantry Ghost, for food banks. Say a donation and it drafts the stock entry. It packs first-expiry-first-out, warns about expiry and low stock, and prints donor receipts and impact reports.



Lab Ledger and Pantry Ghost look and behave nothing alike, yet their shared core is byte-identical: 46 files, checked by one command, npm run check:core.
The assistant answers questions like "who has the oscilloscope" or "which items are overdue", with links to the records. It only reads, and only what the asker may see. Commands such as "add a note to buy candles due friday" become a draft with Confirm and Cancel. Nothing is saved until you confirm.

How we built it
- Stack: a Node and Express API on MongoDB, with a React, Vite and Tailwind client. It is hosted on Render, Netlify and MongoDB Atlas.
- One source of truth: the server enforces the resource definition and the client renders from it. The assistant, CSV import, OpenAPI docs and tests all read it too. A new app is new definitions, not new plumbing.
- Core never forks: apps extend the skeleton through documented extension points (hooks, detail panels, bulk actions, an injectable clock). When an app needed something Core lacked, the gap went into the skeleton spec first.
- The assistant is a query engine, not free text sent to a database. A question becomes a structured spec. The engine checks the asker's permission, queries only declared fields and caps the result size. A rule-based parser handles the questions with no AI needed.
How we used Kiro
Everything is committed in .kiro/.
- Specs:
- There are four (
crypt-kit-skeleton,lab-ledger,pantry-ghost,field-ready), each with requirements, design and tasks. - Every task traces to an acceptance criterion.
- The rule that "the assistant can only read what the asker may read" was a requirement before it was code. So there is one permission check that every question passes through, not one bolted on later.
- There are four (
- Steering: six docs. Product, tech and structure are always included; the server, client and testing conventions load only for matching files.
- Agent hooks: six. They run related tests on save, sync Core into both apps, check accessibility and theme tokens on UI edits, and audit spec traceability.
- Property-based testing: 33
fast-checkproperties.- One caught a real bug: a typo'd donor name ("food" → "good") made the intake parser stop early at the "good until" date marker.
- A model-based test drives request, approve (including two approvals at once), return, reject and cancel. After every step it checks this invariant:
$$\forall\, \text{item}:\ \big|{\text{active loans of item}}\big| \le 1$$
- Sub-agents: large batches of features were split across parallel agents. Each had a written brief listing the files it owned and the contracts it had to meet.
- How the build happened: the first release was implemented task by task from the specs'
tasks.md. All later features were built in Kiro IDE agent sessions.
Challenges we ran into
- Keeping three apps honest. Shared code had to land everywhere without drifting. Hash-checking Core and a sync hook made that safe, and they surfaced real bugs: a service-worker cache name that never changed between deploys, and a text sort that put "Zebra" before "apple".
- An assistant you can trust with real data. It can never see more than the person asking and never changes anything on its own. That pushed the design toward structured queries and drafts instead of writes.
- Testing what people actually do. Real-Chrome suites sign in as every role and audit every page in dark and light themes at five widths from 320 to 1440 px. They caught low-contrast text, 27 px of sideways scroll on small phones, and tap targets under 24 px.
Accomplishments that we're proud of
- Three apps that look and behave nothing alike, from one skeleton, all live.
- 964 server tests, 657 client tests, 183 real-browser steps and 33 property-based tests.
- WCAG AA text contrast on every page in both themes, and tap targets of at least 24 px.
What we learned
Reuse only works if the shared part is enforced, not just agreed. Checking Core by hash and writing gaps into the spec before the code turned "keep these in sync" into something that fails loudly. Writing requirements first made the hardest rules, such as the assistant's permissions, part of the design instead of a patch.
What's next for Crypt Kit
More apps from the same skeleton (a clinic roster, a classroom library), push notifications for installed apps, and a published npm run summon template so anyone can raise their own app in minutes.
Built With
- express.js
- fast-check
- javascript
- jest
- jwt
- kiro
- mongodb
- mongodb-atlas
- mongoose
- netlify
- node-cron
- node.js
- nodemailer
- pdfkit
- playwright
- qrcode
- radix-ui
- react
- react-router
- recharts
- tailwindcss
- tanstack-query
- vite
- vitest