# Address PR Comments

Resolve PR review feedback and loop until CI is green and threads are closed.

- Repository: https://github.com/Significant-Gravitas/AutoGPT (187858 stars)
- Category: Git and review
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add Significant-Gravitas/AutoGPT --skill pr-address -g -a claude-code -y`
Codex: `npx skills add Significant-Gravitas/AutoGPT --skill pr-address -g -a codex -y`
Cursor: `npx skills add Significant-Gravitas/AutoGPT --skill pr-address -g -a cursor -y`
Gemini CLI: `npx skills add Significant-Gravitas/AutoGPT --skill pr-address -g -a gemini-cli -y`

## Description

Address PR review comments and loop until CI green and all comments resolved. TRIGGER when user asks to address comments, fix PR feedback, respond to reviewers, or babysit/monitor a PR.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# PR Address

## Find the PR

```bash
gh pr list --head $(git branch --show-current) --repo Significant-Gravitas/AutoGPT
gh pr view {N}
```

## Read the PR description

Understand the **Why / What / How** before addressing comments, you need context to make good fixes:

```bash
gh pr view {N} --json body --jq '.body'
```

> If GraphQL is rate-limited, `gh pr view` fails. See [GitHub rate limits](#github-rate-limits) for REST fallbacks.

## Optional: trigger the review bot

**Only relevant if the PR has no review yet.** If the fetch steps below turn up no reviews and no inline threads, there is nothing to address *yet*, that is not the same as being done. You can summon the repo's review bot yourself:

```bash
gh pr comment {N} --body "/review"
```

This is an **option, not a required step**. Skip it whenever the PR already has reviews (bot or human), those are what you are here to address. See the `open-pr` skill's "Review workflow" step for the same trigger in the PR-creation flow.

`autogpt-pr-reviewer[bot]` typically responds within ~30 minutes. **Poll for it rather than sleeping**, the loop in [Polling for CI + new comments](#polling-for-ci--new-comments) already re-checks every source every 30 seconds, so run that loop and react the moment the review lands. Note the `id` and `created_at` of the `/review` comment you posted; [Waiting on a requested review](#waiting-on-a-requested-review) needs them for the exit condition.

## Fetch comments (all sources)

### 1. Inline review threads, GraphQL (primary source of actionable items)

The rest: https://github.com/Significant-Gravitas/AutoGPT/blob/HEAD/.claude/skills/pr-address/SKILL.md
