Agent skill
gh-pr-review-fix
Fetch unresolved GitHub PR review threads, normalize them, fix them end-to-end, verify the results, and re-check until the PR is clean or blocked. Use when the user wants GitHub PR comments resolved with minimal verified fixes. Do not use for local review files, Codex reviews, or Zen reviews; review-remediation owns those.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/gh-pr-review-fix
SKILL.md
GitHub PR Review Fix
Use this skill as the sole GitHub PR review remediation workflow.
Autonomous Invocation
If the user explicitly invokes $gh-pr-review-fix with no extra detail:
- Read the repo
AGENTS.md. - Infer the target repo and PR with
scripts/prepare_pr_bundle.py. - Fetch a normalized unresolved-thread bundle.
- Prioritize valid findings by file and severity.
- Apply the minimal fixes that fully resolve the findings.
- Run repo-native verification.
- Create one scoped conventional commit and push if checks pass.
- Re-fetch unresolved threads and continue until zero remain or the workflow is blocked.
Stop and ask only when the repo/PR cannot be inferred, GitHub auth is unavailable, the worktree is too ambiguous to safely stage, or repo policy conflicts with automatic remediation.
Workflow
- Read the repo
AGENTS.md. - Prepare the target bundle:
python3 scripts/prepare_pr_bundle.py --out <json>- or pass
--repo,--pr, or--urlwhen the target is known
- Render the review summary:
/home/bjorn/.codex/skill-support/bin/review-pack render --input <json> --format md
- Work file-by-file:
- resolve correctness and safety findings first
- prefer reviewer suggestion blocks when they are valid
- keep changes minimal and scoped
- Verify with repo-native checks before considering a finding done.
- Use
$commitonly if you need help staging a mixed tree; otherwise keep this workflow self-contained. - Re-run
scripts/prepare_pr_bundle.pyafter each pass to confirm what remains unresolved. - If the task becomes passive or continuous monitoring rather than active remediation, switch to
$babysit-pr.
Use When
- The user asks to fix GitHub PR review comments end-to-end.
- The current task is centered on unresolved review threads in a PR.
Do Not Use When
- The input is a local review file, Codex review, Zen review, or manual notes.
- The task is passive PR monitoring.
- The task is only CI remediation with no review-thread context.
Direct Tool Policy
- Use GitHub CLI or GitHub connector/API as the source of truth for PR metadata and review threads.
- Use Context7 for current API docs when the fix touches changing library APIs.
- Use Exa or
web.runonly when a review fix needs current external confirmation. - Do not route through
context7-researchorweb-research-stack.
Outputs
- normalized PR review bundle
- short prioritized remediation summary
- verified fixes
- commit and push summary when a commit is created
- terminal status:
completed,blocked, orneeds-user
Resources
scripts/prepare_pr_bundle.py
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?