skills/bind/code-review/SKILL.md
Automated PR code review with multi-agent analysis
npx skillsauth add aiskillstore/marketplace code-reviewInstall 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.
Provide a code review for the given pull request.
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:
/code-review # Output to terminal
/code-review --comment # Post as PR comments
Follow these steps precisely:
Check if any of the following are true:
Run the check script:
bun .opencode/skill/github-pr/check-review-needed.js
If shouldReview is false, stop and do not proceed.
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 file paths (not contents) for relevant AGENTS.md files:
For each guideline file found, fetch its contents to use in compliance checking.
Launch a haiku agent to view the PR and return a summary including:
Use the Task tool with a haiku agent.
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 in parallel. When evaluating compliance:
Scan for obvious bugs. Focus only on the diff itself without reading extra context:
Look for problems that exist in the introduced code:
Only flag issues within the changed code.
CRITICAL: HIGH SIGNAL ONLY
We want:
We do NOT want:
If you are not certain an issue is real, do not flag it. False positives erode trust and waste reviewer time.
For each issue found in Step 4, launch parallel subagents to validate the issue.
The validator receives:
The validator's job is to confirm:
Agent types:
Filter out any issues that were not validated in Step 5. This gives our list of high signal issues for review.
If no issues were found: Output "No issues found" to the terminal. Do not post any comment to the PR.
If issues were found and --comment flag is provided:
Present a summary to the user for confirmation:
## Code Review Summary
Found {N} issue(s):
1. **{file}:{line}** - {brief description}
2. **{file}:{line}** - {brief description}
...
Post these as inline comments to PR #{number}? (y/n)
If user confirms (y): Post inline comments using:
bun .opencode/skill/github-pr/post-inline-comment.js <pr-number> \
--path <file> \
--line <line> \
[--start-line <start>] \
--body "<comment>"
If user declines (n): Do not post comments. The review output remains in the terminal.
If --comment flag is NOT provided: Output the review to terminal only, do not prompt for confirmation.
Comment format:
For small fixes (up to 5 lines changed), include a suggestion:
Brief description of the issue (no "Bug:" prefix)
```suggestion
corrected code here
**Suggestions must be COMPLETE.** If a fix requires additional changes elsewhere (e.g., renaming a variable requires updating all usages), do NOT use a suggestion block. The author should be able to click "Commit suggestion" and have a working fix - no followup work required.
For larger fixes (6+ lines, structural changes, or changes spanning multiple locations), do NOT use suggestion blocks. Instead:
1. Describe what the issue is
2. Explain the suggested fix at a high level
3. Include a copyable prompt for Claude Code that the user can use to fix the issue, formatted as:
Fix [file:line]: [brief description of issue and suggested fix]
**IMPORTANT:** Only post ONE comment per unique issue. Do not post duplicate comments.
## False Positives (Do NOT Flag)
Use this list when evaluating issues in Steps 4 and 5:
- Pre-existing issues
- Something that appears to be a bug but is actually correct
- Pedantic nitpicks that a senior engineer would not flag
- Issues that a linter will catch (do not run the linter to verify)
- General code quality concerns (e.g., lack of test coverage, general security issues) unless explicitly required in AGENTS.md
- Issues mentioned in AGENTS.md but explicitly silenced in the code (e.g., via a lint ignore comment)
## Code Link Format
When linking to code in inline comments, follow this exact format precisely, otherwise the Markdown preview won't render correctly:
https://github.com/owner/repo/blob/[full-sha]/path/file.ext#L[start]-L[end]
Requirements:
- Must use full git SHA (not abbreviated)
- Repo name must match the repo you're code reviewing
- `#L` notation for line range
- Line range format: `L[start]-L[end]`
- Provide at least 1 line of context before and after
## Confidence Scoring
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.
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.