API Version Migration
This loop automates the migration of API endpoints from legacy versions (e.g., v1) to the latest supported version (e.g., v2) within a codebase. It systemati…
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 "API Version Migration" loop.
Goal: Upgrade all endpoints to the latest version
Max iterations: 10
Between iterations run: grep -r 'v1/' src/
Exit when: No deprecated versions remain (grep command returns empty result)
Please begin migrating all API endpoints from v1 to v2. First, scan the codebase for any occurrences of 'v1/' in the src/ directory. For each file found, update the endpoints to use the corresponding v2 paths while preserving functionality. After making changes, run the test suite to verify everything still works. Log your changes and continue this process until the grep check returns no results.
Self-pace this loop. After each iteration, run `grep -r 'v1/' src/` and evaluate the output, and only continue if the exit condition is not met (No deprecated versions remain (grep command returns empty result)). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.