SkillAgentSearch skills...

spec-driven-workflow

Lightweight markdown-based workflow for collaborating with AI coding assistants using spec-driven development methodology

Install / Use

npx skills add liatrio-labs/spec-driven-workflow

Installs into whichever agent you are using.

About this skill
📦

Other

Other agent config

Quality Score

88/100

Category

Automation

Supported Platforms

Claude Code
Cursor
Windsurf
<div align="center"> <img src="./misc/sdd-workflow-hero.png" alt="Spec-Driven Development workflow from idea to verified delivery" width="900"/> <h1>🧭 Spec-Driven Development Workflow</h1> <h3><em>Build predictable software with a repeatable AI-guided workflow.</em></h3> </div> <p align="center"> <strong>A skill-first spec-driven development workflow for collaborating with AI agents to deliver reliable outcomes.</strong> </p> <p align="center"> <a href="https://github.com/liatrio-labs/spec-driven-workflow/actions/workflows/ci.yml"><img src="https://github.com/liatrio-labs/spec-driven-workflow/actions/workflows/ci.yml/badge.svg" alt="CI Status"/></a> <a href="https://github.com/liatrio-labs/spec-driven-workflow/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License"/></a> <a href="https://github.com/liatrio-labs/spec-driven-workflow/stargazers"><img src="https://img.shields.io/github/stars/liatrio-labs/spec-driven-workflow?style=social" alt="GitHub stars"/></a> </p>

[!IMPORTANT] SDD is now skill-first. If you previously installed SDD as separate /SDD-* slash-command prompts, migrate to the recommended sdd skill so your agent can route through the right workflow phase from repository state. Start with the migration guide, or update an existing skill install with npx skills update sdd --yes.

Overview

This repository provides a primary agent skill plus structured prompt files that guide AI assistants through a complete software development workflow:

  • Define intent: generate a reviewed spec with clear demo criteria
  • Plan: break work into demoable tasks and subtasks, then run a planning audit gate
  • Execute: implement with checkpoints and proof artifacts
  • Validate: verify implementation against the spec with evidence

Think of the skill and the prompt files that power it as reusable playbooks that keep AI agents focused and consistent across long conversations.

Table of Contents

TLDR / Quickstart

Installation options

Option A: Install as Agent Skill (Recommended)

Install skill/ when your AI assistant supports skill folders or skill-native workflows. This is the primary recommended path because the single sdd skill can reassess repository state, load the right phase reference, and continue from persisted artifacts without making users remember four separate phase commands.

Install the SDD skill using the skills.sh CLI:

# List available skills in this repository without installing
npx skills add liatrio-labs/spec-driven-workflow --list

# Install the SDD skill
npx skills add liatrio-labs/spec-driven-workflow --skill sdd

# Install the SDD skill non-interactively
npx skills add liatrio-labs/spec-driven-workflow --skill sdd --yes

# Install to specific agents
npx skills add liatrio-labs/spec-driven-workflow --skill sdd -a cursor -a codex

# Install globally instead of project scope
npx skills add liatrio-labs/spec-driven-workflow --skill sdd --global

# Update an existing SDD skill install
npx skills update sdd --yes
<img max-width="500" alt="Example of the single SDD skill installed in Claude Code" src="docs/assets/images/claude-example-single-skill.png" />

The SDD skill is explicit-invocation only: users should intentionally invoke it through their agent harness, such as /sdd or $sdd. It is not designed to be dynamically loaded or automatically triggered by the agent. Once explicitly invoked, the skill router reassesses the workspace, loads the correct SDD phase reference, and continues from persisted artifacts in docs/specs/.

Compatibility notes:

  • Agent support for skills and allowed tools varies by agent harness.
  • Use DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 to opt out of telemetry when running the skills.sh CLI.

Option B: Install as Slash Commands

Use prompts/ as slash commands when your assistant does not support skills or when your team specifically wants separate phase commands. Install these prompts as native /slash-commands in your AI assistant (Cursor, Windsurf, Claude Code, etc.) using the slash-command-manager utility:

Prerequisite: uvx comes from uv. Ensure it is installed first:

  • (Mac & Linux): brew install uv
  • (Windows): winget install astral-sh.uv
Install SDD w/ Bash (Mac)
uvx --from git+https://github.com/liatrio-labs/slash-command-manager \
  slash-man generate \
  --github-repo liatrio-labs/spec-driven-workflow \
  --github-branch main \
  --github-path prompts/
