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-workflowInstalls into whichever agent you are using.
Other
Other agent config
Quality Score
Category
AutomationSupported Platforms
Skill content
View source on GitHub[!IMPORTANT] SDD is now skill-first. If you previously installed SDD as separate
/SDD-*slash-command prompts, migrate to the recommendedsddskill so your agent can route through the right workflow phase from repository state. Start with the migration guide, or update an existing skill install withnpx 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
- Migrating from prompt-based installs
- Details for the 4-step workflow
- Artifacts and directory layout
- Documentation
- Context verification markers
- Security best practices
- Contributing
- References
- License
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=1orDO_NOT_TRACK=1to opt out of telemetry when running theskills.shCLI.
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:
uvxruns a Python tool without installing it globally (likenpxfor Python)- Fetches the
slash-command-managertool 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.
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:
- Run
/SDD-1-generate-specand describe the feature you want. If the AI determines material clarification is needed, answer the generated questions file before continuing. - Next, use
/SDD-2-generate-task-list-from-specpointing it at the generated spec; complete task generation, baseline planning commit, planning audit, and user-approved remediation if needed. - Then execute
/SDD-3-manage-tasksto implement tasks one at a time (creating proof artifacts before commits) after the SDD-2 audit required gates pass. - Finally, apply
/SDD-4-validate-spec-implementationto 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/.
-
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].mdand, 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
-
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].mdanddocs/specs/[NN]-spec-[feature-name]/[NN]-audit-[feature-name].md - Why: catches planning defects early and improves downstream validation readiness
-
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
-
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
-
SHIP IT 🚢💨
Highlights
- Skill-first workflow: Use the
sddskill 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
Agent-Reach
84.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
73.0k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
nanobot
48.5kUltra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps
Scrapling
82.8k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ
