一键导入
speckit-07-analyze
Validate cross-artifact consistency between spec, plan, and tasks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate cross-artifact consistency between spec, plan, and tasks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create feature specification from natural language description
Identify underspecified areas and ask targeted clarification questions
Create technical implementation plan from feature specification
Generate domain-specific quality checklists for requirements validation
Generate test specifications from requirements before implementation (TDD support)
Generate actionable task breakdown from plan and specification
| name | speckit-07-analyze |
| description | Validate cross-artifact consistency between spec, plan, and tasks |
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
STRICTLY READ-ONLY: Do not modify any files. Output a structured analysis report. Offer an optional remediation plan (user must explicitly approve before any editing).
Constitution Authority: The project constitution (.specify/memory/constitution.md) is non-negotiable within this analysis scope. Constitution conflicts are automatically CRITICAL and require adjustment of the spec, plan, or tasks--not dilution, reinterpretation, or silent ignoring of the principle.
Before ANY action, load the project constitution:
Read constitution:
cat .specify/memory/constitution.md 2>/dev/null || echo "NO_CONSTITUTION"
If file doesn't exist:
ERROR: Project constitution not found at .specify/memory/constitution.md
Cannot proceed without constitution.
Run: /speckit-00-constitution
Extract principle names and MUST/SHOULD normative statements.
Run prerequisites check:
.tessl/tiles/tessl-labs/spec-kit/skills/speckit-01-specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
Parse JSON for FEATURE_DIR and AVAILABLE_DOCS.
Derive absolute paths:
If any required file is missing:
ERROR: Required artifact missing.
Missing: [spec.md | plan.md | tasks.md]
Run the appropriate skill to create the missing artifact:
- spec.md: /speckit-01-specify <feature description>
- plan.md: /speckit-03-plan
- tasks.md: /speckit-06-tasks
Load only minimal necessary context from each artifact:
From spec.md:
From plan.md:
From tasks.md:
Create internal representations (do not include raw artifacts in output):
Focus on high-signal findings. Limit to 50 findings total.
<placeholder>)Check each artifact for content that belongs elsewhere:
Constitution violations (tech in governance):
Spec violations (implementation in requirements):
Plan violations (governance in technical):
Report format:
PHASE SEPARATION VIOLATIONS:
- [CRITICAL] constitution.md line 45: "Use Python 3.11" (tech in governance)
- [CRITICAL] spec.md line 120: "REST API endpoint /users" (impl in spec)
- [HIGH] plan.md line 30: "All code must have tests" (governance in plan)
Output a Markdown report (no file writes):
## Specification Analysis Report
| ID | Category | Severity | Location(s) | Summary | Recommendation |
|----|----------|----------|-------------|---------|----------------|
| A1 | Duplication | HIGH | spec.md:L120-134 | Two similar requirements ... | Merge phrasing |
**Coverage Summary Table:**
| Requirement Key | Has Task? | Task IDs | Notes |
|-----------------|-----------|----------|-------|
**Phase Separation Violations:** (if any)
| Artifact | Line | Violation | Severity |
|----------|------|-----------|----------|
**Constitution Alignment Issues:** (if any)
**Unmapped Tasks:** (if any)
**Metrics:**
- Total Requirements
- Total Tasks
- Coverage % (requirements with >=1 task)
- Ambiguity Count
- Duplication Count
- Critical Issues Count
At end of report, output a concise Next Actions block:
/speckit-08-implementAsk the user: "Would you like me to suggest concrete remediation edits for the top N issues?" (Do NOT apply them automatically.)
After analysis:
/speckit-07-analyze/speckit-08-implement to execute the implementationThe implement skill will perform its own prerequisite checks before proceeding.