DEV Community

Aiman Malib
Aiman Malib

Posted on Fully Autonomous

One skeleton, two school apps: building Rangka with Kiro

This post is part of the Kiroween 2026 hackathon (category: Skeleton Crew). Kiro drafted it from the session logs.

The 2-minute demo video: https://youtu.be/EYYB7c-8pg4

Every small system I build for a school or a small office starts with the same five parts: sign-in, roles, Malay and English,
a settings screen so the office can change things without calling me, and an audit log so there is a record of who changed what.

Malaysia has 10,238 government primary and secondary schools (data.gov.my, June 2025). Each one has rooms to share and
attendance to take. For Kiroween's Skeleton Crew category I built those five parts once, as Rangka ("skeleton" in Malay), and
put two different apps on top: Tempah books rooms, Hadir takes attendance with a code on the projector.

One spec task, one Kiro session, one commit

Kiro CLI runs headless on my server, one spec task per run:

kiro-cli chat --no-interactive --agent rangka --trust-workspace --trust-tools=fs_read,fs_write,glob,grep,@rangka "<task prompt>"
Enter fullscreen mode Exit fullscreen mode

A second AI tool, Claude Code, wrote the task prompts, reviewed each change, ran the tests and deployed. It also wrote the first
version of the skeleton spec, which Kiro regenerated from the code on 1 December 2026 (session J3-1, 20.11 credits). Kiro wrote
the product code. My build gate refuses any change to apps/ or packages/ that comes without a new session log. There are 224 of
them, each with the prompt, the model, the time, the credits and the files Kiro touched. The credits add up to 1,989.93.

The size of the task matters more than the prompt. The database schema task took 74 seconds and 1.43 credits. The settings task
cost 8.12 credits and needed a second, cheaper session (0.96 credits, claude-haiku-4.5), because the first one wrote test fixtures
without a user row and 26 tests failed on foreign keys. Small tasks fail small, and the failure is easy to read.

Hooks that run the right test after every write

The custom agent rangka has a postToolUse hook. After each file Kiro writes, it runs only the check that matches that file:
the Malay/English key check for message files, vitest for the package that changed. The stop hook runs the key check and the
typecheck when the session ends.

The house rule in my steering file is simple: no display text in code, and every Malay key has an English twin. There are 888 keys
in the Malay message files, and the same check guards the English ones. A missing English key shows up as a hook line in the same
session, not in a review a day later.

The hook also catches things nobody planned for. In session J10-1 Kiro added a "Join this session" block to the Hadir sign-in
page. Most of the hook's vitest lines that session read problems, but those were time-outs: the host load was between 40 and 106.
One failure was real. From the first write of BlokSertai.tsx, xray/penanda.test.ts failed, because the new block was marked
data-rangka="demo-sertai", which is not an X-ray region. The run hit my 55-minute time limit, so Kiro never wrote a closing
report, and the failure was found in the hook log afterwards. Session J10-2 fixed it in 66 seconds for 1.20 credits.

What Kiro got wrong, and how we caught it

Every correctness property in the specs became a fast-check test. Forty-five property test files later, these are two of the bugs
they found:

  • Two bookings at the same moment. "No two approved bookings of one room overlap" raced two database connections and failed. The libsql driver kept a lock after a busy error. Kiro rebuilt the connection around one write queue per database file (decision D18, session P6-7).
  • A booking that does not exist. A reference-model test found that 01:30 to 03:00 in New York on 10 March 2030 was accepted, although those slots do not exist on a daylight-saving day. The model was right and the service was wrong. Nobody went looking for it: it appeared as [kait] Error: Property failed after 14 tests in a hook line during an unrelated session (P7-14), and P7-15 fixed it (D27).

For each fix, the logs show a sabotage check: put the bug back and the property turns red.

Press X

The part I like most is in the product itself. Press X in either app and yellow measuring lines mark every part that comes from the
skeleton, with the spec requirement and the Kiro session that built it, read from the session logs. A script counts the code each
app loads: Tempah is 56 % skeleton, Hadir 48 %.

And a third app is one command away. Kiro ran pnpm rangka baharu pinjam, then wrote its spec requirements and first screen in one
recorded run: 8 minutes 6 seconds, 5.73 credits. The app is called Pinjam. It is not deployed.

Try it

Top comments (0)