Large Commit Splitter
Automatically splits large, monolithic Git commits into smaller, more reviewable units while preserving logical code boundaries and maintaining clean history.
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 "Large Commit Splitter" loop.
Goal: Create smaller commits
Max iterations: 10
Between iterations run: commit audit
Exit when: Commit size target reached
Please analyze my current staged changes and split them into multiple smaller commits, ensuring each commit is under 200 lines changed and represents a coherent logical change. Maintain clean commit messages that describe each change clearly. Start by checking what files are currently staged with 'git diff --name-status' and 'git diff --stat' to understand the scope.
Self-pace this loop. After each iteration, run `commit audit` and evaluate the output, and only continue if the exit condition is not met (Commit size target reached). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.