Reviews an open pull request against coding standards, security, and test coverage, then posts a structured review comment and either approves or requests changes. Use when the user says review this PR, check the PR, look at PR
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-workflow-skills:review-pr [PR-number][PR-number]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
PR: !`gh pr view --json number,title --jq '"#\(.number): \(.title)"' 2>/dev/null || echo "none"`
PR: !gh pr view --json number,title --jq '"#\(.number): \(.title)"' 2>/dev/null || echo "none"
Fetches a pull request diff, evaluates it against the project's coding standards, security posture, and test coverage, then posts a structured review and either approves or requests changes.
gh auth status 2>&1 || { echo "ERROR: gh is not authenticated. Run: gh auth login"; exit 1; }
Determine the PR to review. If the user named a number, use it. Otherwise default to the current branch's open PR:
gh pr view --json number,title 2>/dev/null || echo "No PR for current branch"
If no PR is found, stop and ask the user which PR number to review.
gh pr view <number> --json number,title,body,headRefName,baseRefName,author,labels,commits,files
gh pr diff <number>
Also read the project files to understand standards and conventions:
README.md — stated purpose and feature setCLAUDE.md — current decisions and context, if present~/.claude/CLAUDE.md — personal development standards already loaded in contextReview the diff against the following criteria. Note findings — positive and negative — for each:
~/.claude/CLAUDE.md).env.templateeval on external data)Write a structured review using this format:
## Summary
<1–2 sentences on overall quality and whether the PR achieves its stated goal.>
## Findings
### Must fix
- <issue> — <file:line if applicable> — <what to do>
### Suggestions
- <non-blocking improvement or style note>
### Looks good
- <specific thing done well — always include at least one>
## Verdict
<Approve / Request changes> — <one sentence reason>
If there are no must-fix items, the verdict is Approve. If there is at least one must-fix item, the verdict is Request changes.
For an approval:
gh pr review <number> --approve --body "$(cat <<'REVIEW'
<review body>
🤖 Generated with [claude-workflow-skills:review-pr](https://github.com/ali5ter/claude-workflow-skills) on behalf of [Alister](https://github.com/ali5ter)
REVIEW
)"
For a request-changes review:
gh pr review <number> --request-changes --body "$(cat <<'REVIEW'
<review body>
🤖 Generated with [claude-workflow-skills:review-pr](https://github.com/ali5ter/claude-workflow-skills) on behalf of [Alister](https://github.com/ali5ter)
REVIEW
)"
After posting, output the review verdict and a link to the PR for the user.
npx claudepluginhub ali5ter/claude-plugins --plugin claude-workflow-skillsCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.