Build high-quality software by making specifications the primary, executable artifact of your development lifecycle. Inspired by the Spec Kit methodology, this plugin transforms Visual Studio Code into a guided SDD pipeline where AI agents handle requirements, planning, and implementation with strict architectural discipline.
The SDD Agent Plugin is a comprehensive orchestration framework that replaces "vibe coding" with a structured, step-by-step process. By using a single lead orchestrator (@sdd) and a team of internal expert subagents, it ensures that every line of code is anchored to a verified functional requirement.
- Key Highlights
- The SDD Lifecycle
- The Expert Subagents
- Practical Examples
- Handling UI Designs & Mockups
- Token Economy & Cost Optimization
- Installation
- Orchestrated Workflow: Interact only with the lead agent
@sdd. It delegates tasks to specialized subagents (Product Manager, Architect, QA, Implementer) that are hidden from the main menu to reduce clutter. - Vision-Powered Specs: Drag and drop UI mockups directly into the chat. The agents analyze visual layouts to extract precise acceptance criteria.
- Safety & Quality Gates: Built-in loops for requirements clarification, BDD test scenario generation, and a final "Convergence" check to ensure implementation matches intent 100%.
The plugin guides you through a sequential flow using Native Handoffs. You simply follow the buttons provided by the agents:
- Constitution: Define the "immutable" tech stack and architectural rules.
- Specify: Define the "What" and "Why" (User Stories & Acceptance Criteria).
- Clarify: Identify and resolve ambiguities before any planning starts.
- Wireflow: Visualize navigation and UI states.
- Plan: Design the technical architecture and database schemas.
- Checklist: Generate a "Definition of Done" for the requirements.
- QA Scenarios: Translate requirements into BDD/Gherkin test cases.
- Tasks: Break the plan into a sequential, TDD-focused task list.
- Implement: Autonomous code generation with terminal execution and file editing.
- Converge: The ultimate audit. Compares code against specs and generates fix-up tasks for any gaps.
These specialized agents are orchestrated by @sdd to handle specific domains of the lifecycle:
- 📜
sdd.constitution: Establishes immutable architectural rules and tech stack principles in.sdd/constitutions/. - 🎯
sdd.specify: Defines the "What" and "Why" (User Stories & Acceptance Criteria) in.sdd/specs/. - 🔍
sdd.clarify: Acts as a Senior BA to quiz the user on edge cases and resolve ambiguities before planning. - 🎨
sdd.wireflow: Visualizes navigation and UI states using Mermaid.js diagrams in.sdd/wireflows/.
- 📐
sdd.plan: Designs the technical blueprint, database schemas, and component architecture in.sdd/plans/. - ✅
sdd.checklist: Generates quality checklists ("unit tests for English") to validate requirement completeness. - 🧪
sdd.qa-scenarios: Translates functional requirements into structured BDD/Gherkin test scenarios in.sdd/qa-scenarios/.
- 📋
sdd.tasks: Breaks the technical plan into a sequential, TDD-focused task list in.sdd/tasks/. - 📤
sdd.taskstoissues: Synchronizes generated tasks directly to your GitHub repository as issues using MCP tools. - ⚖️
sdd.analyze: Runs a cross-artifact audit to ensure specs, plans, and tasks are perfectly aligned before coding starts.
- ⚙️
sdd.implement: Executes tasks autonomously using terminal and file tools. - 🏁
sdd.converge: The ultimate safety net. Compares the final codebase against the spec/plan and generates fix-up tasks for any gaps.
- Step 1:
@sdd Let's start a new project. Stack: Next.js, TypeScript, Tailwind. - Step 2: Drag your UI sketch into chat:
@sdd Specify this "Photo Gallery" feature using the attached image. - Step 3: Follow the Handoff Buttons through Planning, QA, and Implementation.
- Step 4: Run the Convergence Check to ensure the AI didn't miss specific logic like image size limits.
- Step 1:
@sdd Analyze my #codebase and create a constitution based on our existing patterns. - Step 2: Provide context:
@sdd Specify a new "Comment System" for our Kanban board. See #file:src/db/schema.prisma for reference. - Step 3: The
sdd.planagent will specifically look at your current files to avoid duplicating code.
When building frontend features, Spec-Driven Development works best with a hybrid approach combining file-based documentation and VS Code's native Vision capabilities:
- Document (The SDD Way): Save your UI mockups or screenshots in a dedicated directory, such as
.sdd/ui/0001-feature-name-ui.png. This keeps visual assets version-controlled and tied to your feature specification. - Reference: Link the image inside your Markdown specification or wireflow files (e.g.,
). - Attach in Chat (Vision): LLMs cannot automatically "see" local images just by reading a file path. When you invoke
@sdd.specifyto write user stories, or@sdd.implementto write code, drag and drop the image directly into the VS Code chat box. This leverages the Vision feature, allowing the agent to analyze the layout, colors, and structure instantly while recording the reference in your SDD artifacts.
To maximize the efficiency of your AI credits, follow these strategic guidelines:
- Context Isolation: Perform planning and implementation in separate chat sessions to prevent "context dumping" that confuses the AI.
- Precise Targeting: Use specific file references (
#file) instead of global codebase scans (#codebase) whenever possible. - Prompt Caching: Agent instructions are placed at the top of the files to increase "cache hit" rates in VS Code, reducing latency and cost.
- Phased Implementation: For large features, implement in small increments (e.g., Database first, then Logic, then UI). This keeps prompts short and accurate.
- Open the Command Palette (Ctrl+Shift+P).
- Run
Chat: Install Plugin From Source. - Enter the URL of this repository.
- Type
@sddin the Chat View to begin.
Note: Make sure the
chat.plugins.enabledsetting is set totruein your VS Code, as this is a Preview feature.
Inspired by Spec Kit. Build intent, not just code.