code-review
БесплатноБез исполняемых скриптовНе проверенMulti-agent code review with learning feedback loop — reviews PRs using parallel specialized agents (style, logic, security) with confidence scoring and…
от sliamh11★ 50 звёзд на GitHubОб этом скилле
Multi-Agent Code Review
Run a multi-agent code review on the current branch's PR. Three specialized agents (style, logic, security) review in parallel, findings are confidence-scored, and dismissed findings feed back into the evolution system as negative examples for future reviews.
Prerequisites
- Git — must be in a git repository
- GitHub CLI —
ghauthenticated - Current branch must have an open PR
Instructions
When the user asks for a code review or triggers this skill:
Step 1: Validate environment
git rev-parse --is-inside-work-tree # Must be in a repo
gh auth status # Must be authenticated
Get the current branch and find the open PR:
BRANCH=$(git branch --show-current)
gh pr list --head "$BRANCH" --state open --json number,title,baseRefName
If no PR exists, ask the user if they want to create one first. Do NOT proceed without a PR.
Step 2: Check eligibility
Skip review if:
- PR is a draft (
gh pr view <number> --json isDraft) - PR has zero code changes (only docs/config)
- This exact commit SHA was already reviewed (check
resources/review-history.logif it exists)
Step 3: Gather context
Collect all inputs the review agents will need:
# Get the unified diff
gh pr diff <number>
# Get file list and stats
gh pr view <number> --json files,additions,deletions
# Get PR description for intent context
gh pr view <number> --json body
Also load:
- CLAUDE.md files from the repo root AND from each modified directory (use Glob to find them)
- Review criteria from
resources/review-criteria.md(repo-specific rules) - Dismissed findings from
resources/dismissed-log.md(negative examples — "do NOT flag X when Y")
Step 4: Parallel review — launch 3 agents
Launch three review agents in parallel using the Task tool. Each agent receives:
- The PR diff
- Relevant CLAUDE.md content
- Review criteria for their domain
- Negative examples from dismissed-log.md for their category
- Instructions to output findings in a structured format
IMPORTANT: Include the phrase "in parallel" in your orchestration to ensure Teams tools are available.
Agent prompts
Style Agent (Haiku):
You are a code style reviewer. Analyze this PR diff for:
- Naming inconsistencies (variables, functions, files)
- Dead code or unused imports
- Inconsistency with the codebase conventions described in CLAUDE.md
- Code duplication within the diff
- Missing or misleading comments
DO NOT flag:
- Anything a linter would catch (formatting, semicolons, trailing spaces)
- Style preferences not documented in CLAUDE.md
{dismissed_style_examples}
For each finding, output exactly:
FILE: <path>
LINE: <number>
SEVERITY: CRITICAL | HIGH | MEDIUM | LOW
TITLE: <short title>
DETAIL: <1-2 sentences explaining the issue>
SUGGESTION: <concrete fix>
---
Logic Agent (Sonnet):
You are a code logic reviewer. Analyze this PR diff AND the full file context for:
- Off-by-one errors
- Null/undefined handling gaps
- Race conditions or async issues
- Missing error propagation
- Incorrect boolean logic
- Edge cases not handled
- Type mismatches or unsafe casts
Read the FULL file for each changed file to understand context beyond the diff.
DO NOT flag:
- Hypothetical issues that require specific runtime conditions unlikely in this codebase
- Missing validation for internal-only code paths
{dismissed_logic_examples}
For each finding, output exactly:
FILE: <path>
LINE: <number>
SEVERITY: CRITICAL | HIGH | MEDIUM | LOW
TITLE: <short title>
DETAIL: <1-2 sentences explaining the issue and a concrete failure scenario>
SUGGESTION: <concrete fix>
---
Security Agent (Sonnet):
You are a security reviewer. Analyze this PR diff for OWASP Top 10 vulnerabilities:
- SQL injection / NoSQL injection
- XSS (cross-site scripting)
- Command injection
- Path traversal
- Hardcoded secrets, API keys, tokens
- Insecure deserialization
- Missing authentication/authorization checks
- Sensitive data exposure
- SSRF (server-side request forgery)
Focus on actual exploitable patterns, not theoretical risks.
DO NOT flag:
- Internal code paths with no user input
- Environment variables used correctly
- Test files or fixtures
{dismissed_security_examples}
For each finding, output exactly:
FILE: <path>
LINE: <number>
SEVERITY: CRITICAL | HIGH | MEDIUM | LOW
TITLE: <short title>
DETAIL: <1-2 sentences explaining the vulnerability and attack vector>
SUGGESTION: <concrete fix>
---
Step 5: Confidence scoring
For each finding from Step 4, launch a Haiku agent to score confidence (0-100):
Given this code review finding and the actual code context, rate your confidence (0-100) that this is a genuine issue worth fixing, not a false positive.
Finding: {finding}
Code context: {surrounding code from the file}
Consider:
- Is this actually reachable in practice?
- Does the surrounding code already handle this?
- Is this a real bug or jus
Установить code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл code-review?
Multi-agent code review with learning feedback loop — reviews PRs using parallel specialized agents (style, logic, security) with confidence scoring and false-positive reduction
Как установить скилл code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic