specrew-traceability-check
Verify every task in tasks.md maps to at least one FR/SC and every FR/SC has at least one task; surface gaps before implementation begins.
- License 许可
- MIT
- 最近更新
- 2026-08-28
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- specrew-traceability-check
- domain
- lifecycle-after-tasks
- source
- Specrew governance pillar — after-tasks ceremony helper
- confidence
- high
- description
- Verify every task in tasks.md maps to at least one FR/SC and every FR/SC has at least one task; surface gaps before implementation begins.
02 资源文件 1
- 其他.specrew-managed83 B
03 SKILL.md 正文
specrew-traceability-check
Type: Analysis Skill
Schema: v1
Status: Active planning/review method
Purpose
Validate that the plan is safe to execute by proving every task traces to authority and every in-scope requirement has coverage.
When to Use
- During Planning before approval
- During Review when scope or requirement coverage is questioned
- On demand when a task looks orphaned or a requirement looks uncovered
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
| iteration_plan_path | path | Yes | Path to iterations/NNN/plan.md |
| spec_path | path | Yes | Path to the authoritative spec file |
| requirement_scope | array? | No | Optional filter for specific requirements |
Process
- Parse the plan task table and collect task IDs, requirement refs, story refs, owners, and statuses
- Parse the spec and identify the in-scope requirements
- Build both:
- requirement -> tasks
- task -> requirement
- Fail the check on:
- orphan tasks
- stale or invalid requirement references
- uncovered in-scope requirements
- tasks missing owner, effort, or story metadata
- Return concrete fixes, not just a percentage
Outputs
| Output | Type | Description |
|---|---|---|
| verdict | enum: PASS, FAIL | Traceability check result |
| coverage_ratio | float | Percentage of requirements with tasks |
| orphan_tasks[] | array | Tasks with missing or invalid requirement refs |
| uncovered_requirements[] | array | Requirements with no tasks |
| partial_requirements[] | array | Requirements partially implemented |
| fix_actions[] | array | Plan edits required before execution can begin |
Side Effects
None. This is a pre-execution gate.
Error Handling
- If
iteration_plan_pathis missing: return FAIL withplan file missing - If
spec_pathis missing: return FAIL withspec file missing - If plan or spec parsing fails: return FAIL with the parsing problem
Review Standard
The result must be strong enough to block planning if the plan is not contract-safe.
04 同仓库更多 Skills
windows-compatibility
Cross-platform path handling and command patterns
versioning-policy
Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents
tiered-memory
Three-tier agent memory model (hot/cold/wiki) for context reduction per spawn
test-discipline
Update tests when changing APIs — no exceptions
squad
Squad's command catalog and interactive menu. Invoke via /squad (slash command) or natural language ("squad commands", "what can squad do", "show me squad options"). Presents categorized operations (Install & Upgrade, Team Management, Issues & PRs, Plugins & Skills, Model & Cost, Sessions & State) as an interactive picker. Routes to the right squad CLI command or the Squad coordinator agent.
squad-version-check
Internals of how @bradygaster/squad-cli stamps its version, how `squad upgrade` works (what it preserves vs overwrites), and how to probe the npm registry for the latest version from a coordinator prompt.