---
title: "iterate-pr skill: fix CI failures and review comments on a PR"
canonical_url: https://cookiesforai.app/skills/getsentry/iterate-pr
last_updated: 2026-10-02T01:58:30+02:00
type: skill
summary: "iterate-pr is Sentry's agent skill that keeps working on a GitHub pull request until CI passes and high and medium priority review comments are fixed, using bundled scripts and the gh CLI."
install: "npx skills add getsentry/skills --skill iterate-pr"
related:
  - "https://cookiesforai.app/skills/obra/finishing-a-development-branch"
  - "https://cookiesforai.app/skills/openai/gh-address-comments"
  - "https://cookiesforai.app/skills/openai/gh-fix-ci"
  - "https://cookiesforai.app/skills/obra/receiving-code-review"
  - "https://cookiesforai.app/skills/getsentry/code-review"
  - "https://cookiesforai.app/skills/getsentry/gha-security-review"
  - "https://cookiesforai.app/skills/getsentry/security-review"
---

# Iterate on PR

iterate-pr is Sentry's agent skill that keeps working on a GitHub pull request until CI passes and high and medium priority review comments are fixed, using bundled scripts and the gh CLI.

| Fact | Value |
|---|---|
| Publisher | Sentry (official, own GitHub account) |
| Source | https://github.com/getsentry/skills/tree/HEAD/skills/iterate-pr |
| License | Apache-2.0 |
| Repository stars | 1,031 on 2026-10-02 |
| Skill name | iterate-pr |
| Category | Code review and Git |
| Skill last changed | 2026-08-24 |
| Page updated | 2026-10-02 |
| Facts checked | 2026-10-02 |

## Install

Install this skill with the skills CLI:

```
npx skills add getsentry/skills --skill iterate-pr
```

Or, for Claude Code, add Sentry's plugin marketplace:

```
claude plugin marketplace add getsentry/skills
```

Then install the sentry-skills plugin, which holds all 28 skills:

```
claude plugin install sentry-skills@sentry-skills
```

Restart Claude Code after installing the plugin. Sentry's README says its skills were written for Sentry employees, so some carry Sentry conventions.

## Ask your coding agent

A skill can include scripts that run on your computer, so read its source first: https://github.com/getsentry/skills/tree/HEAD/skills/iterate-pr

```text
Install the agent skill iterate-pr from github.com/getsentry/skills.
```

## What it does

iterate-pr is an agent skill from Sentry that drives a GitHub pull request to green. The agent finds the pull request for the current branch, then uses four bundled Python scripts run with uv: one fetches CI check results with failure snippets, one sorts review comments into high, medium, low, bot and resolved, one monitors checks, and one replies to review threads.

The iterate-pr loop fixes high and medium comments directly and asks the user which low-priority ones to handle. For a failed check it reads the full log, states the cause before editing, searches for the same problem elsewhere and fixes the root cause. It reruns the relevant test or linter locally, commits and pushes, then polls every 30 seconds and checks for new feedback once CI passes.

The skill knows which checks to wait for, the review bots Sentry, Warden, Cursor, Bugbot, Seer and CodeQL, and which never to wait for: human approval, draft status, required reviews and Codecov. It stops and reports when only human gates remain, when the branch needs a rebase, or when the same failure survives two attempts.

## When to use it

- Your pull request has failing CI and you want an agent to fix it and push.
- Reviewers and review bots left comments and you want the real issues fixed.
- You want an agent to keep watching CI until the checks pass.
- You want low-priority nitpicks listed so you can choose which to address.

## When to pick something else

- Merging or approving: the skill never waits for or performs human approval, draft changes or merges.

## What it needs

- The GitHub CLI (gh), signed in
- uv to run the bundled Python scripts
- An open pull request for the current branch

## Which agents it works in

Sentry documents it for Claude Code, Cursor, Cline, GitHub Copilot. The open skills CLI also installs it into 78 agents (listed with the CLI on 2026-10-01).

The workflow runs in any agent with a shell; one optional step uses Claude Code's Monitor tool to watch CI, with a polling loop as the default.

## License

Apache-2.0.

## Related

### Related skills for code review and git

- [Finishing a Development Branch](https://cookiesforai.app/skills/obra/finishing-a-development-branch): Finishing a Development Branch is an agent skill from Superpowers: when work is done, your agent runs the tests, offers to merge, open a pull request or keep the branch, then cleans up.
- [GitHub address comments](https://cookiesforai.app/skills/openai/gh-address-comments): gh-address-comments is OpenAI's agent skill for pull request review feedback: the agent fetches every comment and review thread on the open PR, numbers them, and fixes only the ones you pick.
- [GitHub fix CI](https://cookiesforai.app/skills/openai/gh-fix-ci): gh-fix-ci is OpenAI's agent skill for failing pull request checks: the agent uses the GitHub CLI to find failing GitHub Actions runs, pulls the logs, summarizes the failure and proposes a fix plan.
- [Receiving Code Review](https://cookiesforai.app/skills/obra/receiving-code-review): Receiving Code Review is an agent skill from Superpowers: your agent checks review feedback against the code before acting, pushes back with reasons when it is wrong, and skips the flattery.

### More from Sentry

- [Code review](https://cookiesforai.app/skills/getsentry/code-review): code-review is Sentry's agent skill for reviewing pull requests by Sentry's engineering practices: runtime errors, performance, side effects, compatibility, security, design, tests and the tone of feedback.
- [GitHub Actions security review](https://cookiesforai.app/skills/getsentry/gha-security-review): gha-security-review is Sentry's agent skill for auditing GitHub Actions workflows for attacks an outsider can run, such as pwn requests, expression injection and credential theft, with a concrete exploit for each finding.
- [Security review](https://cookiesforai.app/skills/getsentry/security-review): security-review is Sentry's agent skill for reviewing code for exploitable vulnerabilities, such as injection, XSS, broken access control and weak crypto, reporting only findings it has confirmed with high confidence.

