DEV Community

Diaguren Labs
Diaguren Labs

Posted on

I built a necromancer for dead code (Kiroween 2026)

This post is my entry for the **Kiroween 2026* hackathon (Resurrection category), built with Kiro.*

Most code in the world has no specs.

Kiro runs on specs. Give it requirements, a design and a task list, and it builds against them, task by task. That's the best thing about it.

So what happens to all the dead code? The side project whose API got switched off. The library whose build tool stopped installing. The client app nobody has dared to touch since 2018. Open any of them in Kiro and you start from a blank chat.

I built Necromancer to fix that. Point it at a dead repo, and it writes the specs that project never had.

🎥 Demo (2:45): https://youtu.be/WHglW0lnZGg
🪦 Try it: https://necromancer-seven.vercel.app
💻 Code (MIT): https://github.com/GodlyDeveloper1/necromancer

The patient

jquery.simpleWeather had 762 stars and real users. On 3 January 2019, Yahoo retired the YQL API it called on line 24. Its Gulp 3 build also crashes on modern Node. It's been dead ever since.

The logic inside is fine. What's missing is a map of what broke and a contract for what must not change. That's what Necromancer produces.

Step 1: the autopsy

$ necro autopsy .
Here lies simpleweather-corpse.
Vitality  ░░░░░░░░░░  0/100

✝ FATAL  Yahoo weather icon CDN is gone     jquery.simpleWeather.js:51
✝ FATAL  Yahoo YQL API is retired           jquery.simpleWeather.js:24
⚠ GRAVE  Bower package manager is abandoned bower.json:2
...
Cause of death: Yahoo YQL API is retired (2019-01-03)
🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน 🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน

19 detector rules (I call them the grimoire) look for retired APIs, dead CDNs, broken build tools, insecure includes and abandoned package managers. Every finding has a file, a line and the evidence. For simpleWeather: 8 fatal, 15 grave, 3 haunting. Vitality: 0.

The analysis is deliberately deterministic: no LLM calls inside Necromancer. It supplies the evidence, and Kiro's agent supplies the judgement. That made every result reproducible and testable.

Step 2: the soul

A resurrection that breaks the API isn't a resurrection. It's a rewrite.

So Necromancer extracts the project's soul: the public contract users depend on. For simpleWeather that's one entry point ($.simpleWeather), five options with their defaults, and 35 fields on the weather object passed to success().

There's no parser for untyped 2013 jQuery, so I wrote a brace-depth scanner that also follows helper functions. That way, refactoring the payload into a function isn't flagged as a broken contract.

Step 3: exhume

$ necro exhume .
✦ .kiro/hooks/soul-drift.json
✦ .kiro/specs/resurrection/design.md
✦ .kiro/specs/resurrection/requirements.md
✦ .kiro/specs/resurrection/tasks.md
✦ .kiro/steering/soul.md
...
It is ready to live.
🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน 🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน

This is the part I'm proudest of: Necromancer writes the same things Kiro itself runs on.

  • Requirements in EARS form, one per cause of death: WHEN dead-host:yql still matches any file in the repository THE SYSTEM SHALL remove it and adopt Open-Meteo...
  • A design with correctness properties.
  • Tasks in the right order: contract tests first, then one cure per cause of death.
  • Steering: soul.md with inclusion: always, so Kiro never forgets the old contract, whatever task it's on.
  • A hook that checks the soul on every save:
{
  "name": "Soul drift check",
  "trigger": "FileSave",
  "action": {
    "type": "agent",
    "prompt": "Call the necromancer `drift` MCP tool... If drifting, list each missing soul path..."
  }
}
🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน 🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน

Open the repo in Kiro, run the tasks, and it comes back.

It lives

Following that spec, simpleWeather now runs on Open-Meteo with Vite and Vitest. Same $.simpleWeather({ location, unit, success, error }). Same weather.* fields. 12 tests pass, the soul is alive, and vitality goes from 0 to 100.

The tests don't just check that the code runs. Property-based tests (fast-check) prove the new code matches the 2013 maths exactly over thousands of random inputs. The old expressions are copied in as the oracle:

const legacyAlt = (unit, temp) =>
  unit === 'f' ? Math.round((5.0 / 9.0) * (temp - 32.0))
               : Math.round((9.0 / 5.0) * temp + 32.0);
🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน 🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน

There's one property each for the temperature conversion, the Rothfusz heat index and the 16-point compass with its wraparound at 360°.

Then try to break it. Delete weather.city = place.city; and save:

$ necro drift .
Soul status: ⚠ drifting
  − simpleWeather.payload.weather.city
🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน 🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน

Put it back: ✦ alive.

How I used Kiro to build it

Necromancer itself was built spec-first in the Kiro IDE:

  • 3 specs: the core engine, the CLI/MCP/power, and the web app. Every task traces back to an EARS requirement.
  • 5 steering docs: product, tech and structure always on; design-language loaded only for web/** files; necro-voice manual. The tech steering is where "no LLM calls, pure functions over an in-memory repo" lives, and Kiro followed it from the first task.
  • 4 hooks: tests on save; a Grimoire guard (no new detector rule without a fixture test); build and test after every spec task; and one that runs Necromancer's own drift tool on Necromancer.
  • MCP: an MCP server with four tools: autopsy, explain, exhume, drift.
  • A Kiro power that bundles the MCP server, a resurrect skill and legacy-contract steering.
  • 10 correctness properties with fast-check. One found a real bug: a key named __proto__ was silently dropped by the soul serialiser. I'd never have written that test by hand.

The honest part: my free Kiro credits ran out partway through the core spec. Everything after that was implemented against the same specs, tick-boxes and steering, and checked with the same hooks and tests. Nothing had to be redesigned. That's the best argument I have for specs over vibe coding: a vibe-coded start would have left the second half with nothing to follow.

Try it

  • The Graveyard: paste any public GitHub URL into https://necromancer-seven.vercel.app and download a ready-made .kiro folder.
  • In Kiro: add the MCP server and say "This repo is dead. Resurrect it."
{ "mcpServers": { "necromancer": { "command": "npx", "args": ["-y", "github:GodlyDeveloper1/necromancer-mcp"] } } }
🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน 🏆 ยอดนิยม: diaguren labs ecdbd/i built a necromancer for dead code kiroween - ประเด็นร้อน

Next up: more grimoire rules (Python 2, AngularJS 1, Flash-era games) and a GitHub Action that posts a death certificate when a dependency is abandoned.

Bring out your dead. 🪦

Built for #Kiroween 2026 with Kiro.

Top comments (0)