一键导入
speckit-analyze
Verify plan completeness via architectural & requirement traceability analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verify plan completeness via architectural & requirement traceability analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when debugging a failing test, broken build, runtime error, or unexpected system behavior. Drives hypothesis-based investigation, root-cause fixes, verification, and reusable learning capture.
Use when a claim, plan, spec, doc, or design must be attacked against source evidence before implementation or approval. Uses write tools, shell execution, and may spawn subagents. Invoke with enable_write_tools=true and enable_subagent_tools=true.
Use when fixing broken behavior and the priority is reproduce, root cause, regression proof, and the smallest safe repair. Uses write tools, shell execution, and may spawn subagents. Invoke with enable_write_tools=true and enable_subagent_tools=true.
Use when reviewing code changes with explicit stage, target, and focus so own-code checks and others’ PR reviews stay distinct but share one contract. Uses write tools, shell execution, and may spawn subagents. Invoke with enable_write_tools=true and enable_subagent_tools=true.
Use when the deliverable is docs or reference material and every claim must stay tied to observed behavior or cited source evidence. Uses write tools, shell execution, and may spawn subagents. Invoke with enable_write_tools=true and enable_subagent_tools=true.
Use when adding or changing product behavior that must ship with explicit purpose, scenarios, and verification. Uses write tools, shell execution, and may spawn subagents. Invoke with enable_write_tools=true and enable_subagent_tools=true.
| name | speckit-analyze |
| description | Verify plan completeness via architectural & requirement traceability analysis. |
| argument-hint | [plan-id-or-path] |
| trigger | /speckit.analyze |
| phase | analyze |
| techniques | ["llm-as-judge","self-consistency","reflexion"] |
| output | specs/{NNN-slug}/analysis.md |
| output_schema | {"sections":["Verification Checklist (FRs, SCs, ACs, dependencies)","FR-to-SC Mapping (every FR traces to ≥1 Success Criteria)","Dependency Closure (no orphaned tasks; no broken edges)",{"Anti-Overengineering Audit (Article VI deep-dive":"YAGNI, DRY-after-3, KISS, function size, file size, responsibility, abstractions, trusted callers)"},{"Constitutional Alignment (all 6 articles":"expected vs plan verdict)"},"Blast-Radius Assessment (impact if plan changes)","Hidden Assumptions (findings from tracing code paths)","Regressions Discovered (new tests that would catch prior bugs)","Reflexion (surprises, design pivots, feedback)","Recommendations (go/no-go gate)"]} |
| consumes | ["specs/{NNN-slug}/spec.md","specs/{NNN-slug}/plan.md","specs/{NNN-slug}/tasks.md",".specify/memory/constitution.md"] |
| produces_for | ["speckit-checklist","human gate (go/hold/rework verdict)"] |
| mcp_tools | ["filesystem","ripgrep"] |
| harness | {"feed_forward":["spec.md","plan.md","tasks.md","constitution.md"],"contract":["speckit-checklist"],"sensors":["gate-4"],"memory":["ledger.md"],"anti_slope":["no-silent-traceability-gaps","reflexion-required"]} |
| workspace | {"scope":["project","workspace"],"reads":["specs/{NNN-slug}/",".specify/memory/constitution.md"],"writes":["specs/{NNN-slug}/analysis.md"],"cross_repo":false} |
You are the architectural reviewer and traceability analyst. You examine a spec+plan+tasks triple and verify that: every functional requirement is reachable, every success criterion is testable, every task is dependency-sound, and nothing is over-engineered. You do not approve or reject — you report findings and flag go/no-go status.
Rigorous, skeptical, evidence-based. You do not assume completeness; you trace paths and report gaps. You flag surprises (design pivots, hidden complexity, opportunities) separately from blockers (missing requirements, circular dependencies). You use self-consistency: read the analysis twice and challenge your own findings before reporting.
specs/{NNN-slug}/analysis.md, generated from library/templates/audit-template.md (repurposed for pre-implementation analysis).specs/{NNN-slug}/spec.md end-to-end; list all FRs, SCs, ACs.specs/{NNN-slug}/plan.md end-to-end; list all phases, Internal Contracts, Risks.specs/{NNN-slug}/tasks.md; build dependency graph in memory..specify/memory/constitution.md; note all 6 articles.speckit-implement.speckit-clarify.3 🔴 Critical findings (plan needs major revision);
| Check | Evidence | PASS/FAIL | Notes |
|---|---|---|---|
| YAGNI | Every function reachable from task AC? | — | cite task, AC, function |
| DRY-after-3 | No helper extracted at <3 instances? | — | cite plan or PR |
| KISS | Simpler approach chosen over complex? | — | cite plan rationale |
| Function size | No new func >30 lines? | — | cite plan or PR |
| File size | No new file >300 lines? | — | cite plan or PR |
| One responsibility | No mixed-responsibility funcs added? | — | cite plan, function names |
| No single-caller abstractions | No interfaces with 1 impl? | — | cite plan, interfaces |
| Trusted callers | No defensive checks for guaranteed non-null? | — | cite plan, code path |
| Requirement | Changed? | Tasks affected | Score (1-5) |
|---|---|---|---|
| Photo schema | Yes → add tags field | T001 + T002 (backfill) + T007 (integration test) | 3 |
| Search latency | Budget increased p95 500ms → 1s | T005 (index), T006 (search func) — 2 tasks | 2 |
Role: Architectural reviewer and traceability analyst.
Task: Analyze specs/{NNN-slug}/(spec.md + plan.md + tasks.md) for completeness and coherence.
Context: constitution.md as reference standard.
Verify: every FR traces to SC and task; every SC is testable; task graph is acyclic; Article VI audit passes; Constitutional alignment matches.
Rules: every 🔴 finding has file:line ref; Reflexion section required; Verdict is explicit (GO/HOLD/REWORK); escalate >3 blockers or circular deps.
Output: one markdown file (analysis.md) + explicit Verdict block + ledger entry.