com um clique
plan-decomposition
WP identification, task breakdown, sequencing, and dependencies
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
WP identification, task breakdown, sequencing, and dependencies
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Test failure diagnosis, source code fixes, and regression detection
Environment verification, dependency installation, baseline test verification
Contract-first single-task implementation dispatched by Coder Coordinator
Integration test writing for component boundaries and external dependencies
Unit test writing and execution with coverage threshold enforcement
API reference documentation skill. Produces and updates API endpoint documentation from contract files in .sdd/docs/api-reference.md.
| name | plan-decomposition |
| description | WP identification, task breakdown, sequencing, and dependencies |
| argument-hint | Invoked by Planner Coordinator - do not call directly |
Phase: 1 (Decomposition) Common contract:
.github/skills/PLAN-SKILL-CONTRACT.mdSpec refs: FR-028, FR-029, FR-030, FR-031, FR-032
This skill is dispatched by the Planner Coordinator during Phase 1. It analyzes a validated specification and decomposes it into structured, sequenced work packages with atomic tasks.
| # | Input | Description |
|---|---|---|
| 1 | skill_path | Path to this SKILL.md file |
| 2 | plan_dir | Path to .sdd/plans/ directory |
| 3 | contracts_dir | Path to .sdd/plans/contracts/ directory |
| 4 | spec_path | Path to the source spec file |
| 5 | spec_artifacts_dir | Path to spec companion artifacts |
| 6 | research_summary | Key findings from the research phase |
| 7 | target_language | Programming language for contract generation |
| 8 | patterns | Active plan-domain patterns to avoid |
| 9 | phase | Phase indicator (always 1 for this skill) |
spec_path and companion artifacts at spec_artifacts_dir. Read multiple independent files in parallel via concurrent tool calls.plan_dirRead the specification thoroughly. Extract and organize:
Group related FRs into logical work packages following this sequencing logic:
Adjust sequencing based on actual spec dependencies. Not every layer is needed for every spec.
Priority assignment:
Splitting rules:
For each work package, create atomic tasks. A task is complete when it maps to a single, reviewable change.
Each task SHALL include (FR-029):
### T<NN>-XX - <Task title>
- **Description**: <What must be done, precisely>
- **Spec refs**: FR-XXX, FR-XXX, Section N.X
- **Parallel**: Yes / No
- **Acceptance criteria**:
- [ ] <Placeholder -- filled by plan-acceptance skill>
- **Test requirements**: unit / integration / BDD / E2E / none
- **Depends on**: T<NN>-XX or none
- **Implementation Guidance**:
- <Placeholder -- filled by plan-acceptance skill>
Task ID format: T<WP-number>-<sequence> (e.g., T01-01, T01-02, T03-05)
Task descriptions SHALL capture the FULL business logic the Coder must implement, not just the surface-level CRUD operation. When decomposing spec FRs into tasks:
Foundation WP special rule (FR-032): The first task of the foundation WP SHALL always be virtual environment setup for languages with package isolation:
python -m venv .venv or poetry/condanode_modules with lockfileFor each task and WP:
Depends on: T01-03)Depends on: WP01, WP02)Verify:
Write one file per work package at <plan_dir>/WP<NN>-<slug>.md with this structure:
---
lane: planned
depends_on: []
docs_scope: []
target_language: <target_language>
target_framework: <target_framework>
coverage_code: 80
coverage_branch: 90
---
# WP<NN> - <Title>
| Field | Value |
|-------|-------|
| Spec | `<spec_path>` |
| Priority | P0 / P1 / P2 |
| Depends on | WP<NN> or none |
| Goal | One-sentence user-observable outcome |
| Status | Not Started |
| Independent Test | How to verify in isolation |
| Parallelisable | Yes / No |
| Prompt | `<plan_dir>/WP<NN>-<slug>.md` |
## Objective
<2-3 sentences: what this WP delivers and why it matters>
## Spec References
<Comma-separated list of FRs and sections this WP covers>
## Tasks
<All tasks with the T<NN>-XX format from Step 3>
## Implementation Notes
<Key technical decisions, known pitfalls, sequencing rationale>
## Research Context
<Compact summary of technology-specific research findings relevant to this WP's tasks. Include: library version gotchas, API migration notes, framework-specific patterns, known pitfalls with cited sources. This section is forwarded to the Coder to prevent known-issue regressions. If no WP-specific research applies, write "See spec for general research context.">
## Risks & Mitigations
<Known risks with mitigation strategies>
## Activity Log
- <timestamp> - planner - lane=planned - Work package created
WP numbering: Use two-digit zero-padded numbers (WP01, WP02, ...). If the plan directory already has WP files from a prior spec, continue from the highest existing WP number + 1.
YAML frontmatter depends_on: The depends_on array in YAML frontmatter MUST list all WP dependencies as strings (e.g., depends_on: [WP01, WP03]). Use an empty array depends_on: [] for WPs with no dependencies. This field is read by the Orchestrator's topological sort to determine execution order. The markdown table's "Depends on" field is for human readability; the YAML frontmatter is the machine-readable source of truth.
YAML frontmatter docs_scope: The docs_scope array controls which doc skills the Docs Agent dispatches for this WP. Valid values: architecture, api-reference, user-guide, developer-guide, changelog, inline-code. Use an empty array docs_scope: [] to let the Docs Agent auto-detect (default). Guidance:
docs_scope: [architecture, api-reference, user-guide, developer-guide, changelog, inline-code]docs_scope: [changelog, developer-guide]docs_scope: [changelog]YAML frontmatter target_language and target_framework: Set these to the WP's implementation language and framework (e.g., target_language: TypeScript, target_framework: Express). Derive from the spec's Section 9.2 Technology Stack. These values are read by the Coder to dispatch skills with the correct language context. Every WP MUST have target_language set.
YAML frontmatter coverage_code and coverage_branch: Set code and branch coverage thresholds as integers (defaults: 80 and 90). Adjust per WP if the spec defines different thresholds or if the WP is infrastructure-heavy (lower thresholds may be appropriate for config/setup WPs).
Write or update <plan_dir>/README.md with:
If the README already exists from a prior spec, append a new section for this spec.
plan_dir