Sdd

From WrongStack/WrongStack · View interactive version

Sdd is an AI agent skill from the GitHub repository WrongStack/WrongStack. Spec-driven development and /sdd: written specs, acceptance criteria and task graphs before a non-trivial implementation. Use this skill when the user wants a written spec, acceptance criteria, or a task graph before a non-trivial implementation, or runs the WrongStack /sdd workflow. Triggers: user

How to use this skill

Skill file

Spec-Driven Development — WrongStack

Selection card

Overview

For an SDD task, start with a spec proportionate to its scope. The spec is the source of truth — it defines what to build, how to verify it, and what counts as done. SDD uses /sdd slash commands to create specs, generate task graphs, and track execution.

Rules

  1. Use SDD for requested specifications or tasks that benefit from explicit acceptance and dependency tracking.
  2. Spec must have acceptance criteria — without them, you can't know when it's done.
  3. Record real dependencies between tasks, and only real ones — unchained tasks are the ones that can run in parallel.
  4. Spec must be specific: "Users authenticate via OAuth2 with PKCE" not "improve auth".
  5. For urgent work, keep acceptance and recovery explicit without forcing unnecessary ceremony.
  6. When the spec reveals a refactor, apply the refactor-planner skill to sequence it.

When to use

The SDD workflow

1. /sdd new [title]          → Build spec from questions
2. /sdd tasks <id>           → Generate task graph from spec
3. /sdd graph <id>           → Visualize dependencies
4. /sdd critical <id>        → Find bottlenecks
5. /sdd execute <id>         → Run tasks (or execute manually)

Task lifecycle commands

| Command | What it does |

|---------|--------------|

| /sdd tasks | Show task list with progress bar (sorted: in_progress → pending → review → blocked → failed → completed) |

| /sdd next | Show next executable task + blockers |

| /sdd done <N> | Complete a task (by number or fuzzy title match) |

| /sdd skip <N> | Skip a task back to pending |

| /sdd fail <N> | Mark a task as failed |

| /sdd review <N> | Send a task to review |

| /sdd edit <N> <text> | Edit task title (short text) or description (long text) |

| /sdd undo | Undo last task completion |

| /sdd graph | ASCII task dependency visualization |

| /sdd critical | Critical path analysis + bottlenecks |

Spec templates

| Template | Best for |

|---|---|

| feature | New feature development |

| bugfix | Bug fix with root cause analysis |

| refactor | Code refactoring with goals |

| infra | Infrastructure/tooling changes |

| integration | External service integration |

| cli-command | New CLI commands/slash commands |

Spec structure

A complete spec has:

  1. Overview — What problem does this solve?
  2. Requirements — [priority] description format
  3. Architecture — High-level design (if needed)
  4. API Design — Endpoints, inputs, outputs (if applicable)
  5. Acceptance Criteria — How do we know it's done?

Requirement format

[critical] Users can authenticate with OAuth2
[high] Rate limiting: 100 req/min per user  
[medium] Response time < 200ms p95
[low] Support dark mode

Task graph generation

Each requirement generates one or more tasks. Tasks have states:

pending → in_progress → review → completed
              ↓
           blocked (waiting on dependencies)
              ↓
           failed

Critical path

The critical path finds:

Goal & Eternal Mode

/sdd pairs with /goal for autonomous execution:

| Command | What it does |

|---------|--------------|

| /goal set <text> | Set an autonomous mission |

| /goal pause | Pause at end of current iteration |

| /goal resume | Resume a paused goal |

| /goal journal [N] | Show recent journal entries |

| /goal clear | Clear goal and stop eternal mode |

| /autonomy eternal | Run goal loop indefinitely |

| /autonomy stop | Stop eternal mode |

Eternal stage flow: decide → execute → reflect → sleep | paused | stopped

Stage shown in real-time. Pause stops after current iteration completes.

Boundaries

Use explicit acceptance for SDD work. Avoid invented dependencies, vague

requirements and implicit goals/schedules. Planning-only work returns the spec;

an implementation request continues into the authorized execution and checks.

Before returning

Proportional scope and execution

Use a written spec when the task needs it or the user requested the SDD workflow.

A small concrete fix can proceed directly; do not open a planning ceremony solely

to satisfy this skill. Separate planning-only requests from implementation:

when execution is already authorized, continue through the task graph and verify.

Record acceptance behavior, environment boundaries and requirement-to-evidence

links. Commands are valuable checks but not every product criterion is a command.

Do not start goals, eternal mode or scheduled work without the required authorization.

Skills in scope

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.