This post is written as part of the Kiroween 2026 hackathon.

In the 1800s, people were so afraid of being buried alive that coffins came with a bell on the grave and a cord running down to the hand inside. That's where Last Rites started. I wondered: what if one of those cords had been cut on purpose?

Last Rites is a first-person survival-horror mystery that runs in your browser. You're the new gravekeeper of Hollowmere Cemetery in 1891. The last keeper has vanished, and the dead won't stay buried. By day you read gravestones, cross-check the parish ledger and pull the safety-bell cords. By night you survive the dead until you can name the guilty party at the chapel altar. It has three stages, three cases, and one family's secret.

Play it free (PC or laptop): https://last-rites.vercel.app
Source, specs and all: https://github.com/dismality/last-rites

Here's how Kiro changed the way I built it.

1. Specs instead of vibes

I've vibe-coded side projects before. They start fast and then collapse under their own weight: every fix breaks something else, and three weeks in I no longer know what the game is supposed to do.

This time I started with one design bible, a single document describing the whole game, and let Kiro turn it into specs. Each spec goes requirements → design → tasks:

  • Requirements in EARS format ("WHEN the player places a relic in the wrong slot, THE SYSTEM SHALL…").
  • A design that names the files and pure functions the feature needs.
  • A task list small enough that each task can be built and tested on its own.

By the end there were 11 specs, about 1,150 requirements and 481 tasks. Kiro wrote most of the code from those tasks, one small, tested piece at a time.

The biggest change was what happened when playtests went badly. Players got lost and didn't understand the case board. Instead of making scattered fixes, I wrote new specs: 09-playtest-fixes, then 10-curse-stages. The game changed a lot, but it never lost its shape.

2. Steering: set a rule once

Steering files are standing instructions Kiro reads every session. I had eight: product, tech stack, project structure, horror design, visual style, accessibility, MCP usage, and a logging rule.

My favourite is horror-design.md. It says every scare must be telegraphed first (a sound, a light, a silence) and must respect the player's scare setting: Full, Reduced or Off. After that, I never had to ask again. Every scare Kiro wrote came with a warning and an off switch. Horror for everyone was built into the process, not bolted on at the end.

3. Hooks that catch me before players do

Six hooks watch the project:

  • Run the game-logic tests every time a file in src/game or src/data is saved.
  • Check data files against the design bible.
  • Audit every scare for accessibility.
  • Make sure every new asset has a licence entry in the credits.
  • Review performance, and keep a development log, when I ask.

The test hook turned out to be the most useful. Change a game file, and Kiro runs the tests and fixes what breaks, before I've even switched windows.

4. Property-based tests found bugs I'd never have looked for

Kiro wrote the specs with correctness properties, rules that must hold for any input, and turned many of them into property-based tests with fast-check. They run in about half of the 362 unit test files, out of roughly 2,900 tests in all. They caught real bugs:

  • A NaN timestep. fast-check's float generator can produce NaN even when you give it bounds, which would have broken the physics loop. The generators switched to whole milliseconds.
  • Float rounding. lerp at k = 1 didn't land exactly on its target. A different form of the formula fixed it.
  • An ammo overflow. Picking up ammo could open a second, over-full stack. It's now capped.
  • Players left without a marker. One property checks that no step of any stage ever leaves you without an objective marker. That came straight out of the "players got lost" playtests.

The physics engine had its own surprise. By default, Rapier's fixed sensors never detect a kinematic player, so none of my scare zones would ever have fired. A headless check found it before any player did.

5. MCP for up-to-date docs

Libraries move fast. Through MCP, Kiro used context7 to read current docs for Rapier, React Three Fiber and drei, so it used today's APIs instead of guessing at last year's.

What I'd do differently

  • Playtest with a fresh player in week one, not week three. Specs keep the code correct. Only players show you where they get lost.
  • Write a spec for "a new player's first ten minutes" early on, with acceptance criteria like "never more than one step without a marker".
  • Keep the whole-game test green every day. I have a browser test that plays the entire game from New Game to the ending card. When it fell behind for a week, changed puzzles slipped through.

The stack

Kiro · TypeScript · React Three Fiber · three.js · Rapier physics · zustand · Howler.js · Vite · Vitest · fast-check · Playwright · Blender (props built from Python scripts) · ElevenLabs (sound and narration)

Try it

Three graves. Three lies. Can you solve the mystery?

👉 https://last-rites.vercel.app (PC or laptop, keyboard and mouse)

The repo is MIT-licensed, and all the Kiro specs, steering files and hooks are in /.kiro, so you can read exactly how it was built.

Written for the Kiroween 2026 hackathon. #kiro #gamedev #hackathon #threejs