Cleanup Unused Files
This loop automatically identifies and removes unused files and dead code from your codebase. It iteratively scans the project, presents candidates for remov…
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 "Cleanup Unused Files" loop.
Goal: Remove dead code and files
Max iterations: 10
Between iterations run: unused file scan
Exit when: No unused files found
Initiate the cleanup loop by scanning the project for unused files and presenting them for review.
Self-pace this loop. After each iteration, run `unused file scan` and evaluate the output, and only continue if the exit condition is not met (No unused files found). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.