De-Sloppify Pass
Coding
by loops! by elorm
After implementation, run a cleanup pass: remove debug code, tighten naming, delete dead branches, and align with project conventions.
Prompt
Step 1 — Scan for slop Review recent changes for debug logs, commented code, TODO hacks, oversized functions, and inconsistent naming. Step 2 — Clean up Apply minimal fixes: delete dead code, extract helpers, align types, and match surrounding style. Step 3 — Verify Run lint and tests to ensure cleanup did not break behavior. Check: `npm run lint && npm test` Step 4 — Repeat until done Repeat the steps above until: No slop remains and lint/tests still pass Check with: `npm run lint && npm test` Stop after 4 iterations and report what is blocking.
Platforms
CLAUDE
CLAUDE
Use this prompt in AIniverse
Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.
Open in AppMore Coding prompts
Independent Verifier Pass
When implementation claims done, a separate verifier pass runs build, lint, and tests with no access to the implement...
API Contract Until Match
Loop until API responses match the OpenAPI or JSON Schema contract — catch drift between docs and implementation.
Merge Conflict Resolver
Rebase or merge target branch, resolve conflicts file by file, and loop until the branch is current and tests pass.
Post-Merge Regression Guard
Hook that runs smoke tests after git merge or rebase to catch integration regressions immediately.