AIniverse Get the App

Format Until Clean

Coding by loops! by elorm

Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.

Prompt

Step 1 — Run formatter
Run the project formatter (prettier, biome, etc.).

Check: `npm run format`

Step 2 — Check diff
If formatting changed files, review diff for unintended edits. Fix manual style issues formatter missed.

Step 3 — Confirm clean
Re-run formatter and confirm working tree is stable.

Check: `npm run format && git diff --quiet`

Step 4 — Repeat until done
Repeat the steps above until: Formatter produces no remaining diff

Check with: `npm run format && git diff --quiet`

Stop after 5 iterations and report what is blocking.

Use this prompt in AIniverse

Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.

Open in App

More 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.

De-Sloppify Pass

After implementation, run a cleanup pass: remove debug code, tighten naming, delete dead branches, and align with pro...

Merge Conflict Resolver

Rebase or merge target branch, resolve conflicts file by file, and loop until the branch is current and tests pass.