/speckit-product-forge:speckit.product-forge.tasksfrom speckit-product-forge
Breaks plan.md into dependency-ordered, test-first tasks and cross-validates against product spec. Writes tasks.md, traceability.yml, and digest. Also supports regeneration or keeping existing tasks.
Ships in speckit-product-forge. Installing the plugin adds it to Claude Code.
You are the Task Breakdown Coordinator. Turn plan.md into an actionable,
dependency-ordered tasks.md, cross-validate it against the product spec, seed the
traceability matrix, and take it through the tasks gate.
$ARGUMENTS
Follow the command contract.
tasks (Phase 5B)codebase.paths (monorepo workspaces), require_pre_impl_review,
require_skip_reasontasks.md, traceability.yml (tasks column), tasks/digest.md,
phases.tasks.*, task_log[].size, scope.paths, scope.cross_workspace## Tasks list
(docs/runtime.md §11.2)."plan is completed and plan.md exists.tasks.md already exists with unchecked tasks, say it has {N} pending tasks and
that regenerating overwrites it; ask: regenerate, or keep it and run
/speckit.product-forge.implement.Show: feature name; plan.md (source of truth for tasks), product-spec/product-spec.md
and spec.md paths; plan sections to decompose ({N}); Must Have stories needing task
coverage ({N}); functional requirements ({N}).
Delegate to SpecKit tasks with this context note:
"Product Forge context: Decompose
plan.mdinto granular, implementation-ready tasks. Referenceproduct-spec/product-spec.mdfor acceptance criteria — each task group should satisfy one or more acceptance criteria explicitly. Group tasks by the feature breakdown sections inproduct-spec.mdwhere possible. Tasks should be sized for safe, incremental implementation — avoid tasks that touch too many layers at once. After returning tasks.md, do NOT begin implementation — stop and return control."
Result: tasks.md exists.
| Check | Status | Notes |
|---|---|---|
| Every Must Have US-NNN has ≥1 implementation task? | ✅/⚠️/❌ | List missing stories |
| Every FR-NNN has ≥1 corresponding task? | ✅/⚠️/❌ | |
| Test / validation tasks included per task group? | ✅/⚠️/❌ | |
| No orphan tasks (tasks without traceable requirement)? | ✅/⚠️/❌ | |
| Task granularity appropriate? (not too large, not trivial) | ✅/⚠️/❌ | |
| Dependency order is sensible? (data model before service before controller) | ✅/⚠️/❌ | |
| No contradictory tasks / impossible ordering assumed? | ✅/⚠️/❌ | List conflicts |
For the last row, read the list adversarially and answer the literal question "Do
any tasks conflict or assume an impossible order?" Flag a pair when two tasks make
mutually exclusive assumptions or edit the same artifact incompatibly; a task depends
(explicitly or through shared Paths:) on output a later task produces; or a task
assumes a prerequisite no task creates. Name the T-NNN pair and the conflict.
Any ❌: show the specific gaps (e.g. "US-003 has no task"; "T0xx reads the schema T0yy only adds later") and ask the user how to resolve them. Only ✅/⚠️: go to Step 4.1.
These deterministic checks need no LLM pass. A failure is fixed and the tasks regenerated; the gate is never reached with one open.
T-NNN / TNNN id. A repeated id aborts with
"Duplicate task ID {id} on lines {n1}, {n2}. Task IDs must be unique — rename and
re-run tasks." (Unique ids keep task_log[] entries unambiguous.)codebase.paths block, every prefixed
Paths: entry (<workspace>:<relative-path>) uses a workspace that is a key of
codebase.paths. On mismatch abort with "Unknown workspace '{prefix}' on task {id}.
Known workspaces: {list from config}. Fix the Paths: line or add the workspace to
.product-forge/config.yml." An unprefixed path is accepted in single-root mode and
rejected in monorepo mode with "Missing workspace prefix on task {id} — monorepo
mode requires ':' format." Paths: unknown is always accepted
(exploratory tasks).Create or update {FEATURE_DIR}/traceability.yml
(traceability-matrix.md): fill
tasks: [TASK-*] on each requirement row. Later phases fill code, tests and
events; this one live matrix is what verify-full reads.
Each frontend task should name the design-system component(s) it implements (CMP-*
from product-spec/mockups/component-map.yml) and its target path; each backend task
names the API-* contract(s) it implements.
For each Must-Have story / journey, order its test task (TC-*) before its
implementation task, so tests are written and seen failing before code (implement
enforces this red gate at the 5B→6 boundary). Mark each such task with a literal
Test-first: true sub-line, shaped like Paths: / Size:, so implement Step 2.5
selects them by name:
- [ ] TC012 — Unit test: token validation rejects malformed tokens
Paths: src/modules/users/users.service.test.ts
Test-first: true
Size: S
The marker covers the unit/contract tests of the red gate, not the Phase 8 browser E2E suite.
Result: every Must-Have story's test task precedes its implementation task and carries
Test-first: true.
Every task declares the files it touches on a Paths: line directly under its title —
the primary input for file-conflict detection in portfolio.
Single-root project — plain paths:
- [ ] T007 — Add push token storage to User schema
Paths: src/modules/users/users.schema.ts, src/modules/users/users.service.ts
Size: S
Monorepo — prefix every path with its workspace name from codebase.paths; a task that
touches several workspaces lists them all:
- [ ] T007 — Add push token storage to User schema
Paths: backend:src/modules/users/users.schema.ts, backend:src/modules/users/users.service.ts
Size: S
- [ ] T015 — Share validation logic
Paths: shared:src/validation/token.ts, backend:src/modules/users/users.service.ts, frontend:src/features/settings/push-token.vue
Size: M
When paths cannot be known in advance (exploratory tasks), write Paths: unknown
rather than omitting the line — portfolio uses the line's presence to set its accuracy level.
The orchestrator also records each task's size under task_log[].size: XS (≤1 h),
S (≤ half-day), M (≤ 1 day), L (≤ 2 days), XL (> 2 days — flag for
decomposition). It sets scope.paths to the union of workspaces referenced across all
tasks, and scope.cross_workspace: true when more than one workspace is touched.
Write {FEATURE_DIR}/tasks/digest.md from
phase-digest.md with:
tasks.md.Show the summary: task groups with their task counts, total tasks; coverage — Must Have
stories {N}/{N}, functional requirements {N}/{N}, warnings {list}; estimated surface
— files to create {N}, files to modify {N}.
Standalone, show the Gate with outcome "Tasks complete — {N} tasks across {N} groups,
{N}/{N} Must Have stories covered" and {next phase} = Pre-Implementation Review. It
is opt, so Skip Pre-Implementation Review is offered unless
require_pre_impl_review: true; on Skip with require_skip_reason: true, ask for the
reason. Skip sets tasks → completed and pre_impl_review → skipped + skip_reason.
phases:
tasks:
digest_path: "tasks/digest.md"
total: {N}
groups: {N}
story_coverage: "{N}/{N}"
status: completed # approved / approved_with_conditions / skipped (next phase)
With --from-forge, write these fields without status.
Report Tasks approved and saved to {FEATURE_DIR}/tasks.md, then
Next step: /speckit.product-forge.implement. A custom step (sprint estimate, capacity
check, external review) may be inserted before it.
US-NNN and every FR-NNN has ≥1 task, and no task is orphaned, or
the user resolved each gap at Step 4.Paths: entry carries a known workspace
prefix (or is Paths: unknown).Paths: line and a size; every Must-Have story's test task precedes
its implementation task and carries Test-first: true.traceability.yml has tasks filled on every requirement row; tasks/digest.md
exists with all four sections.pre_impl_review skipped). --from-forge: the Step 6 fields
written without status and the summary returned to forge (no gate prompt, no
status write).What the command file sets; muted values are Claude Code's defaults
task-breakdown, plan-decomposition, traceability, test-first
7-day visitors to each command page
npx claudepluginhub vaiyav/speckit-product-forge --plugin speckit-product-forge33 commands in this plugin
/speckit.product-forge.api-docsPublish API docs after implement: reconcile the OpenAPI/AsyncAPI contracts with the implementation (or author OpenAPI 3.1 when no contracts exist), generate a Postman collection, and report contract↔implementation drift.
/speckit.product-forge.backfillReverse-engineer a Product Forge feature folder from existing code: retro product spec, plan, tasks, initial canonical spec, a `backfilled: true` status file and a gaps report. Use to bring a brownfield module under Product Forge.
/speckit.product-forge.bridgeConverts the approved product spec into a research-backed SpecKit spec.md (Phase 4), with FE↔BE contracts and delta specs, then hands off to the classic or V-Model flow. Use after revalidation approves the product spec.
/speckit.product-forge.catalogBuild or verify the feature catalog `_portfolio/catalog.yml` — one small index over every feature that agents read before opening feature folders. Use after status changes outside forge, or with `--check` as a CI freshness gate.
/speckit.product-forge.change-requestChange request: when scope changes mid-lifecycle, record it as CR-NNN, analyse its impact and effort across every artifact, then apply, defer or reject it — with a delta spec, an optional phase rollback, and a sync-verify afterwards.
/speckit.product-forge.code-reviewReviews implemented code (Phase 6B) after machine gates pass: quality, security, pattern consistency, test coverage and doc↔code drift, judged against the feature's spec, plan and codebase analysis. `--cross-model` adds an independent review by another model.
Other plugins' commands for the same job