Dead Code Eliminator
Automatically identifies and removes unused code to improve codebase quality and maintainability. This loop performs iterative scans for dead code, removes i…
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 "Dead Code Eliminator" loop.
Goal: Remove unused code
Max iterations: 10
Between iterations run: dead code scan
Exit when: Analysis clean
Please analyze this codebase to identify and remove all dead code. Begin by running a dead code scan to detect unused functions, variables, and modules. After each removal, rerun the scan to confirm the codebase is now clean. Do not proceed if any false positives are detected without explicit approval.
Self-pace this loop. After each iteration, run `dead code scan` and evaluate the output, and only continue if the exit condition is not met (Analysis clean). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.