<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
danielpohlmann/ia-marktplace/specs-diagramming
──Details
PublishedOctober 22, 2026 at 01:40 AM
Content Hashsha256:c1d1e11db27a04b9...
Git SHAaff862584ad3
──Files
Files (1 file, 3.0 KB)
SKILL.md3.0 KBactive
SKILL.md · 60 lines · 3.0 KB

version: "1.0.0" name: specs-diagramming description: Use only when choosing a diagram type or tool before drawing. USE FOR: diagram type selection, tool comparison, diagrams-as-code workflow, embedding diagrams in docs. DO NOT USE FOR: specific syntax (use the matching specs-diagramming-* skill, e.g. specs-diagramming-mermaidjs, specs-diagramming-c4-diagrams), requirements documents (use specs-documentation).


Diagramming

Overview

Architecture diagrams communicate system structure, behavior, and relationships visually. Modern "diagrams as code" tools let you version, diff, and automate diagram generation alongside your source code.

Diagram Types

Structural Diagrams

TypePurposeTools
C4 (Context, Container, Component, Code)Hierarchical system decompositionStructurizr DSL, Mermaid
Class diagramsObject structure and relationshipsUML, Mermaid, PlantUML
Component diagramsInternal structure of containersUML, C4 Level 3
Entity-Relationship (ERD)Data model relationshipsMermaid, dbdiagram.io
Package / Module diagramsCode organizationUML, Mermaid

Behavioral Diagrams

TypePurposeTools
Sequence diagramsInteraction order between actorsMermaid, PlantUML
Activity / FlowchartsProcess and decision flowsMermaid, D2, BPMN
State diagramsState machine transitionsMermaid, PlantUML
Functional / Data flowData transformation pipelinesDFD, Mermaid

Enterprise Architecture

TypePurposeTools
TOGAF ADM viewsEnterprise architecture phasesArchi, Sparx EA
ArchiMate modelsBusiness-application-technology layersArchi, Sparx EA

Diagrams-as-Code Tools

ToolLanguageRenderingBest For
MermaidMarkdown-like DSLSVG (browser, GitHub)Inline docs, PRs, wikis
D2Declarative DSLSVG, PNG, PDFArchitecture diagrams
PlantUMLText DSLPNG, SVGUML diagrams
Structurizr DSLC4-specific DSLSVG, PNGC4 model diagrams

Best Practices

  • Use "diagrams as code" tools (Mermaid, D2, PlantUML, Structurizr) so diagrams are version-controlled, diffable, and CI-renderable.
  • Start with C4 Level 1 (Context) to establish boundaries, then zoom in to Level 2 (Container) and Level 3 (Component) as needed.
  • Use Mermaid for diagrams inside Markdown files — GitHub, GitLab, and most documentation platforms render it natively.
  • Use D2 or Structurizr for standalone architecture diagrams that need advanced layout control.
  • Keep diagrams close to the code they describe — in the same repo, ideally the same directory.
  • Include a legend or title on every diagram so readers understand the notation without prior knowledge.

References

See references/rules.md for the full rule catalog.

All versions