Refactoring generated code
Refactor in small, behavior-preserving steps with the tests green between each — never rewrite from scratch just because the draft is ugly.
What this skill helps you build
Turn a working-but-messy AI draft into code you'd actually maintain — fix naming, duplication, layering, and dead code without a risky full rewrite.
The production takeaway
Refactor in small, behavior-preserving steps with the tests green between each — never rewrite from scratch just because the draft is ugly.
Inside this skill
The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.
Unlock the full implementation
Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.