sdd-workflow

Orchestrates spec-driven development from task to contract to gated mini-feature implementation.

3|Updated May 2, 2026
One-click install
npx skills add https://github.com/JuanTrujilloDev/agent-config-template --skill sdd-workflow-juantrujillodev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sdd-workflow
Source: https://github.com/JuanTrujilloDev/agent-config-template/tree/main/plugin/skills/sdd-workflow
Command: npx skills add https://github.com/JuanTrujilloDev/agent-config-template --skill sdd-workflow-juantrujillodev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It prevents ambiguous requirements from becoming wasted code by forcing a task through a conversed spec, a human-approved Given/When/Then contract, and one mini-feature at a time, with project state persisted on disk so work survives restarts. ## Core Features & Use Cases - Contract-first pipeline: PMO role converses, distills a contract.md with Given/When/Then scenarios traced to FR-### requirements and SC-### success criteria, then scopes mini-features in features.json before any code is written. - Two human gates: Gate 1 always blocks implementation until the contract is approved; Gate 2 (TDD only) requires approving failing tests before production code. - Bounded review loop: Judge and security-reviewer return exact APPROVED or CHANGES REQUESTED verdicts, with a maximum of 2 fix/re-review cycles before escalation to the human. - Use Case: A developer types "/spec add CSV export to the holdings list", approves the generated contract, then runs "/feature" to implement each mini-feature with judge review and micro-commits. ## Quick Start Ask the assistant to run the /spec command with a feature description, review the generated contract, approve it, then run /feature to implement the first mini-feature.

Frequently Asked Questions about sdd-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start a new feature with spec-driven development?▼

Run /spec with a task description to converse and produce spec.md and contract.md, approve the contract at Gate 1, then run /feature to implement one mini-feature at a time. Each mini-feature goes through implementation, judge review, and a micro-commit.

What is the difference between /spec, /feature, and /fix?▼

/spec converses and writes the contract then stops for approval, /feature implements one ready mini-feature at a time from an approved contract, and /fix is the escape hatch for small changes with an obvious cause that skips the spec and contract entirely.

When should I not use the SDD workflow?▼

Skip it for small scoped changes with an obvious cause and use /fix instead, which applies only the typed branch and the full Definition of Done. The full pipeline is designed for multi-step features where requirement ambiguity is costly.

How does TDD work in this workflow?▼

TDD is opt-in per mini-feature. When enabled, the implementer writes failing tests first and stops at Gate 2 for human approval before any production code, logging a Red-Green-Refactor cycle with a scenario-to-test map.

What happens if a reviewer keeps requesting changes?▼

Review is bounded to a maximum of 2 fix/re-review cycles. If a reviewer still requests changes after cycle 2, the mini-feature is marked blocked and a review-escalation file is written so the human decides, rather than the system choosing a side.

Does the workflow survive context resets or restarts?▼

Yes. All state lives on disk under docs/specs/<slug>/ including spec.md, contract.md, features.json, and progress logs. Subagents write outputs to files and return only one-line references, so nothing depends on chat history.