-
-
Paste any public GitHub repo: Haunted Repo found 5 ghosts in its own code, live, and the phone starts ringing.
-
The attic: each ghost is a file, with a difficulty score from 0 to 100 and a plain reason why it is hard to read.
-
The exorcism is a tutor: the ghost asks about the real file, you answer, then compare with the model answer.
-
Every answered question lights a candle; when all three burn, you decide if you really understand the file.
-
Three ghosts exorcised: dawn breaks over the house, and the Haunted Repo Power exorcises the rest in your own Kiro.
Inspiration
I'm a first-year programming student, and I came to programming from law school. In class I'm learning loops in Java. Outside class, I build things by directing AI agents. In my last hackathon project the code worked, and nobody on the team had read it. Including me.
That gap has a name: comprehension debt, the distance between the code a project contains and the code somebody understands (Addy Osmani). Many beginners now build this way. There are plenty of "explain this code" buttons, but none of them tells you where to start or checks that you actually understood.
So I built a tool for people like me. Your repo is haunted. Let's fix that.
What it does
Haunted Repo turns a repository into a haunted house. The key files you don't understand yet are its ghosts, and the only way to make a ghost leave is to understand it.
- It finds the ghosts. Give it a public GitHub repository. It picks up to five key source files (TypeScript, JavaScript, Java or Python) and gives each one a difficulty score from 0 to 100 and one plain sentence that says why. The score comes from lines, decisions, nesting and imports. This step is plain, deterministic code: no AI, no account, no token.
- It sorts them from easy to hard. Easy ghosts live in the attic, harder ones on the middle floor, the hardest in the basement. Each floor has its own creature in the Bestiary: the Wisp, the Lantern Wraith and the Chained Brute. You start at the top, so your first ghost is one you can beat.
- It exorcises them. A Tutor explains the file in plain words with an everyday comparison, then asks three questions about what the code does, never about a single line, one at a time. "I don't know" is a valid answer: you get a simpler explanation and the same question again, and a second "I don't know" gets a short model answer. At least two good answers out of three, with the core question not wrong, and the ghost is gone.
The product is a Kiro Power. The website is its showcase.
- The Kiro Power (the product). Installed in Kiro from GitHub, it turns your own Kiro into the Tutor for any public repository. It finds the ghosts, explains a real file, asks one question at a time and judges your answer. There is no paid AI API and nothing to sign up for. The rules for passing live in tested code, not in the chat: Kiro only writes a verdict line, and the Power rejects one that is badly formatted. Progress is saved per repository, so you can come back and continue the house where you left it.
- The website (the showcase, no install). It lets anyone feel the whole loop in a minute. It opens on the five ghosts of lukeed/sirv (MIT), from a report saved from a real run, and it can analyse any public GitHub repository live in the browser. When the phone rings, answer it, and the exorcism room opens. A static page has no AI to judge free answers, so it is honest about that: you can exorcise three of the five ghosts, two in the attic and one on the middle floor, by comparing your answer with a model answer. The other two stay locked, waiting for your own Kiro. When the third ghost is gone, the rain stops, the dawn comes up over the house, and a "Get the Power" link shows where to go next.
Why a haunted house. The spooky theme does a job. The floors tell a beginner where to start. The phone that keeps ringing is the call to action. In the exorcism room, three candles are the three questions, and each one lights up as you answer. The ghost fades as you understand it, and an exorcised ghost leaves a lit candle in its window. An empty floor is not a dead end: it tells you which creature lives there and invites you to try your own repository.
Built for everyone. A Motion button stops every animation, and the lightning has its own button next to it. The system's reduced-motion setting is respected, the lightning flashes at most 3 times in any second (WCAG 2.3.1), and a simple view (?view=simple) shows the same content as plain text, without the scene. The page calls no outside service when it opens and stores nothing in your browser. It works on a phone too.
How I built it
Every change reached the repository through Kiro, which made every commit and opened every pull request after running the tests. For many visual fixes the exact CSS, SVG or code came from a prototype measured outside the repository with Claude, and Kiro applied it (declared below). I'm a beginner and I can't review TypeScript yet, so my job was to decide: what to build, approving every requirements document, design and task list before any code, and merging each pull request. The full story of how I used Kiro is in the write-up of this submission.
- TypeScript in strict mode with npm workspaces and three packages:
core(ghost detection and the exorcism engine, pure and shared),web(the showcase: Vite with no framework, static files on GitHub Pages) andpower(the Kiro Power: an MCP server and a skill). coreonly needsfetch, so the same detection runs in the browser and inside the Power.- Over 1,100 tests with Vitest and fast-check, many of them property-based, plus rules that scan the built site: no browser storage, no outside requests, and a size budget for the art.
- The scene is SVG and CSS animation only, with no animation library. The illustrations were made with other AI tools and are declared below; Kiro integrated them, connected them to the app and animated everything drawn on top: ghosts, rain, fog, candles, lightning and the dawn.
Challenges I ran into
- My first idea of a question was wrong. In my first test, Kiro asked me about specific lines of a file. I answered "I don't know" three times and gave up. Questions about lines test whether you can already read code; they don't teach a beginner anything. Explanation first, then questions about behaviour, worked, but only after a second, simpler explanation. That retry loop is now the core of the design.
- The original detection idea didn't survive. I planned a Kiro hook that would mark every file the agent wrote. A save trigger can't tell who wrote a file, and a beginner doesn't need 200 ghosts. Picking a few key files replaced it, and the change was made in the requirements, before any code existed.
- I can't verify code by reading it. So verification had to be built into the process: tests required by the spec, a hook that runs them after every task, a review of each pull request with a clean context before merge, and, for visual work, measurable "done" criteria checked at several screen sizes.
- The house looked bad for days. Three rounds of house art drawn in code stayed at about 5 out of 10. I switched to a declared illustration and let Kiro do what it is good at: wiring it to the app and animating what goes on top.
- One animation took three fix rounds because "done" was never defined. After that I added a steering rule for visual changes (see the write-up).
Accomplishments that I'm proud of
- A Kiro Power that I installed from GitHub and used for real: I exorcised ghosts of lukeed/sirv in my own Kiro, and the strict verdict check caught a badly formatted verdict live.
- A showcase that runs for free with nothing to install, with an accessible simple view and a Motion button.
- Haunted Repo finds ghosts in its own repository too.
- Over 90 merged pull requests, each spec task in its own commit, every spec approved by me before any code.
- Being honest about what didn't work: every friction with the tools is written down in
docs/frictions.md.
What I learned
- A beginner needs the overview before the details: "what is this file for?" comes before "what does line 12 do?".
- "I don't know" is the most useful answer a learner can give, if the tool reacts to it.
- Writing requirements first let me direct a project I could not have coded. I can't judge the code, but I can read an acceptance criterion in plain English and say "no, a beginner doesn't need that".
- "Make it look good" is not a task. A table of what each layer does at each moment, and numbers to check, is.
What's next for Haunted Repo
- Private repositories and more languages.
- Rooms per folder inside each floor, for bigger repositories.
- An "exorcism certificate" a student could hand in with a project, so a teacher can see which files the student understands.
- The website in more languages.
Other tools and pre-existing work
- Every change reached the repository through Kiro, which made every commit and opened every pull request (apart from GitHub's initial commit and my merges). Claude never committed to the repository.
- Claude (Anthropic), outside the repository, was my project manager and reviewer. It helped me plan, criticised specs before I approved them, reviewed Kiro's pull requests in read-only mode, and wrote the instructions I pasted into Kiro. For many visual fixes it built and measured a prototype outside the repository, and those instructions included the exact CSS, SVG or code of that prototype; Kiro applied it, ran the tests and opened the pull request. It also helped me draft these texts. This split is recorded in
docs/decisiones.md. - Art made with AI tools, all declared in the asset manifest (
packages/web/src/view/assets/manifest.ts) and in the README:- The house (
house-scene.svg) and the exorcism room (room-scene.svg) were drafted with Claude. The house file keeps its C2PA provenance block, also after the lossless optimisation. - The gargoyle, the lantern and the pumpkin of the stone gate were drawn with ChatGPT (OpenAI) and vectorised with Claude. The stone frame was drawn with Claude after a ChatGPT concept.
- The gargoyle's eyes are drawn by hand in code, from an idea taken from an image made with Gemini (Google).
- The ghosts, the padlock, the cloche and the candle were ported into code from reference drawings made with Claude.
- The browser tab icon (
packages/web/public/favicon.svg), a small hooded ghost, was drawn with Claude. - Kiro integrated all of them, connected them to the app and animated everything drawn on top.
- The house (
- The demo video was assembled by Claude with HyperFrames (Apache 2.0) from real recordings of the website built from
mainand of my real Kiro session; nothing in it is simulated. Gemini (Google) gave feedback on the cut and the sound. There is no voice and no music. The sound effects were synthesised in code, and the rain uses the recording "Rain against the window" by cori (pdsounds.org), public domain, from Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Rain_against_the_window.ogg - Pre-existing work: the working rules and the task cycle in steering started from a personal template of rules I wrote before the hackathon. It contained rules only, no code. No code from any earlier project is used.
- Third-party code shown in the demo: lukeed/sirv, MIT licence. Its notice is shown on the page and served as
sirv-license.txt.
Built With
- css
- fast-check
- github
- github-api
- kiro
- mcp
- node.js
- playwright
- svg
- typescript
- vite
- vitest