PR Review Skill (Carrier)
Purpose
Guide agents to review pull requests like a human collaborator — with inline code comments on specific lines, not just summary approvals.
Review Process
- •Fetch the PR diff via
gh pr diff <number> --repo Keith-CY/carrier - •Read the full diff before commenting
- •Submit a review using the GitHub Review API with inline
commentsarray (path, line, side, body) - •Apply decision rules strictly:
- •If there is any BS (Blocking Suggestion), submit Request Changes.
- •If there are only NBS (Non-Blocking Suggestions), leave
NBS:comments per format and keep review non-blocking. - •If there is no BS, submit Approve.
What to Check
- •Security: command injection, credential leaks, unsafe file operations
- •Error handling: missing error checks, silent failures
- •Naming: consistency with existing conventions in the codebase
- •Test coverage: new logic should have tests
- •Consistency: alignment with patterns in existing PRs (e.g.,
recordAuditfor audit events) - •Dependencies: accidental inclusion of
node_modulesor build artifacts
Comment Style
- •BS (Blocking Suggestion):
- •Use clear blocking language and expected fix.
- •If any BS exists in the review, overall decision must be Request Changes.
- •NBS (Non-Blocking Suggestion):
- •Prefix each non-blocking suggestion with
NBS:perskills/review-followup/SKILL.md. - •One suggestion per
NBS:line.
- •Prefix each non-blocking suggestion with
- •If no BS exists, final decision should be Approve.
- •Reference related PRs/issues when relevant (e.g., "This conflicts with the pattern in PR #14").
Build Verification
Before approving, confirm all CI checks have passed:
- •Check CI status:
gh pr checks <number> --repo Keith-CY/carrier - •Daemon (Go):
cd daemon && go test ./... - •Gateway (TypeScript):
cd gateway && bun run check
Automation Trigger
This skill is intended to be executed by repository automation (for example cron-driven sweeps). Keep cadence details in the automation configuration/prompt as the source of truth.