Plantuml conventions
Diagram conventions for Bluewright artifacts — C4 levels, PlantUML style, file naming, and rendering rules — so every diagram across all investigations looks like one hand drew it. Use from /bluewright:make-artifact whenever the ask involves a diagram, in an investigation's or global's artifacts/.From its SKILL.md
npx -y skills add valeriy-maslov/bluewright --skill plantuml-conventionsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.4 KB, as published. Nobody here has run it
Diagram conventions
Files
- One diagram per
.pumlfile, inartifacts/, kebab-case, prefixed by its C4 level:context-payments.puml,container-payments.puml,component-ledger-adapter.puml,sequence-refund-flow.puml. - The rendered
.pngsits next to its.puml, same basename (produced by/bluewright:make-artifact— never hand-edit a rendered file). - Documents reference the
.png(relative link), never the.puml, soartifacts/reads correctly on any markdown viewer.
C4 discipline
- Start at context (systems and people); add container and component views only where the design actually changes something at that depth. A diagram that shows everything explains nothing.
- Sequence diagrams only for flows where ordering/failure behavior is the point (sagas, retries, migrations) — not for simple request/response.
- Use the C4-PlantUML standard library:
!include <C4/C4_Context>(orC4_Container,C4_Component) — bundled with PlantUML, no network fetch at render time.
Style
Every diagram starts the same way:
@startuml
!include <C4/C4_Context>
title <Verb phrase — what this diagram answers>
' e.g.: title How a split payment reaches both ledgers
LAYOUT_WITH_LEGEND()
- One question per diagram; the title states it.
- Existing systems plain; new/changed elements get
$tags="new"+AddElementTag("new", $bgColor="#1a7f37")so reviewers see the delta at a glance. Deprecated paths tag"removed", gray, dashed. - No colors beyond those two tags and the C4 defaults; no icons/sprites — they date badly and render inconsistently.
- Max ~10 elements per diagram; past that, split by level or by subdomain.
- Relationship labels are verb phrases with protocol where it matters:
Rel(api, ledger, "posts entries", "gRPC").
Rendering
- Renderer preference: local
plantumlCLI if installed, elsedocker run --rm -v <outputs>:/data plantuml/plantuml -tpng /data/<file>, one-shot — never a standing service. - Render failures are findings, not stoppers: report the file and the error,
keep the
.pumlcommitted.