Remove debug code, tighten naming, delete dead branches. Loop until clean.
Start the "De-Sloppify Pass" loop. - Goal: Recent changes are clean, minimal, and convention-aligned — no debug artifacts, no dead code, no naming inconsistencies. - Max iterations: 4 - Between iterations run: `npm run lint && npm test` - Exit when: review finds no remaining slop AND lint + tests pass clean. Steps: 1. Review the recent diff (`git diff main...HEAD`) for slop indicators: - console.log / debugger statements - Commented-out code blocks - TODO/FIXME/HACK comments without tickets - Inconsistent naming (camelCase vs snake_case mixing) - Dead imports or unused variables - Overly defensive code (try/catch around guaranteed-safe operations) 2. Fix each instance with minimal changes 3. Run linter and tests to verify fixes don't break anything 4. Do a second pass — slop often hides behind other slop 5. If the diff is now clean and lint passes, stop Self-pacing instructions: After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when exit condition passes or max iterations reached. Give a short status update each pass.
How it works