agentsclimarketplace

Plantuml conventions

Skill valeriy-maslov/bluewright/skills/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

Install
npx -y skills add valeriy-maslov/bluewright --skill plantuml-conventions

Assembled 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 .puml file, in artifacts/, kebab-case, prefixed by its C4 level: context-payments.puml, container-payments.puml, component-ledger-adapter.puml, sequence-refund-flow.puml.
  • The rendered .png sits 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, so artifacts/ 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> (or C4_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 plantuml CLI if installed, else docker 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 .puml committed.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.