Skip to content
Development
Skill

/planning

Templates and guidance for implementation plans with dynamic phase generation.

From plugin
sdd
4359 skills7 agents3 commands

Claude Code

$ npx -y skills add LiorCohen/sdd --skill planning --agent claude-code

SKILL.md

planning.SKILL.md
name: planning
description: Templates and guidance for implementation plans with dynamic phase generation.
user-invocable: false

Planning Skill

Plan Location

Plans are stored alongside their specs:

`changes/YYYY/MM/DD/<id>-<name>/<NN-change-name>/PLAN.md`

This keeps all change documentation (spec + plan) together in one location.

Workflow Integration

Plans are created as part of the `/sdd` workflow:

1. User creates or imports a change via `/sdd I want to create a new feature` 2. Spec solicitation creates SPEC.md 3. User reviews and approves spec via `/sdd I want to approve the spec` 4. **This skill creates PLAN.md** immediately after spec approval 5. User reviews and approves plan via `/sdd I want to approve the plan` 6. Implementation can begin via `/sdd I want to start implementing`

**Plan creation requires an approved SPEC.md** as input — it does not run independently.

Input

Schema: [`schemas/input.schema.json`](./schemas/input.schema.json)

Accepts change ID, path to approved SPEC.md, and workflow ID.

Output

Schema: [`schemas/output.schema.json`](./schemas/output.schema.json)

Returns path to created PLAN.md and review status.

SPEC.md vs PLAN.md Separation

| File | Purpose | Contains | Does NOT Contain | |------|---------|----------|------------------| | **SPEC.md** | What to build and how | Requirements, design, API contracts, implementation details, test cases | Execution order, agent assignments | | **PLAN.md** | Execution coordination | Phases, agent assignments, dependencies, expected files, progress tracking | Implementation details, code patterns, specific coding tasks |

> **Key principle:** Because plans focus on execution coordination (not implementation details), the SPEC.md must be comprehensive enough that an implementer can complete each phase by reading only the spec. Plans reference specs; they don't duplicate them.

Plan Content Guidelines

**Acceptable in plans:**

  • Standards references per phase (which standards skills apply to each agent's work)
  • Methodology-level task descriptions (e.g., "Implement Model layer" not "Implement domain logic")
  • Brief code snippets as constraints or guidelines (e.g., "interface must include X field")
  • High-level examples showing intent
  • File paths and component names
  • Phase sequencing and dependencies
  • Extensive test lists (tests define WHAT, not HOW)

**Not appropriate in plans:**

  • Full implementations or complete code blocks
  • Step-by-step coding instructions
  • Line-by-line change lists
  • Algorithm implementations (belong in spec)

SPEC.md: Thorough Technical Specification

SPEC.md is a **complete technical specification**. It must be:

  • **Self-sufficient**: Anyone reading the spec understands the change fully without other docs
  • **Thorough**: Covers all aspects (functional, non-functional, security, errors, observability)
  • **Technical**: Includes schemas, algorithms, data models, API contracts
  • **Testable**: Every requirement has clear acceptance criteria

Key sections:

  • Background and current state (context)
  • Functional and non-functional requirements
  • Technical design (architecture, data model, algorithms)
  • API contracts with request/response schemas
  • Security considerations
  • Error handling strategy
  • Observability (logging, metrics, traces)
  • Testing strategy with specific test cases
  • Domain updates (glossary, definitions)
  • Dependencies and migration plan

Domain Documentation in Specs

Domain documentation is specified **in SPEC.md during planning**, not discovered during implementation.

The SPEC.md file includes a `## Domain Updates` section that explicitly lists:

  • **Glossary Terms** - exact terms to add/modify in `specs/domain/glossary.md`
  • **Definition Specs** - domain definition files to create/update in `specs/domain/definitions/`
  • **Architecture Docs** - updates needed in `specs/architecture/`

Testing Strategy in Specs

The SPEC.md file includes a `## Testing Strategy` section that defines:

  • **Unit Tests** - what behaviors need unit tests (implemented via TDD during execution)
  • **Integration Tests** - what integrations need testing
  • **E2E Tests** - what user flows need end-to-end tests

This approach ensures: 1. All requirements (domain, tests, verification) are fully understood before implementation 2. Implementation simply executes the specified updates (no discovery) 3. Clear traceability from spec to implementation

Dynamic Phase Generation

Plans are generated dynamically based on the SPEC.md's Components section.

Component Source of Truth

**SPEC.md is the source of truth for required components.**

The planning skill: 1. Reads the `## Components` section from SPEC.md 2. May read `sdd/sdd-settings.yaml` for existing component details (delegate to the `project-settings` skill for the settings schema — it returns typed component objects with `name`, `type`, and type-specific `settings` like `server_type`, `databases`, `provides_contracts`) 3. Does NOT ask about tech stack or which components to use

If SPEC.md says a component is needed but it's not in `sdd-settings.yaml` yet, that's expected - the component will be created during implementation.

**DO NOT ask tech stack questions during planning.** Component discovery already determined what's needed.

Generation Algorithm

1. **Read required components** from SPEC.md `## Components` section 2. **Reference existing components** from `sdd/sdd-settings.yaml` for details 3. **Check for new components:** If SPEC.md `## Components` lists new components not yet in `sdd-settings.yaml`, prepend a "Phase 1: Component Scaffolding" phase and shift subsequent phase numbers. If all components already exist, omit the scaffolding phase. This applies to all change types (feature, refactor). 4. **Order by dependency graph:** Invoke `techpacks.dependencyOrder` for the active tech pack namespace to get the topological order of component types. Use this order for phase sequencing. 5. **Assign

Read more
@liorcohen
Ships withsdd

Structure for AI-assisted development AI coding assistants are powerful but chaotic. You prompt, you get code, but then what?

4359 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
43
Star history of LiorCohen/sdd on GitHub, a chart by star-history.com

Other skills on sdd.

agents-standards

agents-standards

Standards for authoring SDD plugin agents — frontmatter, self-containment, skill references, and no-user-interaction rules.

@liorcohen@liorcohenInstall Skill
commands-standards

commands-standards

Standards for authoring SDD plugin commands — frontmatter, user interaction, skill/agent invocation, CLI integration, and output…

@liorcohen@liorcohenInstall Skill
commit

commit

Create a commit following repository guidelines with proper versioning and changelog updates.

@liorcohen@liorcohenInstall Skill
critic

critic

Two-step self-review at every task lifecycle phase. Step 1 (this skill) runs in-context to gather session signals — files read vs…

@liorcohen@liorcohenInstall Skill
d2

d2

D2 diagramming language reference for architecture diagrams, sequence diagrams, grid layouts, SQL tables, and class diagrams.…

@liorcohen@liorcohenInstall Skill
docs-standards

docs-standards

Writes and maintains user-facing documentation for the SDD plugin. Proactively detects when docs are out of sync with plugin…

@liorcohen@liorcohenInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about planning.

Which coding agents can use planning?
planning installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.