
Sdd Design
- 48 installs
- 1 repo stars
- Updated July 19, 2026
- fearovex/claude-config
sdd-design is an agent skill that produces technical design—architecture, data flow, and a file change plan—for a named SDD change.
About
sdd-design is a procedural agent skill in the SDD (spec-driven development) chain. Solo builders invoke it after a change proposal exists and before writing code, so the agent documents how the system will satisfy the specs: technical choices, data movement, and which files will change. It explicitly loads project context and preloads spec context using shared SDD phase guidance, then retrieves the proposal artifact for the named change. The output is the design artifact that implementation skills can follow, reducing rework from ambiguous requirements. It pairs with orchestrated sub-agents and project-local SKILL.md overrides over global catalog paths. Use when you need change architecture, a technical design memo, or a structured handoff from product intent to build tasks—not when you only need a quick bugfix without a named change.
- Bridges proposal artifacts to implementation with architecture decisions and justification
- Produces data-flow documentation and a file-level change plan
- Reads prior SDD proposal via memory search before designing
- Follows shared SDD phase preload (project context + spec context)
- Triggered by /sdd-design <change-name> and design-or-architecture intents
Sdd Design by the numbers
- 48 all-time installs (skills.sh)
- Ranked #1,641 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 24, 2026 (Skillselion catalog sync)
npx skills add https://github.com/fearovex/claude-config --skill sdd-designAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 48 |
|---|---|
| repo stars | ★ 1 |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 19, 2026 |
| Repository | fearovex/claude-config ↗ |
What it does
Turn an approved change proposal into a technical design—architecture, data flow, and a concrete file change plan—before implementation starts.
Who is it for?
Named feature or refactor tracks where you already ran SDD proposal and need a design gate before coding.
Skip if: One-off edits with no proposal artifact, or teams that skip written design and want the agent to code immediately.
When should I use this skill?
/sdd-design <change-name>, technical design, change architecture, how to implement, or sdd design
What you get
You get a technical design artifact that justifies decisions and lists file-level changes, ready for implementation or downstream SDD coding skills in the same change folder.
- Technical design artifact with architecture decisions
- Data flow documentation
- File change plan for the named change
By the numbers
- SDD skill resolution uses a 2-tier path order (project-local then global catalog)
- Shared SDD phase steps include Project Context Load and Spec Context Preload
Files
<!-- MEMORY-CONTRACT v1 -->
Memory contract. This command persists across sessions through engram
(registered as an MCP server in this tool). Use this tool's own engram memory
tools to honor the rules below — do not assume any other persistence layer.
>
- Recall before acting: on a continuation keyword ("listo", "dale",
"ready", "where did we leave off"), first search engram for prior work on
this change before starting fresh; summarize what you found, then continue.
- Validate after saving: after any save, search engram back for the key or
a unique phrase — a "saved" tool response is NOT proof. Retry once; if it
still fails, tell the user the save failed. Never report "saved" on the tool
response alone.
- Summarize at close: before ending, write a session summary (goal, work
done, decisions, next steps, files). Recovery is never automatic.
- If engram is unreachable (not installed / not on PATH): emit a visible
warning that engram was not found and that this work will NOT persist. DO NOT
report memory as saved; DO NOT proceed silently as if it had persisted.
Purpose
The design defines HOW to implement what the specs say the system MUST do. It is the bridge between requirements and code. It documents technical decisions and their justification.
Process
Step 0 — Load project context + Spec context preload
Load the project's context and conventions if present, then load the change's spec scenarios if present. Both are non-blocking.
Step 1 — Read prior artifacts
Read:
- The proposal artifact:
- Read
docs/sdd/{change-name}/proposal.mdfor full content. - If the disk file is absent (legacy change): fall back to searching prior work for
sdd/{change-name}/proposaland retrieve it. - If neither exists and prior-work storage is not reachable: proposal content is passed inline from the caller.
- The spec artifact:
- Read
docs/sdd/{change-name}/spec.mdfor full content. - If the disk file is absent (legacy change): fall back to searching prior work for
sdd/{change-name}/specand retrieve it. - If neither exists and prior-work storage is not reachable: spec content is passed inline from the caller.
ai-context/architecture.mdif it existsai-context/conventions.mdif it exists
Then read real code:
- Relevant entry points
- Files that will be affected according to the proposal
- Existing patterns to follow (not reinvent)
- Existing tests (they reveal current contracts)
Step 2 — Design the technical solution
Evaluate the solution considering:
- Patterns already used in the project (prefer consistency)
- Minimal impact on existing code
- Testability
- Reversibility (rollback plan from the proposal)
Skills Registry cross-reference
When recommending a skill, library, or technology pattern in the design, check the project Skills Registry extracted in Step 0 and follow these rules:
- Registered skill: reference it by its exact registered name (e.g.,
typescript,react-19). - Available in the project's technology guidance but not registered in the project: mark it as optional with a note, e.g.
[optional — not registered in project; add via /skill-create <name>]. - Not available in the project's technology guidance: state it as a new dependency and flag it for review.
This check applies to the Technical Decisions table, the Testing Strategy table, and any inline recommendations in the design narrative. It ensures design output stays aligned with the project's declared toolset.
Step 3 — Create design.md
Persist the design artifact (disk-primary, two steps, disk FIRST):
First write the full design markdown to docs/sdd/{change-name}/design.md, then persist a pointer + summary keyed sdd/{change-name}/design (type architecture) with content = "path: docs/sdd/{change-name}/design.md\n\n{1-3 sentence summary}".
If prior-work storage is not reachable: still write the disk artifact (the source of truth); skip the pointer only.
Content format:
# Technical Design: [change-name]
Date: [YYYY-MM-DD]
Proposal: sdd/[name]/proposal
## General Approach
[High-level description of the technical solution in 3-5 lines]
## Technical Decisions
| Decision | Choice | Discarded Alternatives | Justification |
| ---------- | ---------------- | ------------------------------ | ----------------- |
| [decision] | [what is chosen] | [alternative A, alternative B] | [why this choice] |
## Data Flow
[ASCII diagram or description of the flow]
Example:Request → Middleware → Controller → Service → Repository → DB ↓ Validator (Zod) ↓ Response DTO
````
File Change Matrix
| File | Action | What is added/modified |
|---|---|---|
src/modules/auth/auth.service.ts | Modify | Add refreshToken() method |
src/modules/auth/auth.controller.ts | Modify | New endpoint POST /auth/refresh |
src/modules/auth/dto/refresh.dto.ts | Create | DTO for refresh request |
src/modules/auth/auth.module.ts | Modify | Register new provider |
tests/auth/refresh-token.spec.ts | Create | Tests for the new endpoint |
Interfaces and Contracts
[Type definitions, interfaces, DTOs, schemas to be created]
// Example
interface RefreshTokenRequest {
refreshToken: string;
}
interface RefreshTokenResponse {
accessToken: string;
expiresIn: number;
}Testing Strategy
| Layer | What to test | Tool |
|---|---|---|
| Unit | [service/function] | [jest/vitest/pytest] |
| Integration | [endpoint/module] | [supertest/httpx] |
| E2E | [full flow if applicable] | [playwright/cypress] |
Migration Plan
[If there are changes to DB, schema, or existing data:]
- Step 1: [migration script]
- Step 2: [gradual rollout if applicable]
- Step 3: [post-cleanup]
[If no migration: "No data migration required."]
Open Questions
[Aspects that need clarification before implementing]
- [question]: [impact if not resolved]
[If none: "None."]
````
Step 4 — ADR Detection and Generation
This step is non-blocking: any failure produces a warning in the output, never status: blocked or status: failed.
1. Scan for significant decisions: read the Technical Decisions table in the newly created design.md. For each row, check whether the text (across all columns) contains any of the following keywords (case-insensitive): pattern, convention, cross-cutting, replaces, introduces, architecture, global, system-wide, breaking
2. No match → skip silently: if no row matches any keyword, do nothing and produce no output for this step.
3. Match found → generate ADR: a. Prerequisite check: if docs/templates/adr-template.md does not exist OR docs/adr/README.md does not exist, log the warning "ADR infrastructure not found (docs/templates/adr-template.md or docs/adr/README.md missing) — skipping ADR generation" and stop this step. b. Determine next ADR number: count existing files matching docs/adr/[0-9][0-9][0-9]-*.md. The next number is count + 1, zero-padded to 3 digits (e.g., 001, 012, 100). c. Derive slug: <NNN>-<change-name>[-<first-matched-keyword>], all lowercase, spaces replaced with hyphens, non-alphanumeric characters (except hyphens) removed, truncated to 50 characters. d. Copy template: copy docs/templates/adr-template.md to docs/adr/<slug>.md. e. Pre-fill content in the new ADR file:
- Title (H1): derived from the slug (replace hyphens with spaces, title-case)
- Status:
Proposed - Context section: content from the Justification column of the first matched row
- Decision section: content from the Choice column of the first matched row
f. Update index: append a new row to the ADR index table in docs/adr/README.md: | [NNN] | [Title] | Proposed | [YYYY-MM-DD] | [brief one-line context] | g. Artifacts: add docs/adr/<slug>.md to the artifacts list.
---
Examples of well-documented decisions
Well documented
| Input validation | Zod at controller layer | Class-validator, manual |
The project already uses Zod for DB schemas (Drizzle).
Maintaining consistency avoids two validation systems. |Poorly documented
| Validation | Zod | others | It's better |---
Useful ASCII diagrams
# Authentication flow
Client → POST /auth/login
↓
AuthController
↓
AuthService.validateCredentials()
↓
UserRepository.findByEmail()
↓
bcrypt.compare(password, hash)
↓ (success)
JwtService.sign(payload)
↓
Response { token, refreshToken }
# Module structure
auth/
├── auth.module.ts
├── auth.controller.ts
├── auth.service.ts
├── strategies/
│ ├── jwt.strategy.ts
│ └── local.strategy.ts
└── dto/
├── login.dto.ts
└── refresh.dto.tsStep 5 — Summary to caller
Return a clear executive summary to the caller with all artifacts produced (design.md and any ADR file created in Step 4).
Output Contract
Return this result shape:
{
"status": "ok|warning|blocked",
"summary": "Design for [change-name]: [N] affected files, approach [brief description], risk [level].",
"artifacts": ["docs/sdd/{change-name}/design.md"],
"next_recommended": ["sdd-tasks (requires spec + design completed)"],
"risks": ["[technical risk if found]"]
}Rules
- ALWAYS read real code before designing — never assume the structure
- Every decision MUST have justification (the "why", not just the "what")
- Follow existing project patterns unless the change explicitly corrects them
- The file matrix must be concrete (real paths, not "some auth file")
- ASCII diagrams are preferable to long descriptions
- If I detect that the proposal is incompatible with the current architecture, I report it as a blocker
- I do NOT write implementation code — that is
sdd-apply
Related skills
How it compares
Use instead of jumping from chat requirements straight to code—this is the structured design step in an SDD workflow, not a generic brainstorming skill.
FAQ
Who is sdd-design for?
Developers using Claude-style agents with spec-driven development who want architecture and file plans before implementation.
When should I use sdd-design?
After a proposal exists for a change name—during Validate when scoping implementation, and in Build when turning specs into an agent-ready design; trigger with /sdd-design <change-name> or when you ask for technical design or change architecture.
Is sdd-design safe to install?
Review the Security Audits panel on this Prism page and inspect project-local vs global skill resolution paths before granting memory and filesystem access to your repo.