This post is written as part of the Kiroween 2026 hackathon.
The problem: software for when the network is dead
In Indonesia, floods routinely take out power and mobile signal for hours — exactly when neighborhood coordinators most need a shared picture of water levels, blocked roads, and who still needs a boat or medicine. The same pattern repeats in rural clinics, where one nurse runs the night queue from a paper book.
Both shifts share the same software shape: record events offline, keep a trustworthy shared state, hand over cleanly, and stay readable when everyone is exhausted. So for Kiroween's Skeleton Crew category we built the skeleton those shifts share — Graveyard Shift Kit — and proved it twice: Floodline, a flood-response board, and Night Clinic, a triage queue. Both run fully offline, sync by checksummed text packets that travel over any chat app, and import the same unmodified skeleton package.
- Live demo: https://bayusd.github.io/kiroween-graveyard-shift-kit/
- Repo (MIT): https://github.com/bayusd/kiroween-graveyard-shift-kit
- 66-second demo video: https://youtu.be/DLi-d6uRzq8
How Kiro carried the build
Everything below is committed in the repo's .kiro/ directory — three specs, three steering docs, hooks, a custom agent, and an MCP config — so the trail can be inspected directly.
Spec-driven development, EARS-first
Each of the three specs (skeleton, Floodline, Night Clinic) is structured as requirements.md → design.md → tasks.md, with requirements written in EARS notation. That choice mattered more than we expected: EARS forces universal statements ("for any two event logs, merging A into B yields the same set as B into A"), and universal statements translate almost mechanically into property-based tests. Compared with vibe coding, the spec caught the hard questions early — merge semantics, clock drift on cheap phones, what "honest" sync reporting means — before any UI existed.
Property-based testing as the proof layer
The skeleton's merge is set union over an event log, so its correctness claims are algebraic: commutativity and idempotence, proven over seeded random logs. Night Clinic's triage rule ("adding a red flag can never lower priority") is checked exhaustively over all 2,048 red-flag subsets — a safety property example-based tests would only have sampled sparsely. The full suite is 21/21 green, and you can run it yourself: clone the repo, npm test.
Steering docs: the cheapest high-leverage artifact
Three short steering files kept every later decision consistent. Product steering encodes the non-negotiables (offline is the normal case; no fake success; privacy by minimization — patients are initials only). Tech steering forbids runtime network dependencies and requires fail-closed packet decoding. Structure steering forbids apps from forking the skeleton — the rule that made the second app mostly a reducer and screens.
Hooks, a custom agent, and MCP
- Agent hooks turned quality gates into reflexes: saving the skeleton core re-runs its test suite; saving the triage rules re-runs the exhaustive property test; saving spec tasks triggers a traceability review against requirements.
- Custom agent
field-ops-reviewerreviews changes against the steering docs for offline correctness, honest UI, and 2 a.m. usability, citing the exact requirement a change violates. - MCP: we built
fieldkit, a small MCP server exposing packet validation, packet summarization, and merge-preview tools. During development Kiro could validate sync fixtures and preview merges without launching the apps — the kind of project-specific tooling MCP exists for.
The final sessions: Kiro CLI, headless
The closing build sessions ran through the Kiro CLI in headless mode (kiro-cli chat --no-interactive, with --agent field-ops-reviewer for the review pass) rather than the IDE. The CLI's scriptable, repeatable runs suited a spec-first workflow where each session had one bounded job — sync the spec, implement, prove — and each run's transcript stayed reviewable like a commit. The same .kiro/ configuration drove both surfaces unchanged.
Three sessions, three bounded jobs:
- Packet versioning (Requirement 6). Kiro synced the spec before touching code: five EARS acceptance criteria, a "Packet versioning strategy" design section (prefix-as-discriminator,
siginside the body so the existing checksum covers it), then implementedencodePacketV2with prefix-dispatch decoding and a 40-seed property test proving a GSK2 packet never carries a GSK1 prefix — so a GSK1-only decoder always fails closed. Suite: 15/15 → 20/20. - Hardening the human side. The unsupported-version error now names the version it found and tells the user exactly what to do (re-export from the other device, then import again). Kiro also derived a property test from Requirement 4.3: for any interleaving of valid and malformed events, the rejected count equals the malformed count exactly, every valid id lands in the merged log, and no malformed id leaks in — verified across 60 seeds and six malformed shapes. Suite: 21/21.
- Reviewer pass + MCP exercise. The
field-ops-revieweragent filed six findings with file references (an aria-live overwrite on first import, a missing packet-size guard, a shared device-id key across both apps, focus handling on form screens), verified the ≥44px touch-target steering rule already holds in the shared CSS, and recorded the smallest fix for each finding. The same session exercised the fieldkit MCP tools end-to-end on a sample packet — a reviewer or CI step can inspect, describe, and simulate a sync packet entirely from its text string, with no running app.
What we learned
Spec-driven development pays off most where correctness is algebraic: EARS requirements became properties, properties became tests, and the tests now guard the skeleton forever via hooks. Steering documents were the cheapest high-leverage artifact — three short files kept every later decision consistent, including the decisions made by an agent we didn't write prompts for each time.
Next: pilot with one neighborhood flood post and one rural clinic night shift in Indonesia, then publish what the packet-sync loop got wrong in real hands.
Built for Kiroween 2026 (Skeleton Crew). Try it: open the demo, load a sample, export a packet, erase, import — the board returns exactly. Import again: 0 added. Tamper with one character: rejected.