一键导入
speckit-review-run
Comprehensive code review using specialized agents — orchestrates code, comments, tests, errors, types, and simplify agents sequentially.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive code review using specialized agents — orchestrates code, comments, tests, errors, types, and simplify agents sequentially.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | speckit-review-run |
| description | Comprehensive code review using specialized agents — orchestrates code, comments, tests, errors, types, and simplify agents sequentially. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"review:commands/run.md"} |
Run a comprehensive pull request review using multiple specialized agents, each focusing on a different aspect of code quality.
Review Aspects (optional): "$ARGUMENTS"
Load Configuration
.specify/extensions/review/review-config.yml (if it exists).defaults.agents section in the extension's extension.yml.agents map — each key (code, comments, tests, errors, types, simplify) is a boolean toggle.false MUST be excluded from this run. Do not launch them.Determine Review Scope
Available Review Aspects:
Identify Changed Files
.specify/scripts/bash/detect-changed-files.sh with --json to detect changed files. Do not attempt to detect changes by running git commands directly, reading git state manually, or using any other method — always delegate to the script.
main/master) from the merge-base, plus any staged and unstaged changes.{"branch", "default_branch", "mode", "changed_files": [...]}Determine Applicable Reviews
Based on changes and config toggles (skip any agent where agents.<name> is false):
/speckit.review.code (general quality)/speckit.review.tests/speckit.review.comments/speckit.review.errors/speckit.review.types/speckit.review.simplify (polish and refine)Launch Review Agents
Sequential approach (one at a time):
Parallel approach (user can request):
Aggregate Results
After agents complete, summarize:
Provide Action Plan
Organize findings:
# PR Review Summary
## Critical Issues (X found)
- [agent-name]: Issue description [file:line]
## Important Issues (X found)
- [agent-name]: Issue description [file:line]
## Suggestions (X found)
- [agent-name]: Suggestion [file:line]
## Strengths
- What's well-done in this PR
## Recommended Action
1. Fix critical issues first
2. Address important issues
3. Consider suggestions
4. Re-run review after fixes
Full review (default):
/speckit.review.run
Specific aspects:
/speckit.review.run tests errors
# Reviews only test coverage and error handling
/speckit.review.run comments
# Reviews only code comments
/speckit.review.run simplify
# Simplifies code after passing review
Parallel review:
/speckit.review.run all parallel
# Launches all agents in parallel
comment:
tests:
errors:
types:
code:
.specify/memory/constitution.md, CLAUDE.md, .github/copilot-instructions.md, or equivalent) compliancesimplify:
Audits documentation completeness for a feature branch, subject, or set of existing docs — maps changes across Infrahub's documentation layers, reports gaps, and optionally applies the fixes. TRIGGER when: the user wants to audit or check documentation coverage, find doc gaps after a feature branch, or verify docs are still current for a subject or specific files. DO NOT TRIGGER when: authoring new documentation from scratch → use the add-docs flow; only linting/formatting Markdown → run `uv run invoke docs.lint`.
Perform a dual-lens critical review of the specification and plan from both product strategy and engineering risk perspectives before implementation.
General code quality review — project guideline compliance, bug detection, code quality analysis.
Code comment accuracy verification, documentation completeness assessment, comment rot detection.
Error handling review — silent failure detection, catch block analysis, error logging.
Code simplification suggestions — clarity, unnecessary complexity, redundant abstractions. Advisory only.