/spec-tasks¶
Regenerate implementation tasks from the current spec requirements and design. Use this after refining a spec to keep the task list aligned with what needs to be built.
Usage¶
No arguments — the command detects available specs and prompts you to select one if multiple exist.
Arguments¶
| Argument | Required | Description |
|---|---|---|
| (none) | — | Interactive. Selects the spec automatically if only one exists. |
What It Does¶
-
Identifies the spec — finds specs in
.claude/specs/. Auto-selects if only one exists. -
Reads current spec files — loads
requirements.md,design.md, and the existingtasks.md(if any) to understand what is already planned. -
Analyzes changes — if tasks already exist, compares them against the current requirements and design to find: new requirements not covered by existing tasks, design components without implementation tasks, and tasks that belong to removed or changed requirements.
-
Generates an updated task list organized into five phases:
- Setup — scaffolding, dependencies, configuration
- Core Implementation — main feature functionality, data models, business logic
- Integration — API connections, service and UI integration
- Testing — unit, integration, and end-to-end tests
-
Polish — error handling, edge cases, documentation
-
Preserves completed work — tasks marked as completed are kept unchanged. Pending tasks are updated if requirements changed. Obsolete tasks are marked removed with a note explaining why.
-
Syncs to the task list — creates new tasks for new items and updates existing tasks if descriptions changed. Completed tasks are never removed.
-
Reports changes — summarizes how many tasks were added, updated, removed, and how many remain pending.
Example¶
After running /spec-refine to add OAuth support, run /spec-tasks to add the new tasks for OAuth implementation without losing your existing completed work.
Tips¶
- Always run this after
/spec-refineto keep tasks aligned with the current spec. - Review the generated tasks before starting implementation — check that dependencies between tasks make sense.
- Completed tasks are never automatically removed, even if the requirement they trace to has changed.
Note
/spec-tasks recalculates task dependencies based on the current task sequence. If you have custom dependency arrangements, review them after regeneration.
See Also¶
- /spec-refine — Update requirements or design before regenerating tasks
- /spec-status — View current task progress
- /spec-validate — Validate the spec including task traceability