From agent-flow
Check the current branch's PR for external review feedback, fix errors and warnings, run a final external review, and push.
npx claudepluginhub timgranlundmarsden/claude-agent-flow**Skills:** agent-flow-init-check
$ARGUMENTS
If `$ARGUMENTS` contains `--help` as a standalone word, output the following verbatim and STOP:
Usage: /check-pr [--help]
Check the current branch's PR for external review bot feedback.
Extract errors and warnings, fix them, run a final /external-review, and push.
Prerequisites:
- Current branch has a PR open on GitHub
- External review bot has posted a review (marker: <!-- pr-review-bot -->)
What it does:
1. Finds the PR for the current branch
2. Checks CI status — if tests are failing, reads log...Share bugs, ideas, or general feedback.
Skills: agent-flow-init-check
$ARGUMENTS
If $ARGUMENTS contains --help as a standalone word, output the following verbatim and STOP:
Usage: /check-pr [--help]
Check the current branch's PR for external review bot feedback.
Extract errors and warnings, fix them, run a final /external-review, and push.
Prerequisites:
- Current branch has a PR open on GitHub
- External review bot has posted a review (marker: <!-- pr-review-bot -->)
What it does:
1. Finds the PR for the current branch
2. Checks CI status — if tests are failing, reads logs, diagnoses, and fixes
3. Reads the external review bot's review (errors + warnings)
4. Evaluates each concern — fixes real issues, suppresses false positives
5. Runs /external-review to verify fixes
6. Commits and pushes
If you output the help text above, stop here — do not read or execute anything below this line.
All steps are sequential. Do NOT skip steps.
Use GitHub MCP tools to find an open PR for the current branch:
ToolSearch query: "select:mcp__github__list_pull_requests,mcp__github__pull_request_read"
git rev-parse --abbrev-ref HEADgit remote get-url origin | sed 's/.*github.com[:/]\(.*\)\.git/\1/' | sed 's/.*github.com[:/]\(.*\)/\1/'mcp__github__list_pull_requests with head: "<owner>:<branch>" and state: "open"<branch>" and STOP.Check if all CI checks are passing on the PR:
GH_TOKEN="" gh pr checks <PR_NUMBER>
GH_TOKEN="" gh run view <RUN_ID> --log-failed
b. Analyse the failure output to identify:
fix: resolve CI test failure — <brief description>
f. Push and wait for CI to re-run:
git push -u origin $(git rev-parse --abbrev-ref HEAD)
g. Re-check CI status. If still failing, repeat from (a). Max 3 fix iterations — if still failing after 3 attempts, report the remaining failures to the user and continue to Step 3.Use GitHub MCP tools to read the PR review:
ToolSearch query: "select:mcp__github__pull_request_read"
mcp__github__pull_request_read with the PR number to get reviews and comments.github-actions[bot] whose body contains <!-- pr-review-bot -->.gh CLI instead:
GH_TOKEN="" gh api repos/<owner>/<repo>/pulls/<PR>/reviews --jq '[.[] | select(.body | contains("pr-review-bot"))] | sort_by(.submitted_at) | last'
If still no review found, report "No external review bot comment found on PR #N" and proceed to Step 5 (skip review evaluation).**error:** or severity "error"**warning:** or severity "warning"**info:** — note but do not actionFor each error and warning extracted in Step 3:
Read the referenced file and line to understand the context.
Evaluate whether the concern is:
For actionable concerns:
For false positives or pre-existing concerns:
.claude-agent-flow/external-review-config.ymlexternal-review-config.repo.yml- file: "path/to/file.ext"
keyword: "word from the concern message"
reason: "Brief explanation of why this is suppressed"
Report a summary table to the user:
| # | File | Concern | Action |
|---|------|---------|--------|
| 1 | path:line | brief message | Fixed / Suppressed (reason) / Skipped (info) |
Run the external review to verify fixes. Invoke the /external-review skill:
Skill: "external-review"
If the external review returns FAIL with new unsuppressed errors:
If the external review returns PASS or WARN: proceed to Step 6.
git status --shortgit add <file1> <file2> ...)fix: address external review feedback on PR #N
- <brief summary of fixes>
- <brief summary of suppressions>
git fetch origin
git rebase origin/$(git rev-parse --abbrev-ref HEAD)
git push -u origin $(git rev-parse --abbrev-ref HEAD)
Report to the user: