Agent skill
nw-diagram
Generates C4 architecture diagrams (context, container, component) in Mermaid or PlantUML. Use when creating or updating architecture visualizations.
Install this agent skill to your Project
npx add-skill https://github.com/nWave-ai/nWave/tree/main/nWave/skills/nw-diagram
SKILL.md
NW-DIAGRAM: Architecture Diagram Generation
Wave: CROSS_WAVE | Agent: Morgan (nw-solution-architect) | Command: *create-diagrams
Overview
Generate architecture diagrams from design documents. Supports C4 model levels (context|container|component) in Mermaid|PlantUML|C4 format. Audience-appropriate: high-level context for stakeholders|component details for developers|deployment topology for operations.
Context Files Required
- docs/product/architecture/brief.md (SSOT — component boundaries, technology stack, design decisions)
Workflow
- Read Context — Load
docs/product/architecture/brief.md. Extract component boundaries, technology stack, and design decisions. Gate: architecture brief loaded. - Resolve Configuration — Determine
diagram_type(component|deployment|sequence|data|context),format(mermaid|plantuml|c4),level(context|container|component), andoutput_directory. Gate: all configuration parameters resolved. - Invoke Agent — Delegate to
@nw-solution-architectwith*create-diagramsfor{architecture-component}, passing context files and resolved configuration. Gate: agent invoked with all parameters. - Validate Output — Verify diagrams render without syntax errors and files exist in
output_directory. Gate: all success criteria pass. - Handoff — Return deliverables to invoking agent. Gate: architecture diagrams available in configured format.
Success Criteria
- Diagrams accurately represent current architecture
- Audience-appropriate detail level applied
- Diagrams render without syntax errors
- Output files created in configured directory
Next Wave
Handoff To: {invoking-agent-returns-to-workflow} Deliverables: Architecture diagrams in configured format
Examples
Example 1: Generate C4 container diagram
/nw-diagram payment-service --diagram_type=component --format=mermaid --level=container
Morgan reads architecture docs and produces a Mermaid container diagram showing service boundaries, data stores, and external integrations.
Expected Outputs
docs/product/architecture/
system-context.{ext}
component-architecture.{ext}
deployment-architecture.{ext}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
nw-research
Gathers knowledge from web and files, cross-references across multiple sources, and produces cited research documents. Use when investigating technologies, patterns, or decisions that need evidence backing.
nw-distill
Acceptance test creation methodology for the DISTILL wave. Domain knowledge for the acceptance designer agent: port-to-port principle, prior wave reading, wave-decision reconciliation, graceful degradation, and document back-propagation.
nw-review-output-format
YAML output format and approval criteria for platform design reviews. Load when generating review feedback.
nw-ddd-tactical
Tactical DDD — aggregate design rules, entities, value objects, domain events, repositories, domain services, and anti-pattern detection
nw-infrastructure-and-observability
Infrastructure as Code patterns (Terraform, Kubernetes), observability design (SLOs, metrics, alerting, dashboards), and pipeline security stages. Load when designing infrastructure, observability, or security scanning.
nw-par-critique-dimensions
Platform design review critique dimensions and severity levels. Load when reviewing CI/CD pipelines, infrastructure, deployment strategies, observability, or security designs.
Didn't find tool you were looking for?