
Iterate Pr
This automates the tedious cycle of fixing CI failures and addressing PR feedback until everything goes green. It checks GitHub Actions status, pulls review comments from both humans and bots like Sentry and Codecov, reads actual failure logs instead of guessing from check names, makes targeted fixes, and pushes changes in a loop. Smart enough to wait when bot checks are still pending so you don't waste time on feedback that hasn't landed yet. The validation step is crucial: it actually reads your code context and skips invalid feedback instead of blindly addressing every comment. Requires gh CLI authenticated. Useful when you're stuck in that annoying push, wait, fix, repeat workflow and want to hand it off.
- skills.sh installs
- 245
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill iterate-pr --agent claude-codeInstalls into .claude/skills of the current project.
Files
Iterate on PR Until CI Passes
Continuously iterate on the current branch until all CI checks pass and review feedback is addressed.
Requires: GitHub CLI (gh) authenticated and available.
Process
Step 1: Identify the PR
gh pr view --json number,url,headRefName,baseRefName
If no PR exists for the current branch, stop and inform the user.
Step 2: Check CI Status First
Always check CI/GitHub Actions status before looking at review feedback:
gh pr checks --json name,state,bucket,link,workflow
The bucket field categorizes state into: pass, fail, pending, skipping, or cancel.
Important: If any of these checks are still pending, wait before proceeding:
sentry/sentry-iocodecovcursor/bugbot/seer- Any linter or code analysis checks
These bots may post additional feedback comments once their checks complete. Waiting avoids duplicate work.
Step 3: Gather Review Feedback
Once CI checks have completed (or at least the bot-related checks), gather human and bot feedback:
Review Comments and Status:
gh pr view --json reviews,comments,reviewDecision
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Git & Pull Requests, Code Review & Quality, Debugging
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Playwright E2e Builder245
- Adaptyv242
- Medchem241
- Personal Tool Builder241
- Zarr Python239
- Cobrapy238
- Pylabrobot238
- Qutip237
- Torchdrug237
- Template Skill236
- Deployment Procedures235
- Gcp Cloud Run235
- Gepetto234
- Qiskit234
- Pysam233
- Pufferlib232
- Web Quality Audit232
- Cc Skill Strategic Compact231
- Cc Skill Project Guidelines Example230
- Internal Comms230
- Professional Communication227
- Datacommons Client225
- Brenda Database222
- Heygen Best Practices222