luanmorenommaciel/agentspec/sdd-design
Claude Code and agent skill by luanmorenommaciel/agentspec
- community
Checking that the SKILL.md file is still in the repository.
Create the architecture and technical specification for a defined feature — Phase 2 of the SDD workflow. Transforms a validated DEFINE document into a DESIGN document: architecture diagram, components, inline architecture decision records, an agent-matched file manifest, KB-grounded code patterns, and a testing strategy — then updates the DEFINE status and hands off to /build. Use when requirements are captured and technical design is needed — "design the architecture", "technical design", "Pha…
Install
npx vskill@latest install luanmorenommaciel/agentspec/sdd-designSKILL.md
SDD Design — Architecture and Technical Specification (Phase 2)
Transform a validated DEFINE document into a comprehensive DESIGN document: system architecture with diagrams, key decisions with rationale (inline ADRs), an agent-matched file manifest, KB-grounded code patterns, and a testing strategy.
This skill owns the Phase 2 methodology. The design-agent is the executor (identity, tools, boundaries); the /design command is the entrypoint (argument surface and command-only flags). Contract-grade facts — inputs, outputs, status transitions — are canonical in ${CLAUDE_PLUGIN_ROOT}/sdd/architecture/WORKFLOW_CONTRACTS.yaml.
Inputs and Outputs
| Contract | Value | |
|---|---|---|
| Input | .claude/sdd/features/DEFINE_{FEATURE}.md — required sections: problem statement, success criteria, acceptance tests | |
| Output | .claude/sdd/features/DESIGN_{FEATURE}.md | |
| Artifact shape | ${CLAUDE_PLUGIN_ROOT}/sdd/templates/DESIGN_TEMPLATE.md — the authoritative section structure; follow it, do not invent sections | |
| DESIGN status values | Draft → In Progress → Ready for Build (later phases advance it to ✅ Complete (Built), then ✅ Shipped) | |
| On completion | DEFINE status → ✅ Complete (Designed) and hand off to /build (Step 7) |
No DEFINE, no design. If requirements are missing or incomplete, stop and route to sdd-define first.
Knowledge Architecture
KB-FIRST RESOLUTION IS MANDATORY, NOT OPTIONAL.
Design Confidence Matrix
| KB Patterns | Agent Match | Confidence | Action | |
|---|---|---|---|---|
| Found | Found | 0.95 | Full design with KB patterns | |
| Found | Not found | 0.85 | Design with KB, general agent | |
| Not found | Found | 0.80 | Design, validate patterns with MCP | |
| Not found | Not found | 0.70 | Research before design |
Process
Step 1: Load Context
Then load KB patterns from the domains named in the DEFINE (resolution order above) and assign a confidence score from the matrix. Validate novel patterns via MCP before relying on them; at 0.70, research before designing.
Step 2: Create Architecture
Design the solution:
| Component | Content | |
|---|---|---|
| Overview | ASCII diagram of the system | |
| Components | Modules/services with purpose and technology | |
| Data Flow | How data moves through the system | |
| Integration Points | External dependencies |
Step 3: Document Decisions (Inline ADRs)
For each significant choice:
At least one decision must carry full rationale. Decisions are permanent — record the "why", not just the "what".
Step 4: Create the File Manifest (Agent Matching)
Discover specialists, then list every file the build will create or modify:
- Glob
${CLAUDE_PLUGIN_ROOT}/agents/**/*.mdto discover available agents - Extract role, capabilities, and keywords from each
- Match files to agents:
| Match Criteria | Weight | Example | |
|---|---|---|---|
| File type | High | .tf → infrastructure agent | |
| Purpose keywords | High | "parsing" → domain specialist | |
| Path patterns | Medium | src/ → core developer | |
| KB domain | Medium | {domain} KB → matching specialist | |
| Fallback | Low | Any .py → general purpose |
| # | File | Action | Purpose | Agent | Dependencies | |
|---|---|---|---|---|---|---|
| 1 | main.py | Create | Entry point | @{specialist-agent} | None | |
| 2 | config.yaml | Create | Configuration | (general) | None | |
| 3 | handler.py | Create | Request handler | @{specialist-agent} | 1, 2 |
Every file gets an agent or an explicit (general) fallback. Record the reasoning in the template's Agent Assignment Rationale section.
Step 5: Define Code Patterns
- Load patterns from the KB domains
- Adapt to the project's existing conventions (grep the codebase)
- Provide copy-paste ready snippets for each key pattern
Step 6: Plan the Testing Strategy
| Test Type | Scope | Tools | |
|---|---|---|---|
| Unit | Functions | pytest | |
| Integration | API | pytest + requests | |
| E2E | Full flow | Manual/automated |
The strategy must cover every acceptance test in the DEFINE.
Step 7: Save, Update Statuses, Hand Off
- Run the quality gate below, then write
.claude/sdd/features/DESIGN_{FEATURE_NAME}.mdfollowing the template. - Update the DEFINE document — mandatory. Per the status transitions in
WORKFLOW_CONTRACTS.yaml, when the design phase completes:
| File | Field | Value | |
|---|---|---|---|
DEFINE_{FEATURE}.md | Status | ✅ Complete (Designed) | |
DEFINE_{FEATURE}.md | Next Step | /build |
Skipping this leaves a stale "Ready for Design" status behind.
- Hand off: suggest
/build .claude/sdd/features/DESIGN_{FEATURE_NAME}.mdas the next step.
Pipeline Architecture (Data Engineering Context)
When the DEFINE contains data engineering context — sources, volumes, freshness SLAs, schema contracts — the DESIGN must also include pipeline-specific sections:
- Detect the DE context in the DEFINE
- Load KB patterns from the
airflow,streaming,data-modeling, anddbtdomains - Fill the template's "Pipeline Architecture (if applicable)" sections: DAG diagram, partition strategy, incremental strategy, schema evolution plan, data quality gates
The section shapes (tables and diagram formats) are defined in DESIGN_TEMPLATE.md — follow them, do not invent variants.
Quality Gate
Every item must pass before the phase is declared complete:
Contract Gate
Before handing off to /build, validate the document just written against this phase's contract — artifact DESIGN_{FEATURE_NAME}.md, phase design:
Run it as ${CLAUDE_PLUGIN_ROOT}/tools/spec-linter/USAGE.md documents, and act on the verdict exactly as defined there. The exit-code contract and verdict semantics are owned by that document and by the contract_enforcement block (exit_code_contract, verdict_semantics) of ${CLAUDE_PLUGIN_ROOT}/sdd/architecture/WORKFLOW_CONTRACTS.yaml — which is also where this phase's binding is declared. Read them there rather than assuming: a contract assigns the severity of its own rules, so never reinterpret a verdict, and never assume one the linter did not return.
Anti-Patterns
| Never Do | Why | Instead | |
|---|---|---|---|
| Skip KB pattern loading | Inconsistent code | Always load KB first | |
| Hardcode config values | Hard to change | Use YAML config files | |
| Shared code across deployable units | Breaks deployments | Self-contained units | |
| Circular dependencies | A depends on B depends on A | Layer the architecture, break the cycle | |
| Skip agent matching | Lose specialization | Always match agents | |
| Skip the testing strategy | Build has nothing to verify against | Plan tests for every requirement | |
| Design without DEFINE | No requirements | Require DEFINE first |
Design Principles
| Principle | Application | |
|---|---|---|
| Diagram First | ASCII art clarifies thinking before prose | |
| Self-Contained | Each function/service works independently | |
| Config Over Code | Use YAML for tunables | |
| KB Patterns | Use project KB patterns, not generic | |
| Agent Specialization | Match specialists to files | |
| Testable | Every component can be unit tested | |
| Decisions Are Permanent | Document the "why", not just the "what" |
Remember
"Design from patterns, not from scratch. Match specialists to tasks."
Mission: Transform validated requirements into comprehensive technical designs with KB-grounded patterns and agent-matched file manifests.
Core Principle: KB first. Confidence always. Ask when uncertain.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/sdd-design/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/luanmorenommaciel/agentspec/sdd-design)