How We Built NeuroCode Grimoire in Kiro (and Made It Export Its Own .kiro/specs)
Opening an unfamiliar legacy JavaScript or TypeScript codebase is intimidating. Dry linter output rarely motivates developers to clean up silent bugs, hardcoded secrets, or dead code. For Kiroween 2026 (Costume Contest)
Opening an unfamiliar legacy JavaScript or TypeScript codebase is intimidating. Dry linter output rarely motivates developers to clean up silent bugs, hardcoded secrets, or dead code.
For Kiroween 2026 (Costume Contest), we built NeuroCode Grimoire (The Code Necromancer) โ an interactive dark-grimoire code auditor that turns legacy cleanup into a visual exorcism ritual, and then exports a ready-to-run .kiro/specs/ resurrection plan alongside the patched source files.
- Live App: https://neurocode.pp.ua
- GitHub Repo: https://github.com/Lester-Leoni/neurocode-grimoire
- Demo Video: https://youtu.be/mGeCh8fHaBA
What NeuroCode Grimoire Does
-
The Altar: Paste JS/TS files, drop an entire project folder, upload a
.ziparchive, or click Summon Demo Code to load a pre-computed legacy project offline. -
Haunted Graph: Renders each file as a React Flow node connected by
import/requireedges. Cursed files pulse Crimson or Ember based on severity while tracking a live Code Vitality Score (0โ100). -
Exorcism Ritual: Click any cursed file to inspect plain-English explanations, threat counts (
Bug,Vulnerability,Dead Code,Antipattern), and before/after diffs. Click Exorcise Curse (or Purify All) with optional Web Audio ritual chimes to purify the codebase to100/100. -
Purified Code & Meta-Export (
resurrection-specs.zip): Preview or copy the patched file in the Purified File tab, and download a zip bundle containing:-
.kiro/specs/resurrection/{requirements,design,tasks}.mdโ a Kiro-ready resurrection plan generated from the audit -
purified/โ all patched source files -
AUDIT_REPORT.mdโ a clean summary table for teams
-
How Kiro & KiroCrew Powered the Build
Instead of ad-hoc prompting, we structured the entire sprint around Kiro's Spec-Driven Development workflow:
-
Steering (
.kiro/steering/): Three always-on steering files (product-and-scope.md,tech-stack.md,grimoire-design.md) locked our MVP scope, enforced strict JSON curse schema validation across our Cloudflare Worker proxy (Groqllama-3.3-70b-versatile+ Cloudflare Workers AI fallback), and defined the Dark Grimoire color and typography tokens. -
Specs (
.kiro/specs/neurocode-grimoire/): Every feature was broken into granular, verifiable tasks acrossrequirements.md,design.md, andtasks.md. -
Agent Hooks (
.kiro/hooks/): Two active hooks โtypecheck-on-save.kiro.hook(npx tsc --noEmit) andtest-on-save.kiro.hook(npx vitest run) โ caught TypeScript and logic regressions immediately across all 49 Vitest unit tests. -
KiroCrew: Accelerated parallel UI and utility passes (
Copy Purified Code, Web Audio ritual chimes, folder/.zipupload, and unit tests).
Try it live at https://neurocode.pp.ua!
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.