一键导入
sdd-analysis
Spec-Driven Development: Cross-artifact consistency analysis — semantic model building, 6 detection passes, severity assignment
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Spec-Driven Development: Cross-artifact consistency analysis — semantic model building, 6 detection passes, severity assignment
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Spec-Driven Development: Ambiguity detection taxonomy, prioritization heuristic, and sequential questioning protocol
Spec-Driven Development: Constitution format, versioning rules, and governance methodology
Spec-Driven Development: Orchestration protocol — working-spec.json lifecycle, phase management, initialization, and delegation guidance for SDD workflows
Spec-Driven Development: Implementation planning format, constitution check gates, and Weave plan bridge
Spec-Driven Development: Feature specification format, quality validation checklist, and requirement writing rules
基于 SOC 职业分类
| name | sdd-analysis |
| description | Spec-Driven Development: Cross-artifact consistency analysis — semantic model building, 6 detection passes, severity assignment |
The analyze step performs a read-only pass across all SDD artifacts to detect inconsistencies, coverage gaps, and constitution violations before implementation begins. Do NOT modify any files during analysis — write findings to a report only.
Before running detection passes, build an inventory from all artifacts:
From the spec (spec.md):
[NEEDS CLARIFICATION] markers remainingFrom the plan (plan.md):
From the tasks (tasks.md):
From the constitution (memory/constitution.md):
Run each pass in order. Record every finding with a unique ID (A001, A002, ...).
Check that every requirement has a corresponding task:
Findings: FRs with no task, SCs with no verifiable task, unimplemented P1 stories.
Look for redundancy that could cause implementation conflicts:
Findings: Pairs of tasks/requirements that overlap, with recommendation to merge or clarify scope boundary.
Identify requirements that have multiple valid interpretations:
Findings: Each ambiguous item with the specific vague language quoted.
Check tasks against constitutional principles:
Findings: Tasks that would violate principles, with the specific principle cited.
Look for internal contradictions:
Findings: Pairs of items that conflict, with the contradiction described precisely.
Identify items that are too vague to implement:
Findings: Each underspecified item with what information is missing.
Assign severity to each finding:
| Severity | Meaning | Action Required |
|---|---|---|
| CRITICAL | Blocks implementation — ambiguity could cause wrong architecture or data model | Must fix before starting implementation |
| HIGH | Significant risk — likely to cause bugs, missed requirements, or rework | Strongly recommended to fix before implementation |
| MEDIUM | Notable gap — could cause problems but workaround exists | Fix when possible, document if deferring |
| LOW | Minor improvement — good to have but low impact | Fix in Polish phase or future iteration |
Write the analysis report to {feature_dir}/analysis.md:
# Cross-Artifact Analysis: [Feature Name]
**Date**: YYYY-MM-DD
**Analyst**: Thread (read-only)
**Artifacts analyzed**:
- spec.md (FRs: N, SCs: N, User Stories: N)
- plan.md (tasks: N, constitution checks: N)
- tasks.md (tasks: N)
- constitution.md (principles: N)
## Summary
- **FR coverage**: N% of FRs have at least one task
- **SC coverage**: N% of SCs are verifiable through tasks
- **P1 story coverage**: N% of P1 user stories have P1 tasks
- **Critical findings**: N
- **High findings**: N
- **Total findings**: N
## Findings
| ID | Category | Severity | Location | Summary | Recommendation |
|----|----------|----------|----------|---------|----------------|
| A001 | Coverage Gap | HIGH | FR-003 | No task covers FR-003 (rate limiting) | Add task in Phase 2: User Stories |
| A002 | Ambiguity | CRITICAL | FR-007 | "reasonable response time" — no measurable target | Define as SC — suggest < 200ms p95 |
| A003 | Constitution | HIGH | T015 | Task stores PII in logs, violating Security principle | Remove PII from log statements |
## No Findings Categories
[List any of the 6 passes that found zero issues]
## Metrics
- Semantic model: N FRs, N SCs, N user stories, N tasks, N principles
- Coverage gaps: N FRs uncovered, N SCs unverifiable
- Longest dependency chain: T### → T### → T### (N tasks)
Limits: Maximum 50 findings total. If more than 50 are found, keep all CRITICAL and HIGH, then top MEDIUM by impact, then sample LOW.
The analysis step is distinct from the review gates:
[REJECT].[REJECT].The analysis report is an INPUT to the implement step — Shuttle should address CRITICAL and HIGH findings during implementation.