con un clic
code-review
Use when: reviewing GitHub PR via gh CLI, scale-adaptive strategy
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Use when: reviewing GitHub PR via gh CLI, scale-adaptive strategy
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Use when: full dev cycle branch->plan->implement->review->PR->merge
Use when: executing tasks via csa run/review/debate, session mgmt
Use when: iterative review-fix loop until csa review --diff is clean
Use when: running CSA-driven code review, independent model selection
Use when: three-layer manager-employee orchestration for delegation
Use when: legacy alias, redirects to dev2merge pipeline
| name | code-review |
| description | Use when: reviewing GitHub PR via gh CLI, scale-adaptive strategy |
| allowed-tools | Bash, Read, Grep, Glob |
| triggers | ["code-review","/code-review","review PR","PR review"] |
Check your initial prompt. If it contains the literal string "Use the code-review skill", then:
YOU ARE THE EXECUTOR. Follow these rules:
../../PATTERN.md relative to this SKILL.md, and follow it step by step.csa run, csa review, csa debate, or ANY csa command. You must perform the work DIRECTLY. Running any csa command causes infinite recursion.Only if you are the main agent (Claude Code / human user):
Perform AI-powered code review on GitHub PRs with automatic scale adaptation. Small PRs (< 200 lines) are reviewed directly; large PRs (> 800 lines) are delegated to CSA. Includes authorship detection to use adversarial debate for self-authored code, and mandatory AGENTS.md compliance checking for all changed files.
csa run --sa-mode true --skill code-review "Review PR #<number>"
When operating under SA mode (e.g., dispatched by /sa or any autonomous workflow),
ALL csa invocations MUST include --sa-mode true. This includes csa run,
csa review, csa debate, and any other execution commands. Omitting --sa-mode
at root depth causes a hard error; passing false when the caller is in SA mode
breaks prompt-guard propagation.
gh pr view and gh pr diff --stat to get metadata and diff statistics.csa review.csa debate instead of direct review.csa review --branch <base>. Do NOT pre-read diff.gh pr diff, analyze each file for quality, security, performance, and language-specific issues.gh pr comment only when user explicitly requests.| Command | Effect |
|---|---|
/code-review 42 | Review PR #42 with auto scale detection |
/code-review 42 post=true | Review and post comment to the PR |
/code-review scope=base:main | Review current branch changes vs main |
csa-review (for large PRs), debate (for self-authored code arbitration)pr-bot (as part of PR review loop)gh pr comment.