What problem does it solve?
Autonomous coding agents often get stuck in repeated, unbounded retries when builds fail or tests break, wasting tokens and time while making unclear or risky changes.
Core Features & Use Cases
- Build-Fix Loops: Iteratively run dotnet build, parse compiler errors, categorize them (e.g., missing using/reference, type mismatch, API change), apply targeted fixes, and stop on PASS/STUCK/FAIL/REGRESSION.
- Test-Fix Loops: Iteratively run dotnet test, parse failing tests, diagnose each failure to decide whether to fix test or production, apply the correct fix, and stop when progress stalls.
- Refactor and Scaffold Loops: Execute multi-step refactors with build+test verification per step, or scaffold new features end-to-end (generate → build-fix → generate tests → test-fix → diagnostics/anti-pattern checks).
- Safety Guardrails: Enforce bounded iterations, progress detection, atomicity per iteration, regression detection with revert, and emergency exits for critical issues or user interruption.
- Transparency Reporting: Provide per-iteration summaries of what changed and why, including error/failure counts and statuses.
Use Case Example: When you ask Claude to “keep going until it works” after a .NET change introduces compilation errors and failing tests, this Skill drives a loop that fixes build errors first, then diagnoses and fixes failing tests, with explicit stopping rules and clear iteration-by-iteration reporting.
Quick Start
Load the autonomous-loops skill and tell Claude to “fix the build and make the tests pass for this .NET solution, stop when it’s stuck or when tests and build are green.”