plugin/pi-skills/review-pr/SKILL.md
Review a pull request (GitHub) or merge request (GitLab) and provide detailed feedback
npx skillsauth add desplega-ai/agent-swarm review-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review a PR (GitHub) or MR (GitLab) by analyzing changes and providing structured feedback.
Provider detection: Check the remote URL or provided URL:
gh pr commandsglab mr commandspr-number-or-url: Either a PR number (e.g., 123) or a full URL/workspace/personal/<repo-name> (clone with gh repo clone if needed)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.
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.
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:
When requesting changes for missing tests, be specific about what tests are needed.
Review the diff for:
Also consider running the test suite locally and checking for TypeScript errors.
Post your review with a verdict: APPROVE, REQUEST_CHANGES, or COMMENT.
gh pr review <pr-number> --approve --body "Review message"
gh pr review <pr-number> --request-changes --body "Review message"
gh pr review <pr-number> --comment --body "Review message"
For detailed feedback on specific lines, use the GitHub API:
# Get the commit SHA
COMMIT_SHA=$(gh pr view <pr-number> --json headRefOid --jq '.headRefOid')
# Post an inline comment
gh api repos/<owner>/<repo>/pulls/<pr-number>/comments \
--method POST \
-f commit_id="$COMMIT_SHA" \
-f path="src/path/to/file.ts" \
-f line=42 \
-f side="RIGHT" \
-f body="Your inline comment here."
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)When the author pushes updates:
gh api repos/<owner>/<repo>/pulls/<pr-number>/comments/<comment-id>/replies \
--method POST \
-f body="Thanks, this looks good now!"
tools
# Artifacts — Serving Interactive Web Content ## Quick Start ### Static content ```bash # Create your content in a persisted directory mkdir -p /workspace/personal/artifacts/my-report echo '<h1>My Report</h1>' > /workspace/personal/artifacts/my-report/index.html # Serve it (auto-assigns a free port, creates tunnel) artifact serve /workspace/personal/artifacts/my-report --name "my-report" # -> https://{agentId}-my-report.lt.desplega.ai ``` ### Programmatic (custom Hono server) ```typescript i
testing
Work on a specific task assigned to you in the agent swarm
business
How to manage the user registry — creating users for new Slack/GitHub/GitLab identities, managing aliases, resolving users across platforms. Use when a new human interacts with the swarm or when user identity needs updating.
data-ai
Handle the agent personal todos.md file