PRODUCT.ENGINEER
ManifestoThe RolePlaybookLoops
All loops
ReviewingManualHardened

De-Sloppify Pass

Remove debug code, tighten naming, delete dead branches. Loop until clean.

Compatible tools:Claude CodeCursor
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

De-Sloppify Pass

cleanmoreReview the diffScan for slopClean each instanceLint + testDiff clean?Code polished
product.engineer

Owning the whole loop, from idea to impact.

Learn

  • Blog
  • Manifesto
  • Authors
  • RSS Feed

Tools

  • Loops
  • Playbook
  • Discovery
  • Cloud Maturity
  • 5 Whys

Opportunities

  • Jobs
  • Hot Jobs
  • Companies
  • The Role
© 2026 product.engineer
||