Write Design Document
sdd_write_designGenerates a DESIGN.md file containing architecture overview, Mermaid diagrams, ADRs, and API contracts from structured inputs.
Instructions
Generates and writes DESIGN.md with architecture overview, Mermaid diagrams, ADRs, and API contracts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"architecture_overview": "<architecture_overview>",
"mermaid_diagrams": "<mermaid_diagrams>"
},
"name": "sdd_write_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adrs | No | Architecture Decision Records | |
| force | No | Overwrite existing files if true | |
| spec_dir | No | Spec directory path (relative to workspace root) | .specs |
| data_models | No | Data model: entities, relationships, and storage strategy | |
| api_contracts | No | API contracts | |
| cross_cutting | No | Cross-cutting concerns: logging, monitoring, caching, configuration | |
| error_handling | No | Error handling: detection, logging, propagation, and recovery | |
| feature_number | No | Feature number (zero-padded, e.g. '001') | 001 |
| infrastructure | No | Infrastructure: deployment, scaling, monitoring, and operations | |
| system_context | No | System context: who uses the system and what external systems it integrates with (C4 Level 1) | |
| component_design | No | Component design: internal modules/services and responsibilities (C4 Level 3) | |
| mermaid_diagrams | Yes | Mermaid diagrams | |
| code_level_design | No | Code-level design: key classes, interfaces, and patterns (C4 Level 4) | |
| architecture_overview | Yes | High-level architecture description | |
| security_architecture | No | Security: authentication, authorization, encryption, and threat model | |
| container_architecture | No | Container architecture: deployable units and communication patterns (C4 Level 2) |