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-code

Installs 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-io
  • codecov
  • cursor / 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
1ncklrs avatarremotion-video-reviewerncklrs/startup-os-skillsStructured review process for Remotion video implementations. Analyzes spec compliance, detects common timing/easing issues, validates asset quality, and provid244skills.sh installs
2factory-ai avatarsimplifyfactory-ai/factory-pluginsReview changed code for reuse, quality, and efficiency, then fix any issues found.240skills.sh installs
3aktsmm avatarbook-writing-workspaceaktsmm/agent-skillsOperate a reusable technical book manuscript workspace with writing structure, reader persona SSOT, review rules, and optional Markdown to Re:VIEW/PDF support. 239skills.sh installs
4everyinc avatartest-browsereveryinc/compound-engineering-pluginRun browser tests on pages affected by current PR or branch239skills.sh installs
5charleswiltgen avataraxiom-liquid-glasscharleswiltgen/axiomUse when implementing Liquid Glass effects, reviewing UI for Liquid Glass adoption, debugging visual artifacts, optimizing performance, or requesting expert rev232skills.sh installs
6openai avatardocs-syncopenai/openai-agents-pythonAnalyze main branch implementation and configuration to find missing, incorrect, or outdated documentation in docs/. Use when asked to audit doc coverage, sync 231skills.sh installs