pr-review-recycle
Processes and resolves automated PR feedback to ensure all checks pass and code is ready for merge.
Install
mkdir -p .claude/skills/pr-review-recycle && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16877" && unzip -o skill.zip -d .claude/skills/pr-review-recycle && rm skill.zipInstalls to .claude/skills/pr-review-recycle
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use to process automated PR review feedback (Copilot, Greptile, Codex) and iterate until all AI threads are addressed, checks are green, and the PR is merge-ready. Trigger when the user says "address review feedback", "recycle reviews", or references an automated reviewer.Key capabilities
- →Process automated PR review feedback
- →Iterate until all AI threads are addressed
- →Ensure PR checks are green
- →Prepare PR for human merge
- →Snapshot PR state and collect review threads
- →Implement smallest safe fixes
How it works
The skill processes automated PR review feedback by repeatedly snapshotting the PR state, collecting review threads, triaging feedback, implementing fixes, running checks, and resolving threads until the PR is merge-ready.
Inputs & outputs
When to use pr-review-recycle
- →address pr review feedback
- →recycle ai code reviews
- →resolve pending pr threads
About this skill
PR Review Recycle Loop
Use this skill when you need to process automated PR review feedback (Copilot, Greptile, Codex) and iterate until:
- All automated review threads are addressed (fixed, explained, or explicitly deferred).
- PR checks are green.
- The PR is ready for a human to merge.
Canonical workflow: .codex/prompts/automated-review-cycle.md. This file is a
Codex mirror of .opencode/skills/pr-review-recycle/SKILL.md and exists
for harness-specific standing rules. Precedence: if the canonical workflow
conflicts with this wrapper (for example, around committing/pushing), this
wrapper wins.
Standing Rules
- Prefix all GitHub prose (PR comments, issue comments, PR descriptions) with
[AGENT](repo rule, seeAGENTS.md). - Do not create commits unless explicitly asked by the user.
- Do not force push.
- Do not amend commits unless explicitly asked.
- Do not bypass git hooks (for example, do not use
--no-verify). - Do not commit secrets or
.envfiles.
Inputs You Need
- PR number (or PR URL).
- Repo owner/name.
Practical Command Set
Snapshot state:
gh pr view <PR> --json url,title,headRefName,baseRefName,state,mergeable,updatedAt
gh pr view <PR> --json statusCheckRollup
gh pr diff <PR>
Collect review threads (paginate until hasNextPage=false):
gh api graphql -f query='query($owner:String!, $name:String!, $number:Int!, $after:String){ repository(owner:$owner,name:$name){ pullRequest(number:$number){ reviewThreads(first:100, after:$after){ totalCount pageInfo{hasNextPage endCursor} nodes{ id isResolved isOutdated comments(first:50){ nodes{ id author{login} body } } } } } } }' \
-F owner=<OWNER> -F name=<REPO> -F number=<PR> -F after=<CURSOR_OR_null>
Resolve a thread after replying:
gh api graphql -f query='mutation($threadId:ID!){ resolveReviewThread(input:{threadId:$threadId}){ thread{ id isResolved } } }' \
-F threadId=<THREAD_ID>
Minimal Loop Checklist
Repeat until stable:
- Snapshot:
gh pr view+gh pr diff. - Collect:
- Review threads via GraphQL (paginate until
hasNextPage=false). - PR conversation issue comments (Greptile sometimes posts follow-ups there).
- Review threads via GraphQL (paginate until
- Triage: decide
must-fix,should-fix,nit, ordefer(with a tracking issue). - Implement smallest safe fix, add/adjust tests.
- Run the smallest proving checks, then (if needed) the broader gate:
yarn lint:check
yarn test
yarn build:all
- If UI or visual tests changed:
yarn test:e2e
yarn test:visual
- Refresh review threads and issue comments again before declaring done.
- Reply + resolve all AI bot review threads (even if rejecting the suggestion).
- Wait for checks to go green, then wait at least 5 minutes after the latest push and do one last refresh to catch late bot updates.
Repo Notes (Chronote)
- Visual regression is prone to flake if snapshots are updated casually, only run
yarn test:visual:updateafter confirming the UI change is correct. - If you changed frontend UI, follow
AGENTS.mdexpectations for Storybook + screenshot capture. - When checking for unresolved AI threads, always paginate reviewThreads, do not assume
first: 100is enough.
Permissions Note
Inline replies and resolveReviewThread can fail due to token permissions.
Fallback behavior:
- Reply where possible.
- Add a PR-level
[AGENT]comment listing what you addressed, and ask a maintainer to resolve remaining threads.
When not to use it
- →When the user explicitly asks not to create commits
- →When the PR is not ready for review recycling
- →When the goal is not to address automated feedback
Limitations
- →Does not create commits unless explicitly asked
- →Does not force push or amend commits
- →Requires `gh` CLI and GraphQL API access
How it compares
This skill automates the iterative process of addressing automated PR review feedback, ensuring all threads are resolved and checks pass before human intervention, unlike manual, piecemeal review resolution.
Compared to similar skills
pr-review-recycle side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pr-review-recycle (this skill) | 0 | 1mo | Review | Intermediate |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| claude-automation-recommender | 47 | 2mo | Review | Beginner |
| codex-skill | 12 | 5mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Chronote-gg
View all by Chronote-gg →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
claude-automation-recommender
anthropics
Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.
codex-skill
feiskyer
Use when user asks to leverage codex, gpt-5, or gpt-5.1 to implement something (usually implement a plan or feature designed by Claude). Provides non-interactive automation mode for hands-off task execution without approval prompts.
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
subagent-driven-development
davila7
Use when executing implementation plans with independent tasks in the current session
validate-openapi-specs
epieczko
Validates and registers hook manifest files (YAML) in the Hook Registry for versioned hook management.