NWave nw-diagram
Generates C4 architecture diagrams (context, container, component) in Mermaid or PlantUML. Use when creating or updating architecture visualizations.
install
source · Clone the upstream repo
git clone https://github.com/nWave-ai/nWave
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/nWave-ai/nWave "$T" && mkdir -p ~/.claude/skills && cp -r "$T/nWave/skills/nw-diagram" ~/.claude/skills/nwave-ai-nwave-nw-diagram && rm -rf "$T"
manifest:
nWave/skills/nw-diagram/SKILL.mdsource content
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
. Extract component boundaries, technology stack, and design decisions. Gate: architecture brief loaded.docs/product/architecture/brief.md - Resolve Configuration — Determine
(component|deployment|sequence|data|context),diagram_type
(mermaid|plantuml|c4),format
(context|container|component), andlevel
. Gate: all configuration parameters resolved.output_directory - Invoke Agent — Delegate to
with@nw-solution-architect
for*create-diagrams
, passing context files and resolved configuration. Gate: agent invoked with all parameters.{architecture-component} - Validate Output — Verify diagrams render without syntax errors and files exist in
. Gate: all success criteria pass.output_directory - 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}