com um clique
code-review
Automated PR code review with multi-agent analysis
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Automated PR code review with multi-agent analysis
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Generate a project tree annotated with context.md notes to help future sessions, (auto-call at session start)
Generate a project tree annotated with context.md notes to help future sessions, (auto-call at session start)
Clarify requirements before implementing. Do not use automatically, only when invoked explicitly.
Automated PR code review with multi-agent analysis
Capture solved problems as searchable documentation with pattern detection. This skill auto-triggers when users confirm a fix worked ("that worked", "it's fixed", "working now") or manually via /compound command.
GitHub PR utilities for code review workflows
| name | code-review |
| description | Automated PR code review with multi-agent analysis |
| version | 1.0.0 |
| license | MIT |
| compatibility | opencode |
Automated code review for pull requests using multiple specialized agents with confidence-based scoring to filter false positives.
github-pr skill installed (bundled automatically)/code-review [--comment]Performs automated code review on a pull request using multiple specialized agents.
Options:
--comment - Post the review as inline comments on the PR (default: outputs to terminal only)Example:
# Review current branch's PR (output to terminal)
/code-review
# Post review as PR comments
/code-review --comment
Follow these steps precisely when executing /code-review:
Run the review check script:
bun .opencode/skill/github-pr/check-review-needed.js
If shouldReview is false, stop and report the reason. Do not proceed with review.
Note: Still review Claude/AI-generated PRs - only skip if Claude has already commented on the PR.
Run the guideline discovery script:
bun .opencode/skill/github-pr/list-guideline-files.js --json
This returns all AGENTS.md files relevant to the PR. Store these for use in compliance checking.
Launch a haiku agent to view the PR and return a summary of the changes:
gh pr view --json title,body,files,additions,deletions
gh pr diff
The summary should include:
Launch 4 agents in parallel to independently review the changes. Each agent should return a list of issues with:
Provide each agent with the PR title, description, and summary from Step 3.
Audit changes for AGENTS.md compliance. When evaluating compliance:
Scan for obvious bugs. Focus only on the diff itself without reading extra context:
Look for problems in the introduced code:
Only flag issues within the changed code.
CRITICAL: HIGH SIGNAL ONLY
We want:
We do NOT want:
If uncertain, do not flag. False positives erode trust.
For each issue found in Step 4, launch a validation sub-agent:
The validator receives:
The validator must confirm:
Remove any issues that:
If issues were found, post inline comments using:
bun .opencode/skill/github-pr/post-inline-comment.js <pr-number> \
--path <file> \
--line <line> \
[--start-line <start>] \
--body "<comment>"
Comment format:
For small fixes (up to 5 lines changed), include a suggestion:
Brief description of the issue
```suggestion
corrected code here
```
For larger fixes, describe the issue and provide a prompt:
Description of the issue and suggested fix at a high level.
Fix prompt:
`Fix [file:line]: [brief description]`
Important:
If NO issues were found and --comment flag is provided, post a summary:
gh pr comment <pr-number> --body "## Code review
No issues found. Checked for bugs and AGENTS.md compliance."
Each issue is scored 0-100:
| Score | Meaning |
|---|---|
| 0 | Not confident, false positive |
| 25 | Somewhat confident, might be real |
| 50 | Moderately confident, real but minor |
| 75 | Highly confident, real and important |
| 100 | Absolutely certain, definitely real |
Only issues scoring 80 or higher are reported.
These are NOT issues (do not flag):
When linking to code in comments, use this exact format:
https://github.com/owner/repo/blob/[full-sha]/path/file.ext#L[start]-L[end]
Requirements:
#L notation for lines