Agent Skill
2/7/2026

5d-sdd

5D Spec-Driven Development - A complete methodology for building software through structured phases. Use when: (1) User wants to build something non-trivial, (2) User mentions '5D' or 'spec-driven development,' (3) Starting a new project or feature that needs careful planning, (4) User wants a structured approach to development. This skill orchestrates the full workflow across 10 phases from orientation to reflection.

T
tapania
1GitHub Stars
1Views
npx skills add tapania/5d-skills

SKILL.md

Name5d-sdd
Description5D Spec-Driven Development - A complete methodology for building software through structured phases. Use when: (1) User wants to build something non-trivial, (2) User mentions '5D' or 'spec-driven development,' (3) Starting a new project or feature that needs careful planning, (4) User wants a structured approach to development. This skill orchestrates the full workflow across 10 phases from orientation to reflection.

name: 5d-sdd description: "5D Spec-Driven Development - A complete methodology for building software through structured phases. Use when: (1) User wants to build something non-trivial, (2) User mentions '5D' or 'spec-driven development,' (3) Starting a new project or feature that needs careful planning, (4) User wants a structured approach to development. This skill orchestrates the full workflow across 10 phases from orientation to reflection." user-invocable: true

5D Spec-Driven Development

A methodology for building software that prevents wasted effort by ensuring understanding before commitment at every level.

Core Philosophy

The 5 Dimensions

  1. Width - Multiple domains (technical, business, user, ops, design)
  2. Depth - Thinking levels (reactive → dogmatic → integrative → creative)
  3. Height - Skill dependencies (what capabilities enable other capabilities)
  4. Quadrants - Four perspectives (Individual/Collective × Inner/Outer)
  5. Time - Evolution ("transcend and include" from current state)

Why This Exists

Most development failures come from:

  • Building before understanding
  • Single-perspective thinking
  • Hidden assumptions
  • Spec drift from intent
  • No feedback loops

5D-SDD addresses each through structured phases with explicit exit criteria.

The 10 Phases

UNDERSTAND          DESIGN              BUILD               LEARN
───────────────     ───────────────     ───────────────     ───────────
0. ORIENT           2. PLAN             6. TASKS            9. REFLECT
1. SPAR             3. REFINE           7. BUILD
                    4. SPEC             8. VERIFY
                    5. GAP ANALYSIS

Phase Overview

#PhaseSkillWhat HappensOutput
0ORIENT5d-orientMap domains, surface assumptionsOrientation Summary
1SPAR5d-sparChallenge thinking, find blind spotsSPAR Summary
2PLAN5d-planCrystallize into concrete planPLAN.md
3REFINE5d-refineStress-test, probe edge casesRefinement Summary
4SPEC5d-specFormalize technical specificationSPEC.md
5GAP5d-gap-analysisIdentify all required changesGap Analysis
6TASKS5d-tasksSequence into executable tasksTask List
7BUILD5d-buildImplement with spec fidelityWorking code
8VERIFY5d-verifyMulti-layer verificationVerification Report
9REFLECT5d-reflectExtract learningRetrospective

How to Use

Full Workflow

For new features or projects, run phases sequentially:

/5d-orient → /5d-spar → /5d-plan → /5d-refine → /5d-spec → /5d-gap-analysis → /5d-tasks → /5d-build → /5d-verify → /5d-reflect

Each phase has exit criteria. Don't proceed until criteria are met.

Partial Workflows

Use individual phases when appropriate:

ScenarioStart At
"I have an idea, let's explore it"ORIENT
"I know what I want, challenge my thinking"SPAR
"We've discussed enough, write the plan"PLAN
"Review this plan for issues"REFINE
"Turn this plan into a technical spec"SPEC
"What do we need to change?"GAP ANALYSIS
"Break this into tasks"TASKS
"Implement this task"BUILD
"Check if this is working"VERIFY
"What did we learn?"REFLECT

Failure Routing

When something fails, return to the appropriate phase:

Failure TypeReturn To
Code doesn't runBUILD
Works but wrong outputBUILD or SPEC
Works but users confusedPLAN
Solves wrong problemSPAR or ORIENT
Keeps failing despite fixesEarlier phase (assumptions wrong)

Key Principles

1. No Commitment Without Understanding

Each phase deepens understanding before the next commitment:

  • ORIENT → understand the space
  • SPAR → understand objections
  • PLAN → commit to direction
  • REFINE → understand risks
  • SPEC → commit to implementation
  • BUILD → commit to code

2. Multi-Perspective Thinking

Every phase checks multiple quadrants:

QuadrantFocus
Individual OuterWhat artifacts exist?
Individual InnerWhat understanding is needed?
Collective OuterWhat systems/constraints exist?
Collective InnerWhat alignment is needed?

3. Explicit Over Implicit

  • Document assumptions, don't hide them
  • Document alternatives considered
  • Document what's explicitly out of scope
  • Make bets visible

4. Fail Fast, Route Correctly

  • Do risky/unknown work early
  • When something fails, identify which layer
  • Return to the right phase, don't patch at the wrong level

5. Identity Trap Awareness

Why thinking stops: Latching onto ideas as identity. When identity is threatened, the mind defends rather than explores.

Signs of the trap:

  • Dismissing objections without examination
  • Adding complexity to protect core assumptions
  • "That won't happen" without evidence
  • Rushing past uncomfortable phases

Counteract by:

  • Notice when you feel defensive—probe there
  • Hold positions lightly
  • Ask: "What would make me wrong?"

Quick Reference

Starting a New Feature

  1. User describes what they want
  2. Run ORIENT to map the space
  3. Run SPAR to challenge assumptions
  4. Run PLAN to crystallize direction
  5. Run REFINE to stress-test
  6. Run SPEC to formalize
  7. Run GAP ANALYSIS to scope work
  8. Run TASKS to sequence
  9. Run BUILD for each task
  10. Run VERIFY when batch complete
  11. Run REFLECT at iteration end

Documents Produced

  • PLAN.md - What we're building and why
  • SPEC.md - How we're building it technically
  • Task list - Sequenced implementation steps
  • Verification report - What passed/failed
  • Retrospective - What we learned

When to Skip Phases

  • Trivial changes: Skip to BUILD
  • Already planned: Start at SPEC or GAP ANALYSIS
  • Bug fixes: Start at BUILD, but VERIFY thoroughly
  • Exploratory work: ORIENT and SPAR only

Never skip VERIFY. Always close the loop.

Skills Info
Original Name:5d-sddAuthor:tapania