Install any skill in seconds. Free to start, no credit card required.
Get Started Free →NW-DIAGRAM generates accessible C4 architecture diagrams in Mermaid or PlantUML, checked against 12 legibility rules.
35% 65%+31 ptsof test cases passed
Passed 17 of 26 test cases with the skill, and 9 of 26 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Wave: CROSS_WAVE | Agent: Morgan (nw-solution-architect), semantic content only | Command: /nw-diagram
Generate architecture diagrams from the existing design context, as C4 levels (context|container|component) in Mermaid|PlantUML|C4. A correct diagram that a person cannot read has failed. Every rule below is checkable from the source text, without rendering. This standalone visualization does not author or replace architecture authority. Reviewers (documentarist) apply the same rules.
Colour, contrast, text alternative and screen-reader duties come from the accessibility section of nw-usability-engineering ("Accessibility as Design Constraint"). The rules apply them to diagram source.
| # | Rule | Check in the source |
|---|---|---|
| R1 | Title inside the block | C4: a title line. Other types: front matter title: as first lines. accTitle/accDescr where the type supports them (flowchart, sequence) |
| R2 | Prose description directly above the block | 1-3 sentences starting This diagram shows: immediately before the fence. HTML shows it above the diagram |
| R3 | At most 25 nodes per block (provisional limit) | Count node ids. Above 25, split by subsystem or wave and link the blocks in prose |
| R4 | Node label at most 40 characters and 2 line breaks | Count characters per label. Detail goes to the description or a table |
| R5 | Reading direction stated and standard | TD for phased flows, LR for pipelines. BT only for Mikado trees, with a sentence saying goals sit on top |
| R6 | Colour never the only signal | Each class also differs by shape, dash style or label prefix |
| R7 | Contrast declared and sufficient | Each classDef sets fill, stroke and color. Fill vs stroke at least 3:1, fill vs text at least 4.5:1, recalculated from the hex codes |
| R8 | Legend when styles exist | A classDef or style means a LEGEND subgraph with one node per class |
| R9 | Human names for groups above 8 nodes | Each subgraph title is a subsystem name, not a code |
| R10 | Short edge labels, not repeated | At most 4 words. The same label at most 4 times. Otherwise group the edges or drop the label |
| R11 | Acronyms and ids expanded once | Every acronym or id (E1, SYS-4) appears expanded in the title, legend or description |
| R12 | One C4 level per block | No context, container and component elements in one block. The title names the level (L1, L2, L3) |
Old diagrams under docs/archive stay as they are. The rules bind new and regenerated diagrams.
docs/product/architecture/brief.md. Extract component boundaries, technology stack, and design decisions.diagram_type (component|deployment|sequence|data|context), format (mermaid|plantuml|c4), level (context|container|component), and, if files are requested, output_directory.@nw-solution-architect for the semantic diagram content in the selected format for {architecture-component}, using the brief as context and R1-R12. Do not ask the architect to write diagram files or architecture-document bytes.output_directory and checks that the files exist; never delegate those writes to the architect.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.