Inspiration

Every developer has stared at undocumented code wondering what dark magic it does. For Kiroween 2026, I wanted to make that experience literally spooky — what if a ghost, skeleton, vampire, or witch explained your code?

What it does

GhostScript is an AI-powered Halloween code commenter. Paste any code snippet, choose a haunting style, and receive inline comments written in character — technically accurate, but delivered with supernatural personality.

  • 👻 Ghost: ethereal, fascinated by null values and recursion
  • 💀 Skeleton: bare-bones, terse, bone metaphors only
  • 🧛 Vampire: aristocratic disdain for O(n²) algorithms
  • 🧙 Witch: functions are spells, bugs are hexes

Supports 8 languages: JavaScript, TypeScript, Python, Go, Rust, Java, C++, C#.

How I built it

Built entirely with Kiro IDE using spec-driven development:

  1. Spec first — wrote .kiro/specs/ghostscript-spec.md before any code, defining all requirements and architecture decisions
  2. Steering — .kiro/steering/project-standards.md enforces TypeScript strict mode and fail-fast error handling across all Kiro-generated code
  3. Hooks — pre-commit-check.json blocks API key leaks; post-save-typecheck.json runs TypeScript check on every save
  4. MCP — filesystem MCP server for structured file operations during development

Stack: Next.js 14 + TypeScript + Tailwind CSS + Groq API (llama-3.3-70b-versatile) + Vercel

Challenges I ran into

Prompt engineering for 4 distinct personas that stay in character while still being technically accurate was the hardest part. The structured output parser (using a text separator instead of JSON) was key to reliably extracting code from metadata.

Accomplishments that I'm proud of

The UI turned out genuinely spooky — floating ghost particles, flickering animations, and a dark Halloween color palette that actually makes reading code enjoyable.

What I learned

Kiro's spec-driven workflow forces you to think about architecture before writing a single line. The steering documents are surprisingly powerful — Kiro never generated an any type once the rule was in place.

What's next for GhostScript

  • Add more personas (Zombie, Werewolf)
  • Support file upload
  • VS Code extension

Built With

Share this project:

Updates

Submission history