pr-review
SKILL.md
PR Review Comment Workflow
Steps
- Find PR:
gh pr list --head $(git branch --show-current) --repo Significant-Gravitas/AutoGPT - Fetch comments (all three sources):
gh api repos/Significant-Gravitas/AutoGPT/pulls/{N}/reviews(top-level reviews)gh api repos/Significant-Gravitas/AutoGPT/pulls/{N}/comments(inline review comments)gh api repos/Significant-Gravitas/AutoGPT/issues/{N}/comments(PR conversation comments)
- Skip comments already reacted to by PR author
- For each unreacted comment:
- Read referenced code, make the fix (or reply if you disagree/need info)
- Inline review comments (
pulls/{N}/comments):- React:
gh api repos/.../pulls/comments/{ID}/reactions -f content="+1"(or-1) - Reply:
gh api repos/.../pulls/{N}/comments/{ID}/replies -f body="..."
- React:
- PR conversation comments (
issues/{N}/comments):- React:
gh api repos/.../issues/comments/{ID}/reactions -f content="+1"(or-1) - No threaded replies — post a new issue comment if needed
- React:
- Top-level reviews: no reaction API — address in code, reply via issue comment if needed
- Include autogpt-reviewer bot fixes too
- Format:
cd autogpt_platform/backend && poetry run format,cd autogpt_platform/frontend && pnpm format - Commit & push
- Re-fetch comments immediately — address any new unreacted ones before waiting on CI
- Stay productive while CI runs — don't idle. In priority order:
- Run any pending local tests (
poetry run pytest, e2e, etc.) and fix failures - Address any remaining comments
- Only poll
gh pr checks {N}as the last resort when there's truly nothing left to do
- Run any pending local tests (
- If CI fails — fix, go back to step 6
- Re-fetch comments again after CI is green — address anything that appeared while CI was running
- Done only when: all comments reacted AND CI is green.
CRITICAL: Do Not Stop
Loop is: address → format → commit → push → re-check comments → run local tests → wait CI → re-check comments → repeat.
Never idle. If CI is running and you have nothing to address, run local tests. Waiting on CI is the last resort.
Rules
- One todo per comment
- For inline review comments: reply on existing threads. For PR conversation comments: post a new issue comment (API doesn't support threaded replies)
- React to every comment: +1 addressed, -1 disagreed (with explanation)
Weekly Installs
3
Repository
significant-gra…/autogptGitHub Stars
182.4K
First Seen
1 day ago
Security Audits
Installed on
amp3
cline3
opencode3
cursor3
kimi-cli3
codex3