{"slug": "i-built-a-coroner-for-dead-npm-repos-with-kiro-and-kiro-brought-one-back-to-life", "title": "I built a coroner for dead npm repos with Kiro, and Kiro brought one back to life", "summary": "A developer built Séance, a tool that performs an automated \"autopsy\" on abandoned public npm repositories using free data from GitHub, the npm registry, OSV.dev and endoflife.date, producing a death certificate, a 0-100 revivability score and a ranked list of causes of death with source links. The tool then generates a downloadable \"revival kit\" — a .kiro/ folder with a spec, steering files, hooks and a scoped agent — that Kiro can use to revive the dead repo. Applied to shannonmoeller/handlebars-layouts, which last changed in January 2018 and scored 0 out of 100 (\"Fossilized\"), a revised kit completed 22 tasks in 22 commits, with a clean install and 17 of 17 tests passing on Node 24.", "body_md": "*Séance for Kiroween 2026 (Resurrection category). #KiroweenHackathon26*\n\nEvery team has inherited a dependency that nobody maintains. The question is always the same: fork it and revive it, replace it, or accept the risk? Answering takes a morning of digging through GitHub, the npm registry, advisories and Node release dates.\n\nSo I built **Séance**. Paste a public GitHub npm repository (or just a package name) and it performs an autopsy from free public data: GitHub, the npm registry, OSV.dev and endoflife.date. You get a death certificate with the time of death, a verdict, a revivability score from 0 to 100, and a ranked list of causes of death, each with a source link. Then it writes the treatment: a downloadable **revival kit**, a `.kiro/` folder with a spec (one task per cause), steering, hooks and a scoped agent. Open the dead repo with that kit in Kiro and Kiro does the revival.\n\nNo LLM makes a decision inside the app. The same evidence always produces the same certificate. Kiro was how I built it, and it is what the kit is written for.\n\n[`shannonmoeller/handlebars-layouts`](https://github.com/shannonmoeller/handlebars-layouts) last changed in January 2018. Séance scores it 0 out of 100, **Fossilized**, with 21 findings, and `npm test` crashes on Node 24 with `ReferenceError: primordials is not defined`.\n\n**Specs first.** Séance has six specs (`autopsy-core`, `revival-kit`, `resurrections`, `landing-v2`, `try-revived`, `seance-power`), each with EARS requirements, a design with numbered correctness properties, and a task list. Kiro CLI, running headless, wrote the code task by task. When code and spec disagreed, I changed the spec first. For example, the Node 0.x end-of-life rule updated the spec, the design and the expected fixtures together.\n\n**Steering as memory.** Six steering files carry what a fresh session would forget: vocabulary, folder layout, architecture rules, the testing policy, the design system. After a deployment crashed because compiled code kept `.ts` import specifiers, the fix became a one-line rule in `tech.md`, and no later session repeated the mistake.\n\n**Hooks.** The project has four: related tests on save, fixture regression when the core changes, a typecheck-and-test gate after each spec task, and an agent hook on `Stop` that keeps `structure.md` current. The Kiro docs name one trigger `PostTaskExecution`; the installed IDE accepts `PostTaskExec`. I read the trigger names from the installed IDE instead of the docs. The generator also puts two hooks into every kit it creates, and they only run tests, never an install.\n\n**A custom agent.** `coroner` works on Séance itself: spec first, then code, tests enforced, `.env` denied, no push. Every kit ships its own `reviver` agent that asks before any shell command except the test command.\n\n**Property-based testing.** The design docs list 41 correctness properties, covered by 19 fast-check files. They caught real bugs. One shrank to a case where semver turns `6.x` into `<7.0.0-0`, and my first check read that as a request for prereleases. Another shrank `' 0/a'`, which turned out to be a bug in my generator, not in the parser. Both inputs are now regression tests.\n\nI pointed the kit at handlebars-layouts and let Kiro follow it. It stalled at task 1. The kit's own policy demanded passing tests after every task, and a fully broken repository cannot meet that: the suite could not run until the whole gulp 3 toolchain was replaced.\n\nI changed the spec, not the run. Every revival spec now begins with **\"Get the patient breathing: establish a green baseline\"**, and the strict rules apply after it. The second attempt completed 22 tasks in 22 commits. A clean install works, 17 of 17 tests pass on Node 24, and CI is green.\n\nThe landing page also runs the revived library live in the browser, so you can change its input and watch it render.\n\nSéance also ships as a Kiro Power with a read-only MCP server and two tools: `seance_autopsy` (verdict, score, top causes with evidence links) and `seance_revival_kit` (returns the kit files and writes nothing). Ask Kiro \"what killed this repo?\" and it answers with evidence. A recorded headless run is in `docs/power-demo.md`.\n\nI tested the generated hooks in Kiro CLI. Confirming that they appear and fire in the Kiro IDE, including the after-task hook, is still on my list, and the README says so. The revivability score is a heuristic, not calibrated against real revival effort, and so far there is one public resurrection.\n\nSpecs make an agent's mistakes cheap to fix: you change the spec, not the run. Steering is memory. And property-based tests find what examples miss.\n\nThe full story with commit links is in [docs/how-we-used-kiro.md](https://github.com/atabak-eghbal/kiroween-2026/blob/main/docs/how-we-used-kiro.md). Try the app, and tell me which dead repo you would revive first.", "url": "https://wpnews.pro/news/i-built-a-coroner-for-dead-npm-repos-with-kiro-and-kiro-brought-one-back-to-life", "canonical_source": "https://dev.to/atabakeghbal/-i-built-a-coroner-for-dead-npm-repos-with-kiro-and-kiro-brought-one-back-to-life-2en7", "published_at": "2026-12-02 03:39:01+00:00", "updated_at": "2026-12-02 03:43:23.477755+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Séance", "Kiro", "GitHub", "npm", "OSV.dev", "endoflife.date", "shannonmoeller/handlebars-layouts", "Node.js"], "also_reported_by": [], "takeaway": "When an agent-driven revival stalls on a fully broken repo, restructure the spec so the first task establishes a green test baseline and apply strict per-task test gates only afterward — the revised kit then completed 22 tasks in 22 commits with 17 of 17 tests passing on Node 24.", "recommendation": {"advice": "When a coding agent stalls on a broken repo, rewrite the spec to make establishing a green baseline the first task, then enforce passing tests after each subsequent task.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/i-built-a-coroner-for-dead-npm-repos-with-kiro-and-kiro-brought-one-back-to-life", "markdown": "https://wpnews.pro/news/i-built-a-coroner-for-dead-npm-repos-with-kiro-and-kiro-brought-one-back-to-life.md", "text": "https://wpnews.pro/news/i-built-a-coroner-for-dead-npm-repos-with-kiro-and-kiro-brought-one-back-to-life.txt", "jsonld": "https://wpnews.pro/news/i-built-a-coroner-for-dead-npm-repos-with-kiro-and-kiro-brought-one-back-to-life.jsonld"}}