task-spec-execution
Original:🇺🇸 English
Translated
Use when a docs-driven repository has a selected or selectable concrete docs/tasks task and needs task-local spec or implementation governance before code changes.
3installs
Added on
NPX Install
npx skill4agent add adol1111/doc-driven-spec-workflow task-spec-executionTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Task Spec Execution
Use this skill after roadmap structure exists and one concrete task is selected or ready to be selected.
Composition
- Entry: reached from or
doc-driven-spec-workflowafter a concrete task exists or is selected.milestone-planning - Owns: task-local , optional task-local
spec.md, readiness checks, implementation governance, verification, docs/status updates, and branch closing.plan.md - Does not own: minimum docs scaffold bootstrap, milestone boundary decisions, module grouping, roadmap-layer task creation, or planning-stage templates.
- Handoff: return to after one concrete task checkpoint and branch closing are resolved.
doc-driven-spec-workflow
Core Rules
Spec and Plan
- Spec: defines behavior, scope, exclusions, and tradeoffs.
- Plan: defines implementation slices, file map, and verification (only when complexity justifies it).
- Do not collapse into one document.
- Default to task-local and optional
spec.md; use globalplan.mdordocs/specs/only for standalone or cross-task docs.docs/plans/ - Do not create a new spec for pure docs governance work such as architecture edits, task/module reshaping, milestone changes, or index maintenance.
- Default to . Revise the existing spec for corrections or clarifications instead of creating another one.
1 task -> 1 spec - If multiple specs seem necessary, stop and use to split the task first.
milestone-planning
Governance Mode
| Mode | Work Type | Requires Spec |
|---|---|---|
| Docs governance | Architecture edits, task/module reshaping, milestone updates, index maintenance | No |
| Implementation governance | Code edits for concrete | Yes |
- Keep pure docs governance in docs mode. It does not create implementation permission.
- Defer minimum docs scaffold initialization to .
docs-workflow-bootstrap - This skill may read or maintain bootstrap-created docs after they exist, but it is not the primary owner of repository scaffold initialization.
- Defer roadmap decomposition, milestone boundaries, module grouping, and task reshaping to .
milestone-planning
Implementation Requirements
Before code edits:
- Spec approval
- Plan approval (when required)
- Branch/worktree isolation
- Readiness checkpoint
- Do not edit implementation code for a concrete task until all four conditions are satisfied.
docs/tasks/* - Resolve a docs checkpoint for approved task-local docs before implementation isolation.
Branch Isolation Rules
| Situation | Action |
|---|---|
| Workspace dirty, shared, risky, or likely to conflict | Use |
| Workspace clean and isolation risk is low | Create dedicated task branch in place |
| User explicitly asks to stay on current branch | Only with explicit user choice |
Default: never start implementation on current branch. Do not carry approved-but-uncommitted task-local docs into implementation worktree by default.
Checkpoint Flow
| Complexity | Flow |
|---|---|
| Default | |
| Complex | |
- Hard pause at concrete task: report verification/docs updates, resolve commit or approved uncommitted checkpoint, resolve branch closing, then stop.
- Milestone completion is hard boundary: frozen after move to .
Completed Milestones - Crossing milestones: resolve previous milestone closure and new milestone confirmation first.
- For docs-only or governance work, stop after reporting changed files and key diffs. Do not commit unless the user asked for it up front or confirms after review.
Branch Closing
- After completing concrete task, do not start another task until branch closing is resolved.
docs/tasks/* - Use for merge/PR/keep/discard options.
superpowers:finishing-a-development-branch - Use cleanup rules for worktree cleanup.
superpowers:using-git-worktrees - Removing a worktree does not remove its task branch.
- If the user chooses merge and cleanup, confirm whether cleanup includes deleting the fully merged task branch before deleting it.
- Never delete branch or worktree without confirming closing decision.
- If user asks to "continue", treat as prompt to resolve branch closing first.
Task And Status Rules
- Use to decide next task, not
docs/tasks/.docs/context/ - Do not infer new concrete task from alone.
docs/architecture/ - If architecture implies follow-up work but has no open task, use
docs/tasks/first.milestone-planning - Tasks inside unconfirmed milestone () are not suitable open work.
Roadmap confirmed: no - Respect task sizing. If too small, too broad, or only sub-step, stop and use .
milestone-planning - Completed milestones are frozen. Never reopen or add modules/tasks.
- Tasks fit one focused branch including implementation, tests, docs/status updates, code review, verification.
- Keep implementation steps inside , optional
spec.md, or checklist items; do not promote into tasks.plan.md - Task-level stays within same milestone normally. Put cross-milestone sequencing in milestone-level notes.
Depends on - Respect task dependencies exactly as written.
- Keep task status mutually exclusive: ,
planned,in_progress,blocked.completed - lists
docs/tasks/index.mdandOpen Milestones, no modules or task counts.Completed Milestones - Move milestones from open to completed only when whole milestone done; no .
[completed/total] - Do not begin task from later milestone until previous milestone intentionally active by explicit user choice or reviewed for closure and target milestone explicitly confirmed.
- Keep milestone/module indexes accurate, do not redesign structure here.
- Each concrete task: directory with , task-local
task.md, optionalspec.md.plan.md - tracks status, dependencies, acceptance points; not detailed step-by-step plan.
task.md - When all open tasks complete, report if milestone appears complete. Use before moving milestone state or adding missing work.
milestone-planning - Pure cleanup, concept clarification, docs governance belongs in current work round by default. Create task directory only for complex/cross-cutting governance with independent acceptance or project-level execution state; even then, do not create spec unless it drives concrete implementation.
- Use as the only source of truth for concrete next work.
docs/tasks/ - Tasks in a milestone still marked remain candidate tasks only until milestone entry is explicitly confirmed.
Roadmap confirmed: no - Resolve the previous task checkpoint before starting another concrete task.
- Report milestone-entry governance changes before drafting the first task spec in that milestone.
Docs Boundaries
- holds stable behavior and long-lived constraints.
docs/architecture/ - holds roadmap state, milestone or module indexes, and concrete task directories.
docs/tasks/ - holds supporting research and unstable reference material.
docs/context/ - Treat code as the source of truth when code and docs diverge.
- If implementation changes behavior, API shape, task status, architecture assumptions, or other documented constraints, update the relevant docs in the same round.
- If a conclusion in becomes a stable system rule, move or restate it in
docs/context/.docs/architecture/
Detailed Rules and Violations
For stop conditions, low-frequency execution details, and template-loading guidance, see references/task-execution-detailed-rules.md.
Workflow
Follow this order unless the user explicitly asks for something different:
- If the user's feature, behavior, or task intent is ambiguous, use when available, or an equivalent clarification workflow, before selecting or creating a concrete task.
superpowers:brainstorming - If the main uncertainty is roadmap shape rather than current-task design, use before continuing here.
milestone-planning - Read and the relevant docs index files.
docs/index.md - Read the relevant documents for behavior boundaries.
docs/architecture/ - Read the relevant milestone/module index plus task directory or
docs/tasks/for order, status, and dependencies.task.md - Use only for supporting research or unstable reference material.
docs/context/ - If there is no suitable open task because the roadmap shape itself is missing or unclear, stop and use .
milestone-planning - If the next candidate task is in a new milestone, first verify that the previous milestone checkpoint is closed and the target milestone is explicitly confirmed for entry. If not, stop and resolve milestone governance first.
- If implementing one concrete task, create or update its task directory and write one focused inside it.
spec.md - Stop after writing the spec; do not code until the user explicitly confirms it in the current thread.
- Create inside the task directory only for genuinely complex or multi-step work; if created, stop again for user confirmation before coding.
plan.md - After spec approval, and after plan approval when a plan exists, resolve a docs checkpoint for the approved task-local docs before implementation isolation.
- Before implementation edits, announce and run the readiness checkpoint.
- Implement from the approved spec or plan, then verify, update docs/status, and resolve branch closing.
- Stop after one concrete task. Continue only when the user explicitly asks in the current thread.
- Add an for every new major documentation section.
index.md
When To Use
Use this skill when:
- The repository uses ,
docs/architecture,docs/tasks, and task-local or standalone specs/plansdocs/context - The current concrete task has been chosen or is ready to be chosen from the existing roadmap
Use first when the user is still deciding milestone/module/task structure.
milestone-planningDo not use for repositories without this layout.