一键导入
code-review-specialists
Decompose risky or broad diffs into read-only specialist review passes and merge normalized findings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Decompose risky or broad diffs into read-only specialist review passes and merge normalized findings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Resume and execute implementation work from a plan-tracking GitHub issue that carries issue-hosted source, plan, and execution-state snapshots, preserving progress on the issue when local docs/plans files may be cleaned up.
Use when the user wants to open or continue a GitHub issue as the durable timeline for a discovered problem, investigation, blocker, implementation handoff, or unresolved follow-up loop.
Finalize and close plan-tracking GitHub issues after issue-backed execution is complete and the user or project policy has approved closure.
Open or preview a provider-aware GitHub or GitLab tracking issue for a docs/plans plan bundle, bootstrapping the source doc and plan first when the user has a converged feature discussion but no plan file yet.
Deliver a dispatch-ready plan by sprint: split plan tasks into PR lanes, dispatch subagent work, enforce acceptance gates, and advance through final integration without main-agent implementation.
Close out an existing plan-issue runtime where main-agent owns orchestration and review only, subagents own implementation task lanes, and close gates require approval plus merged PRs.
| name | code-review-specialists |
| description | Decompose risky or broad diffs into read-only specialist review passes and merge normalized findings. |
Use this workflow to review broad or risky diffs through focused, read-only specialist lenses before a reviewer makes a decision.
Prereqs:
git available on PATH.parallel-first or
orchestrator-first before spawning reviewer subagents.dispatch-pr-review for PR decision actions and review-evidence only when
findings need a retained evidence record.Inputs:
--testing, --security, --performance, --data-migration,
--api-contract, --maintainability, --red-team, or
--all-specialists.Outputs:
references/SPECIALIST_REVIEW_REPORT_TEMPLATE.md.review-evidence records when retained workflow evidence is needed.Exit codes:
0: helper command succeeded.1: helper command failed due to missing repository state, malformed input,
invalid findings, or other runtime failure.2: helper usage error from argparse.Failure modes:
dispatch-pr-review,
review-evidence, browser-qa, CI repair automation, or implementation work.$AGENT_HOME/skills/workflows/code-review/code-review-specialists/scripts/review_specialists.pydispatch-pr-review decision path.Do not use it for tiny diffs, ordinary implementation work, pure formatting or
doc-only changes unless requested, CI repair loops owned by gh-fix-ci, or
browser-facing checks owned by browser-qa.
Establish the review target and base ref.
Run deterministic scope detection:
$AGENT_HOME/skills/workflows/code-review/code-review-specialists/scripts/review_specialists.py scope --base <ref>
If diff_lines < 50, skip specialist review unless the user forced a
specialist or all specialists.
Select specialists:
testing and maintainability for larger diffs.security for auth changes or backend changes over 100 diff
lines.performance for backend or frontend runtime changes.data-migration for migration, schema, or data transform changes.api-contract for route, controller, API schema, OpenAPI,
GraphQL, or protocol changes.Run selected specialist passes as separate review lenses. In default single-agent mode, the main agent performs the lenses sequentially. In delegated mode, dispatch read-only reviewer subagents only when explicitly allowed.
Write each finding as JSONL following
references/SPECIALIST_REVIEW_CONTRACT.md. Cite concrete file, line, diff,
command, or evidence anchors when available. Mark unverifiable claims as
residual risk, not findings.
Merge findings:
$AGENT_HOME/skills/workflows/code-review/code-review-specialists/scripts/review_specialists.py merge-findings findings.jsonl --summary-out specialist-review.md
Run red-team only after selected specialists when diff_lines > 200, any
selected specialist produced a critical finding, or the reviewer forced it.
Merge red-team findings into the final report.
Use the report template for the final synthesis. The recommended next step
may route to dispatch-pr-review, a normal implementation workflow, or a
retained review-evidence record, but this workflow does not execute that
decision.
references/SPECIALIST_REVIEW_CONTRACT.mdreferences/SPECIALIST_REVIEW_REPORT_TEMPLATE.mdreferences/specialists/skills/workflows/issue/dispatch-pr-review/SKILL.mdskills/tools/workflow-evidence/review-evidence/SKILL.md