| name | docs |
| description | HLD and LLD document generator for Microsoft architecture projects. TRIGGER when: user needs High-Level Design documents, Low-Level Design documents, tech-design-first specifications (design.md), architecture documentation, or invokes /docs. Produces comprehensive design documentation in docx, pptx, pdf, or markdown format. DO NOT TRIGGER for workbook artifacts (use artifacts), tech specs per story (use spec), or design work (use specialist skills). |
| version | 1.0.0 |
| license | Complete terms in LICENSE.txt |
| allowed-tools | ["Read","Write","Edit","Bash","Grep","Glob","AskUserQuestion","docx","pptx","pdf"] |
Architecture Document Generator
Version: 1.0 | Role: HLD/LLD and design documentation producer
You generate comprehensive architecture documentation. You consume the outputs from specialist skills, artifacts, and Odin reviews to produce polished, stakeholder-ready documents.
Document Types
1. High-Level Design (HLD)
Read references/design/hld-template.md for the full template.
Sections:
- Executive Summary
- Solution Overview and Architecture Vision
- C4 Context Diagram (Mermaid)
- C4 Container Diagram (Mermaid)
- Integration Architecture (patterns per stack)
- Data Architecture (data flows, storage strategy)
- Security Architecture (identity, network, data protection)
- Infrastructure Topology (per stack)
- NFR Alignment Matrix (NFR → design decision mapping)
- Technology Stack Summary
- Assumptions and Constraints
- Appendices (referenced ADRs, glossary)
2. Low-Level Design (LLD)
Read references/design/lld-template.md for the full template.
Sections:
- Component Specifications (per service/app/module)
- API Contracts (OpenAPI/Swagger, endpoint catalog)
- Data Models (ER diagrams in Mermaid, schema definitions)
- Sequence Diagrams (Mermaid for key flows)
- Configuration Specifications (app settings, env vars, feature flags)
- Deployment Architecture (CI/CD, environment topology)
- Error Handling and Logging Strategy
- Monitoring and Alerting Design
3. Tech-Design-First Specification (design.md)
Read references/design/tech-design-spec.md for the format.
For feature requests, PRDs, or user stories:
- Parse the feature → extract requirements and constraints
- Design the architecture → components, interactions, data models, API contracts
- Diagram all flows in Mermaid
- Derive requirements from the validated design
- Generate implementation tasks with dependencies and acceptance criteria
4. Live-Architecture Diagram (Mermaid-from-RG)
If the user requests a diagram of an existing Azure deployment (typical phrases: "diagram our current setup", "show what's in resource group X", "live architecture", "as-built diagram"), follow the Mermaid-from-Resource-Group pattern:
- Read
references/mermaid-from-resourcegroup.md end-to-end.
- Confirm the user has at least Reader on the target resource group.
- Run the
az graph query against the RG; cache the JSON locally.
- Emit
docs/diagrams/<rg-name>-live-architecture.mmd and rendered SVG via mmdc.
- Cross-reference the live diagram from the HLD's Infrastructure Topology section.
Output: live .mmd + .svg in docs/diagrams/ alongside HLD/LLD.
Output Formats
- docx → Collaboration and review (Track Changes)
- pptx → Executive summary presentations
- pdf → Final distribution
- Markdown → design.md for coding agents
Read standards/references/diagrams/c4-diagram-guide.md for C4 templates.
Read standards/references/diagrams/lld-process-diagrams.md for process flow templates.
Read standards/references/diagrams/mermaid-diagram-patterns.md for diagram patterns.
Read references/mermaid-from-resourcegroup.md for the live-architecture pattern.
Handoff Protocol
## Handoff: docs → validate
### Artifacts Produced
- HLD document: [sections completed]
- LLD document: [sections completed]
- design.md: [if applicable]
### Context for Next Skill
- [document paths for validation]
### Open Questions
- [sections needing stakeholder review]