Lint and Typecheck FixFeatured
Run lint and typecheck, fix reported issues, and loop until the codebase is clean.
Kickoff prompt
Start the "Lint and Typecheck Fix" loop.
Goal: lint and typecheck are clean
Max iterations: 8
Between iterations run: npm run lint && npx tsc --noEmit
Exit when: both commands exit 0
Step 1: Run lint and typecheck. Fix reported issues with minimal diffs, then repeat.
Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.Steps
- 1
Run lint and typecheck
Run lint and TypeScript checks.
npm run lint && npx tsc --noEmit - 2
Fix issues
Fix lint and type errors with minimal changes. Do not disable rules unless necessary.
Basic information
Category
Testing
Goal
lint and typecheck are clean
Max iterations
8
Check command
npm run lint && npx tsc --noEmit
Exit when
both commands exit 0
Supported agents
Cursor
More Testing loops
Build Until Green
Run the production build, fix compile and bundling errors, and loop until the build succeeds.
Coverage Until Threshold
Add focused tests until coverage meets your threshold (e.g. 80%), without changing production behavior unnecessarily.
Flaky Test Triage
Run failing tests repeatedly, classify each failure as flaky or real, and fix only confirmed regressions.
Format Until Clean
Run the formatter, fix any remaining style issues, and loop until the codebase formats cleanly with no diffs.
Pre-Commit Guard
Hook that runs tests before git commit commands to block commits when the suite is red.
Autoloop TDD
Test-first loop: write a failing test, implement the minimum code to pass, refactor, and repeat.
Comments