Remove Deprecated Code
This loop systematically identifies and removes deprecated API usage and code patterns to ensure your codebase remains modern, performant, and free of outdat…
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 "Remove Deprecated Code" loop.
Goal: Eliminate all deprecated APIs and code patterns from the codebase
Max iterations: 10
Between iterations run: deprecation scan
Exit when: No deprecated APIs remain in the codebase
Scan the codebase for any deprecated APIs or code patterns. List all found instances and prioritize them based on impact and usage frequency. Begin fixing the highest priority deprecated usages one by one, ensuring that functionality is preserved after each change.
Self-pace this loop. After each iteration, run `deprecation scan` and evaluate the output, and only continue if the exit condition is not met (No deprecated APIs remain in the codebase). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.