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:
- Spec first — wrote
.kiro/specs/ghostscript-spec.mdbefore any code, defining all requirements and architecture decisions - Steering —
.kiro/steering/project-standards.mdenforces TypeScript strict mode and fail-fast error handling across all Kiro-generated code - Hooks —
pre-commit-check.jsonblocks API key leaks;post-save-typecheck.jsonruns TypeScript check on every save - 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
- groq
- kiro
- nextjs
- tailwindcss
- typescript
- vercel