terry-mao/aicodingflow/review-pr
Claude Code and agent skill by terry-mao/aicodingflow
- community
Checking that the SKILL.md file is still in the repository.
Review a GitHub pull request from pinned `pr_description.txt`, `pr_diff.txt`, and optional `spec_context.md` snapshots, then write and validate `review.json`. Use when a CI job or bot needs offline PR review comments without posting to GitHub.
Install
npx vskill@latest install terry-mao/aicodingflow/review-prSKILL.md
review-pr
Review one code or mixed-content PR from stable local snapshot files and write the single output artifact review.json.
Required Contract
Read .agents/contracts/review.md first and follow it exactly. That contract is authoritative for snapshot trust, untrusted-input handling, PR_DIFF_V1 targeting, review.json structure, severity labels, suggestion blocks, validator requirements, and GitHub/API boundaries.
Do not run gh, post comments, regenerate snapshots, or modify files other than review.json.
Applicability
Use this skill for PRs where implementation correctness, security, error handling, performance, maintainability, tests, or docs-vs-code consistency need review.
For docs-only PRs outside specs/, review whether the docs match code, examples, defaults, behavior, and validation instructions. Do not invent implementation findings when the diff only changes documentation.
Local Guidance
After applying the shared contract, read .github/skills/review-pr-repo/SKILL.md when it exists and apply any non-conflicting repository-specific guidance.
When spec_context.md exists, read .github/skills/check-impl-against-spec/SKILL.md and treat material spec drift as a review concern.
Always read .github/skills/security-review-pr/SKILL.md and apply it as a non-conflicting supplemental security pass on code and mixed PRs. Fold any security findings into the same review.json; do not emit a separate output.
Review Focus
Prioritize concrete findings:
- correctness defects
- security risks
- exception and error handling gaps
- performance risks
- maintainability issues with clear impact
- documentation changes that disagree with code, examples, defaults, or behavior
- test changes that miss important assertions, over-mock behavior, or skip risky paths
Ignore pure style unless you can provide an exact GitHub suggestion. Put issues that cannot be attached to changed lines, such as missing tests or docs, in top-level body.
Evidence Rules
Ground every finding in changed lines, nearby unchanged context from pr_diff.txt, spec_context.md, review_discussion_context.json, or repository files you actually inspected.
Do not request broad refactors or speculative changes unless the diff introduces a concrete risk. If the impact is uncertain, lower the severity or omit the finding.
If a concern involves untouched code or missing work that has no precise changed line target, mention it in top-level body instead of attaching it to an unrelated line.
Workflow
- Read
.agents/contracts/review.md. - Read
pr_description.txt. - Read
spec_context.mdwhen it exists. - Read
review_discussion_context.jsonwhen it exists and apply it only for
duplicate suppression of prior bot review comments.
- Parse
pr_diff.txt, build allowed changed-line targets, and collect changed
file paths.
- Read
.github/skills/review-pr-repo/SKILL.mdif present and apply only
non-conflicting local guidance.
- If
spec_context.mdexists, read
.github/skills/check-impl-against-spec/SKILL.md and apply it as non-conflicting local guidance.
- Read
.github/skills/security-review-pr/SKILL.mdand apply it as a
non-conflicting supplemental security pass.
- Inspect relevant repository files only when needed to understand changed code
or verify a concrete risk.
- Write one combined
review.jsonthat includes base review findings and any
supplemental security findings.
- Run
python3 .github/skills/review-pr/scripts/validate_review_json.py pr_diff.txt review.json
when running locally. In GitHub Actions, the workflow runs validation after Codex exits.
- Fix
review.jsonuntil validation passes.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/review-pr/SKILL.md
Popularity
- Repository stars
- 134
- Repository forks
- 15
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/terry-mao/aicodingflow/review-pr)