Install SDD w/ PowerShell (Windows)
uvx --from git+https://github.com/liatrio-labs/slash-command-manager `
  slash-man generate `
  --github-repo liatrio-labs/spec-driven-workflow `
  --github-branch main `
  --github-path prompts/

What this command does:

  • uvx runs a Python tool without installing it globally (like npx for Python)
  • Fetches the slash-command-manager tool from GitHub
  • Auto-detects your installed AI assistants from the list of supported tools
  • Downloads the prompt files for each supported tool from the prompts/ directory
  • Installs them as slash commands for each supported tool

Result: you can now type /SDD-1-generate-spec in your AI assistant to start the prompt-command workflow.

Where to use the slash commands: in AI chat UIs (e.g., Windsurf, Claude Code) type / in the chat input. Some AI assistants require being in "Agent" or "Code" mode for slash commands to appear.

<img max-width="500" alt="Example of separate slash commands installed in Claude Code" src="docs/assets/images/claude-example-separate-prompts.png" />

Option C: Manual Copy-Paste (No Installation)

Copy the contents of a prompt file directly from prompts/ and paste it into your AI chat. The AI will follow the structured instructions in the prompt.

Migrating from prompt-based installs

If you previously installed SDD as separate /SDD-* slash-command prompts, migrate to the recommended sdd skill when your agent supports skills. Existing project artifacts in docs/specs/ do not need to be converted; the skill reads the same artifact structure and routes to the right phase from repository state.

See MIGRATION.md for step-by-step migration, update, and cleanup instructions.

Quick "try it" flow

For the recommended skill install, explicitly invoke the skill via your agent harness, usually /sdd. In Codex, use $sdd. You can supply a feature/idea/task along with the invocation, or invoke the skill without extra detail and let its internal router detect the appropriate SDD phase from persisted artifacts. Here are some example invocations:

  • /sdd review issue #123 and start creating a spec for it
  • /sdd generate tasks for the latest spec
  • /sdd run a validation for the latest spec

Or just invoke the skill with /sdd and let the skill guide you through the appropriate phase based on the repo context.

For slash-command installs, invoke each step individually:

  1. Run /SDD-1-generate-spec and describe the feature you want. If the AI determines material clarification is needed, answer the generated questions file before continuing.
  2. Next, use /SDD-2-generate-task-list-from-spec pointing it at the generated spec; complete task generation, baseline planning commit, planning audit, and user-approved remediation if needed.
  3. Then execute /SDD-3-manage-tasks to implement tasks one at a time (creating proof artifacts before commits) after the SDD-2 audit required gates pass.
  4. Finally, apply /SDD-4-validate-spec-implementation to verify the implementation against the spec.

Details for the 4-step workflow

Each phase is available through the recommended sdd skill router and, for slash-command installs, through an equivalent prompt file. The workflow produces specific artifacts in docs/specs/.

  1. Generate a spec (prompts/SDD-1-generate-spec.md)

    • What it does: checks scope, researches current best practices for relevant technologies, determines whether clarification is needed, optionally creates a questions file for material ambiguities with recommended answers and justification notes, and writes a junior-friendly spec with demo criteria
    • Output: docs/specs/[NN]-spec-[feature-name]/[NN]-spec-[feature-name].md and, when needed, docs/specs/[NN]-spec-[feature-name]/[NN]-questions-[N]-[feature-name].md
    • Why: aligns humans + AI on what to build before any code changes
  2. Generate a task list (prompts/SDD-2-generate-task-list-from-spec.md)

    • What it does: converts the spec into parent tasks (demoable units) + detailed subtasks, creates a baseline planning commit, runs a planning audit gate, and requires user-approved remediation before implementation handoff
    • Output: docs/specs/[NN]-spec-[feature-name]/[NN]-tasks-[feature-name].md and docs/specs/[NN]-spec-[feature-name]/[NN]-audit-[feature-name].md
    • Why: catches planning defects early and improves downstream validation readiness
  3. Manage tasks (implementation loop) (prompts/SDD-3-manage-tasks.md)

    • What it does: guides execution with checkpoints, verification checklists, and proof artifacts created before each commit
    • Output: docs/specs/[NN]-spec-[feature-name]/[NN]-proofs/[NN]-task-[TT]-proofs.md
    • Why: keeps work single-threaded, demoable, and evidence-driven
  4. Validate implementation (prompts/SDD-4-validate-spec-implementation.md)

    • What it does: validates implementation vs spec using proof artifacts, applies validation gates, produces a coverage matrix
    • Output: validation report (markdown) showing verified/missing items
    • Why: confirms completeness before shipping
  5. SHIP IT 🚢💨

Highlights

  • Skill-first workflow: Use the sdd skill to route from idea → spec → task list → implementation-ready backlog, with prompt files available for assistants that need slash/custom prompts.
  • Planning quality gate: SDD-2 includes a mandatory audit with human-approved remediation before implementation starts.
  • Predictable delivery: Every step emphasizes demoable slices, proof artifacts, and collaboration with junior developers in mind.
  • Flexible install paths: Install the skill for skill-native agents first; use prompt files when slash/custom prompt support is the better fit.
  • Context verification: Built-in emoji markers (SDD1️⃣-SDD4️⃣) detect when AI responses follow critical instructions, helping identify context rot issues early.

Why Spec-Driven Development?

Spec-Driven Development (SDD) keeps AI collaborators and human developers aligned around a shared source of truth. This repository provides a lightweight, skill-first workflow that turns an idea into a reviewed specification, an actionable plan, and a disciplined execution loop. By centering on markdown artifacts instead of heavy platform tooling, the workflow travels with you—across projects, models, and collaboration environments.

Guiding Principles

  • Clarify intent before delivery: The spec prompt requires a clarification su

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars94
CategoryAutomation
Updated11d ago
Forks10

Languages

Python

Security Score

100/100

Audited on Sep 10, 2026

No findings