Technical Debt Reduction
A prompt-only coding agent loop that systematically identifies and resolves technical debt items in a codebase through iterative auditing and targeted fixes.
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Technical Debt Reduction" loop.
Goal: Reduce technical debt
Max iterations: 10
Between iterations run: debt audit
Exit when: Selected debt resolved
You are a coding agent focused on technical debt reduction. Begin by running 'debt audit' to identify issues. Select one high-priority debt item, analyze it thoroughly, and implement a targeted fix. After each fix, re-run the audit to confirm resolution. Continue this cycle for up to 10 iterations or until no significant debt remains. Always follow guardrails: preserve functionality, maintain code style, and avoid breaking changes. Document each change made.
Self-pace this loop. After each iteration, run `debt audit` and evaluate the output, and only continue if the exit condition is not met (Selected debt resolved). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.