DEV Community

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), 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.

What NeuroCode Grimoire Does

  • The Altar: Paste JS/TS files, drop an entire project folder, upload a .zip archive, 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 / require edges. 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 to 100/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 (Groq llama-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 across requirements.md, design.md, and tasks.md.
  • Agent Hooks (.kiro/hooks/): Two active hooks - typecheck-on-save.kiro.hook (npx tsc --noEmit) and test-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 / .zip upload, and unit tests).

Try it live at https://neurocode.pp.ua!

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.