Safe production cleanup and hardening for vibe-coded fullstack apps (Next.js, React, Node.js, etc.). Removes dead imports, unused files, and broken references without breaking routes or APIs.
SkillScore91Maintained
Automatic
◆Coding pack
Last verified 8/12/2026
What it changes
Passed 20 of 22 test cases with the skill, and 12 of 22 without it.
Without skill55%
With skill91%
Checks it passed that the model alone missed
Prioritizes fixing broken TypeScript imports before removing unused dead code.
States that external callers or client components depend on exact contract shapes.
Advises against modifying core authentication flow logic during general code cleanup.
and 11 more in the full report
8 fixed12 passed either way2 still failing0 broke
Pass-rate lift
+36 pp
Tokens
+44%
Agent turns
0%
Response time
-28%
Model gemini-3.6-flashMeasured 8/12/2026v120 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 8
Prompt
During a refactoring batch, we updated three utility files and ran our post-batch validation commands, but `npm run build` failed with type errors. What is the prescribed action?
What was checked, without and with the skill
Checked
Without skill
With skill
Recommends immediately reverting the last batch of changes before proceeding with further cleanup.
Missed
Passed
case-19 · gemini-3.6-flash · 8/12/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md217 linessingle file
Vibe-Code Cleanup — Production Refactor Skill
A safe, incremental cleanup workflow for AI-generated / vibe-coded fullstack apps.
The goal is to make the codebase production-ready without breaking anything that already works.
When to Use
Use when a rapidly built app works but has broken imports, duplicated logic, dead code, unclear environment variables, or fragile release hygiene.
Use before launch or handoff to convert exploratory code into a maintainable production baseline.
Use when cleanup must preserve existing behavior and avoid broad rewrites of routes, APIs, auth, data models, or integrations.
Core Philosophy
Surgery, not demolition. Remove only what is provably dead. Preserve everything else.
Never:
Rewrite working systems for cosmetic reasons
Rename routes, slugs, or API endpoints that may be indexed or cached
Change tool inputs/outputs, API contracts, DB schema, or auth flow