What problem does it solve? Finishing a feature branch often leaves lint errors, type errors, and dead code scattered across the diff, and fixing them manually risks touching unrelated files or masking real environment problems. This Skill automates a scoped, verified cleanup pass so the branch is review-ready without polluting the commit with unrelated edits. ## Core Features & Use Cases - Environment preflight gate: Verifies Node version and Prisma codegen before any fix, so toolchain issues are not misdiagnosed as code errors. - Scoped lint, Prettier, and type-check: Runs ESLint fix, Prettier, and type-check limited to the branch's changed packages, with strict rules against as/any casts, _-prefixing unused vars, or removing existing assertions and eslint-disable comments. - Dead code removal and test handoff: Deletes unused imports, variables, console.logs, and commented-out code, then delegates affected unit and e2e specs to cleanup-unit-tests and cleanup-e2e-tests. - Capped verify loop with reporting: Re-runs all three gate checks up to 3 attempts, raises decision memos for architectural type issues, and writes a structured cleanup report. - Use Case: After finishing a feature branch in a pnpm monorepo, run the cleanup to auto-fix lint and formatting, resolve in-scope type errors, remove dead code, and get a report listing exactly which files changed. ## Quick Start Ask the AI to run cleanup on the current branch to fix lint errors, type errors, and dead code before committing.