desplega-ai/agent-swarm/review-pr
Claude Code and agent skill by desplega-ai/agent-swarm
- community
Checking that the SKILL.md file is still in the repository.
Review a pull request (GitHub) or merge request (GitLab) and provide detailed feedback
Install
npx vskill@latest install desplega-ai/agent-swarm/review-prSKILL.md
Review Pull Request / Merge Request
Review a PR (GitHub) or MR (GitLab) by analyzing changes and providing structured feedback.
Provider detection: Check the remote URL or provided URL:
- If GitHub → use
gh prcommands - If GitLab → use
glab mrcommands
Arguments
pr-number-or-url: Either a PR number (e.g.,123) or a full URL
Workflow
1. Setup
- Ensure the repo is cloned to
/workspace/personal/<repo-name>(clone withgh repo cloneif needed) - Fetch, checkout the PR branch, get PR details and diff
2. Check CI Status (MANDATORY)
Check CI with gh pr checks <pr-number> (or glab mr view --json pipelines).
If CI checks are failing, this is an automatic REQUEST_CHANGES. Do not approve a PR with failing CI. Include the failing check names and error details in your review.
2b. Review Repository Guidelines
Check the "Review Guidance" section of your Repository Guidelines for repo-specific review instructions (e.g., "check README.md", "enforce camelCase in specific directories"). Apply these instructions during your review below.
Also note the repo's Merge Policy — check allowMerge and mergeChecks before approving or merging. If allowMerge is false, do NOT merge — only review and approve/request changes.
3. Verify Tests Are Included (MANDATORY)
Check that the PR includes test changes. If the PR modifies code but does not add or update tests, this is an automatic REQUEST_CHANGES. Every code change must include corresponding tests.
Exceptions:
- Pure documentation changes (README, comments only)
- Configuration-only changes (CI config, linter config, env files)
- Dependency version bumps with no code changes
When requesting changes for missing tests, be specific about what tests are needed.
4. Analyze the Changes
Review the diff for:
- Security issues: SQL injection, XSS, command injection, secrets in code
- Logic errors: Off-by-one errors, null handling, edge cases
- Performance concerns: N+1 queries, unnecessary loops, memory leaks
- Code quality: Naming, complexity, duplication, missing error handling
- Test coverage: Are included tests sufficient? Do they cover edge cases?
Also consider running the test suite locally and checking for TypeScript errors.
5. Post the Review
Post your review with a verdict: APPROVE, REQUEST_CHANGES, or COMMENT.
6. Post Inline Comments on Specific Lines
For detailed feedback on specific lines, use the GitHub API:
Parameters:
commit_id: PR head commit SHApath: Relative file pathline: Line number in the diffside:"RIGHT"for new code (additions),"LEFT"for removed codebody: Comment text (supports markdown)
7. Re-reviewing After Changes
When the author pushes updates:
- Fetch latest and re-checkout the PR
- Check if previous concerns were addressed
- Reply to existing comment threads:
``bash gh api repos/<owner>/<repo>/pulls/<pr-number>/comments/<comment-id>/replies \ --method POST \ -f body="Thanks, this looks good now!" ``
- Update your review status (approve or request further changes)
Tips
- Focus on substantive issues over style nitpicks
- Acknowledge good work when you see it
- Having the repo cloned allows you to run tests and verify changes locally
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/pi-skills/review-pr/SKILL.md
Popularity
- Repository stars
- 933
- Repository forks
- 131
- 7-day trend score
- 0
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/desplega-ai/agent-swarm/review-pr)