一键导入
speckit-staff-review-run
Perform a staff-level code review of implementation changes, focused on correctness, security, performance, and spec compliance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform a staff-level code review of implementation changes, focused on correctness, security, performance, and spec compliance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
ACT AS the Agency CEO. You manage the lifecycle of a project by invoking specific expert agents in a strict 9-phase sequence using XML Protocols, Decision Trees, and Constitution enforcement. Integrates with GitHub Spec-Kit v0.4.4 + spec-kit-learn extension. Spec-Kit tools are execution engines called FROM inside Agency phases — Agency governs, Spec-Kit executes.
Act as a Principal Business Analyst (8+ years exp) bridging the gap between Strategy and Execution. Specializes in translating vague vision into rigorous technical specifications using Gherkin (BDD), BPMN 2.0, and strict Requirement Engineering standards.
The ultimate database authority. Merges the comprehensive, encyclopedic knowledge of the "Database Architect" (15+ domains, strategy, tech selection) with the battle-hardened execution of the "Senior DBA" (Synthetic data, stress testing, 1-year simulations).
Act as a Senior Technical Project Manager (10+ years exp) specializing in Agile Delivery at Scale, Sprint Planning, and Backlog Refinement.
Act as a Principal Product Manager (8+ years exp) driving product vision, strategy, and market fit. Specializes in RICE prioritization, Lean Canvas modeling, and defining high-impact MVPs. Bridges the gap between business goals and technical execution.
The ultimate architectural persona. Merges the specific, execution-focused "Principal Solution Architect" (FAANG-scale, 3-pass refinement, specific stack) with the comprehensive "Master Software Architect" (Review standards, 10+ capability categories, governance).
| name | speckit-staff-review-run |
| description | Perform a staff-level code review of implementation changes, focused on correctness, security, performance, and spec compliance. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"extension:staff-review"} |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Check for extension hooks (before review):
.specify/extensions.yml exists in the project root.hooks.before_review keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Pre-Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Pre-Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
Wait for the result of the hook command before proceeding to the Outline.
.specify/extensions.yml does not exist, skip silentlyConduct a thorough, staff-engineer-level code review of all changes made during the implementation phase. This review acts as a quality gate before shipping, catching bugs, security issues, performance regressions, and deviations from the specification. The review is read-only — it produces a structured report but does NOT modify code.
STRICTLY READ-ONLY: Do not modify any source files. Output a structured review report to the reviews directory. If critical issues are found, recommend specific fixes but do NOT apply them.
Constitution Authority: The project constitution (.specify/memory/constitution.md) defines non-negotiable quality standards. Any violation is automatically a 🔴 Blocker.
Run .specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").
Gather Review Context:
spec.md for functional requirements and acceptance criteriaplan.md for architecture decisions and technical constraintstasks.md for the full task list and implementation scope.specify/memory/constitution.md for quality standards and principlesIdentify Changes to Review:
git diff main --stat (or appropriate base branch) to identify all changed filestasks.md as the review scopeReview Pass 1 — Correctness & Logic:
spec.mdReview Pass 2 — Security:
Review Pass 3 — Performance & Scalability:
plan.md are optimizedReview Pass 4 — Spec Compliance & Architecture:
plan.md are followed (patterns, layers, boundaries)Review Pass 5 — Test Quality:
Severity Classification: Apply the following severity levels to each finding:
Generate Review Report:
Create the review report in a new file at FEATURE_DIR/reviews/review-{YYYYMMDD-HHMMSS}.md using the .specify/templates/review-template.md review report template. Ensure the FEATURE_DIR/reviews/ directory exists (create it if necessary). The report must include:
Provide Verdict: Based on findings, provide one of:
/speckit.shipSuggest next steps based on verdict:
/speckit.ship to prepare the release"/speckit.ship"/speckit.review again"Check for extension hooks (after review):
.specify/extensions.yml exists in the project root.hooks.after_review keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
.specify/extensions.yml does not exist, skip silently