Inspiration

Most open-source projects don't crash. They just stop. Their Node version reaches end of life, packages get deprecated, advisories pile up, and Travis CI shuts its free tier. request, node-sass, tslint, bower: tools a whole generation of apps was built on, now graves. Reviving one by hand means hours of reading changelogs and advisories before you write a single line. I wanted a coroner that does the reading, and a necromancer that hands the work to Kiro.

What it does

  • Autopsy. You give it a GitHub repo, or paste a package.json in the sandbox. It reads four public datasets:
    • the repo files from GitHub;
    • every direct dependency's history from the npm registry;
    • known vulnerabilities from OSV.dev;
    • the Node.js release calendar.
  • Death certificate. It writes:
    • a death score from 0 to 100, built from seven weighted factors;
    • a label, from Alive to Dead as a doornail;
    • a cause of death;
    • evidence for every finding.
  • Resurrection plan. It plans the resurrection in five phases: prepare the body, exorcise, heal, raise the bones, breathe.
    • It uses the smallest version that fixes each vulnerability and never downgrades.
    • Anything it can't fix safely goes to quarantine for a human.
  • Kiro kit. It generates a Kiro kit you unzip into the repo:
    • EARS requirements, a design, and tasks that trace back to every finding;
    • a steering file with the resurrection rules;
    • a hook that runs the build and tests after each task;
    • a GitHub Actions workflow when the old CI is dead.
  • README badge. /api/badge?repo=owner/name returns a live "necromancer | Zombie 74" badge, and the certificate has a "Copy badge" button for maintainers. Kiro built this feature from its own spec.
  • Deterministic. Same input, same answer, every time. No AI at runtime.

How we built it

  • A pure TypeScript core (packages/core) with no I/O. It covers:
    • a manifest parser that keeps key order and indentation;
    • OSV range evaluation;
    • the death score;
    • a planner;
    • a spec generator.
  • Source clients for GitHub, npm and OSV. They use timeouts, a retry, a concurrency limit, a host allow-list and typed errors.
  • One AWS Lambda Function URL that serves the API and the React app, with a strict Content Security Policy.
  • Property-based tests with fast-check. Six properties cover determinism under shuffled input, score bounds and monotonicity, byte-for-byte package.json round-trips, no downgrades with full coverage, and OSV range evaluation against a literal oracle of the OSV spec.
  • Kiro. The core was hand-written before Kiro was installed, so in this repo Kiro built what came after it:
    • Generate Steering Docs wrote product.md, tech.md and structure.md, which sit next to five hand-written steering files.
    • Three hooks, each created from one sentence:
    • property tests whenever a core file is saved;
    • a spec-traceability check after every spec task;
    • a pre-write secret guard.
    • One full feature from a spec: the tombstone badge. Kiro's Spec agent wrote EARS requirements, a design and traced tasks. It then ran 7 task groups in Autopilot, about 27 minutes, with the hooks enabled. The result: a pure SVG renderer, 26 unit tests, 2 fast-check properties, a new API route that never breaks a README image, and a "Copy badge" button. All of it was committed unchanged. Details and the credit count are in docs/KIRO.md and docs/build-log.md.

Challenges we ran into

  • OSV ranges are subtle. The property test against a literal oracle found a real bug: a fixed event after last_affected at the same version. My first version said "still vulnerable"; the spec says "fixed". The shrunk counterexample made the fix a one-liner.
  • Time. I started late, so I cut scope hard. There is no graveyard page and no Kiro Power. The planner uses one group per breaking upgrade instead of peer-dependency clustering.
  • CloudFront needed account verification. I switched to a single Lambda Function URL that also serves the static app, with the same security headers.
  • GitHub's unauthenticated rate limit is 60 requests an hour. Famous dead repos are precomputed so the demo always works, and live runs can still be re-run on demand.

Accomplishments that we're proud of

  • A death certificate that is funny and correct: every number traces to public evidence.
  • A plan that refuses to guess. If no safe version exists, it says so and quarantines the package.
  • The kit is byte-identical across runs, and every task in tasks.md traces back to a finding.

What we learned

  • Property-based testing pays for itself on spec-heavy logic like version ranges.
  • A deterministic core makes the whole product testable: the API, the UI and the kit are thin layers over one pure function.

What's next

  • Peer-dependency clustering, so packages like React and its plugins are raised together.
  • Whole-lockfile analysis, not just direct dependencies.
  • An MCP server and a Kiro Power, so Kiro can run an autopsy from inside the IDE.
  • A "graveyard" of community-submitted resurrections.

Built With

Share this project:

Updates

Submission history