/diagram-studio:plantuml-colorset-rendererfrom diagram-studio
Renders and validates PlantUML diagrams with bundled colorset themes across UML and non-UML families. Use for PlantUML creation, styling, cloud architecture diagrams, SVG or PNG batch rendering, deterministic reports, private local rendering, and diagram-family coverage; do not use for standalone logo search or export.
Ships in diagram-studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read the colorset output contract before authoring or auditing visual output. Apply one exact bundled palette to every authored output path and inspect rendered paint. Default to colorset1; declare colorset2 when its category distinctions are needed. Start category marks with opaque solid fills and no decorative borders; exhaust the selected palette's usable unique solids before outlined overflow variants. Choose black or white inside text by actual fill contrast.
Map exact paths before rendering: the renderer writes
<output-root>/<format>/<source-relative-stem>.<format>. For
input/diagram.puml and a required rendered/svg/diagram.svg, pass
--output rendered, and use that same root in the report validator. Do not
pass rendered/svg as the root. Keep the requested input filename unchanged.
Preserve the user's PlantUML source semantics. Apply the requested bundled colorset theme as presentation only, then render SVG and PNG outputs with a report that records every source, output path, format, colorset, and render engine. Default to colorset1; use colorset2 for an explicit full-color request or a documented semantic category need.
Prefer local rendering for private diagrams. Use a remote fallback such as Kroki or PlantUML Server only when the user permits external rendering or the task is validation/example work with non-sensitive sources.
Default connected diagrams to the smallest readable composition. Read compact connected layouts before authoring or reviewing their layout. Reduce unused margins, excessive spacing and connector detours while retaining complete labels, visible semantic heads and independently traceable routes. Preserve explicit user geometry and proportional chart or schedule scales.
Read native style delivery when styling diagrams or repairing a theme. Use the bundled renderer so family-scoped theme rules and the native SVG finisher both apply; a direct theme-only render misses upstream hardcoded primitives.
Read native arrow contrast and clearance when authoring directional links, rendering compound regions, or checking head position. Inspect shaft and complete head against actual painted backings; require at least 3:1 at delivery.
Read native network and schedule authoring before generating NWDIAG or Gantt source. Keep bare network aliases separate from exact displayed names, and use native predecessor-end dependency syntax.
references/diagram-types.md and its machine-readable source references/diagram-types.json when the task asks which PlantUML diagram types are covered or when maintaining examples.scripts/render_plantuml_directory.py against the requested directory with --colorset colorset2 or --colorset colorset1, --format svg --format png, and a JSON report.ok is true, failures are zero, and each result has the requested or capability-declared formats. Open the rendered diagram at its intended display size and inspect dense detail. Compare a tighter grouping or shorter source route when visible empty space or a detour can be reclaimed; keep only revisions that satisfy the compact-layout readability gates, then rerender and validate final artifacts.--coverage-manifest references/diagram-types.json. Validate exact family and fixture sets instead of relying on a count.When maintaining the published examples, keep assets/examples/plantuml-colorset-renderer/ as the only canonical GitHub Pages gallery. Treat assets/examples/plantuml-colorset-renderer-cs1/ as a Colorset 1 render-asset source loaded by the canonical page's theme selector; do not add a second Pages catalog card or pattern page for it. Preserve the former CS1 URL as a redirect to ?theme=colorset1.
Normal user rendering does not load the coverage manifest. Ditaa, standalone AsciiMath, and standalone LaTeX still bypass theme injection because adding theme text would corrupt or be ignored by those syntaxes.
Ditaa uses the separate source-backed raster style adapter described in native style delivery. Use its supported box contract and PNG format; unsupported geometry fails with a source repair instruction instead of a misleading style pass.
Render a directory to SVG and PNG with the bundled colorset2 theme:
uv run --script skills/plantuml-colorset-renderer/scripts/render_plantuml_directory.py path/to/plantuml --output path/to/renders --colorset colorset2 --format svg --format png --report path/to/plantuml-render-report.json
Render the same directory with the bundled colorset1 red-neutral theme:
uv run --script skills/plantuml-colorset-renderer/scripts/render_plantuml_directory.py path/to/plantuml --output path/to/renders-cs1 --colorset colorset1 --format svg --format png --report path/to/plantuml-render-report-cs1.json
For the next three commands, set <skill-root> to the full plantuml-colorset-renderer source directory. This is an acceptance-fixture-only workflow that requires assets/examples/, which is intentionally excluded from the normal runtime payload.
Render the bundled coverage examples when maintaining the skill:
uv run --script <skill-root>/scripts/render_plantuml_directory.py <skill-root>/assets/examples/base --output projects/plantuml-colorset-renderer/artifacts/examples --format svg --format png --coverage-manifest <skill-root>/references/diagram-types.json --publication-only --report projects/plantuml-colorset-renderer/artifacts/examples/report.json
Validate a render report and artifacts:
uv run --script <skill-root>/scripts/validate_plantuml_render_report.py --report projects/plantuml-colorset-renderer/artifacts/examples/report.json --output projects/plantuml-colorset-renderer/artifacts/examples --colorset colorset2 --coverage-manifest <skill-root>/references/diagram-types.json
Validate the frozen manifest, fixtures, reports, and published galleries:
uv run --script <skill-root>/scripts/validate_plantuml_coverage.py --fixtures <skill-root>/assets/examples/base --report <skill-root>/assets/examples/plantuml-colorset-renderer/render-report.json --report <skill-root>/assets/examples/plantuml-colorset-renderer-cs1/render-report.json --gallery <skill-root>/assets/examples/plantuml-colorset-renderer --gallery <skill-root>/assets/examples/plantuml-colorset-renderer-cs1
Use a private/local PlantUML endpoint instead of the public server:
uv run --script skills/plantuml-colorset-renderer/scripts/render_plantuml_directory.py path/to/plantuml --output path/to/renders --format svg --format png --engine server --server-url http://localhost:8080/plantuml --report path/to/plantuml-render-report.json
Use Kroki explicitly for remote rendering:
uv run --script skills/plantuml-colorset-renderer/scripts/render_plantuml_directory.py path/to/plantuml --output path/to/renders --format svg --format png --engine kroki --report path/to/plantuml-render-report.json
Write themed source copies for debugging or handoff:
uv run --script skills/plantuml-colorset-renderer/scripts/render_plantuml_directory.py path/to/plantuml --output path/to/renders --format svg --format png --write-themed --report path/to/plantuml-render-report.json
When a diagram needs an exact technical brand mark, use $technical-logo-assets when that companion skill is available. Export only the selected SVGs into the user's diagram project, keep their provenance and license sidecars, and reference those exported paths from the PlantUML source. This renderer must not read a sibling skill directory or assume a fixed companion installation path.
rectangle "<img:assets/logos/lambda.svg{scale=0.25}>\nAWS Lambda" as lambda
rectangle "<img:assets/logos/cloud-run.svg{scale=0.25}>\nCloud Run" as run
Resolve image paths from the PlantUML source or renderer working directory, prefer paths without spaces, and use equal scales for peer logos. If the companion is unavailable, use user-supplied local artwork or a labeled PlantUML shape; never substitute a different brand or product.
Both themes set native root padding to 6 without shrinking fonts. This reduces whitespace in supported activities, participants, and mind-map nodes; other families retain their native geometry. Later authored style rules override the theme. Inspect labels and connectors before reducing inter-node spacing; the theme does not impose a universal rank gap. Its padding is an initial safe default, not proof that the connected layout is compact. Prefer compact preview containers with access to the full-size SVG for dense diagrams.
Use assets/themes/cs2.puml for the full colorset2 palette. It maps the repository colorset2 palette to PlantUML skinparam and CSS-like <style> rules:
#9e1b32#007298#e77204#45842a#00ace6#652f6c#333e48, #696969, #e7e7e7Use assets/themes/cs1.puml for the colorset1 red-neutral palette:
#9e1b32.#6d1222, #e8002a, and #ffccd5 only after that preceding categorical capacity is used, unless the user explicitly authors an override.assets/palettes/colorsets.json and solid_style; repeated categories retain their fill. Containers, text, axes and semantic glyphs are not additional categories.Do not add semantic classes or labels to user diagrams unless the user asks. The renderer injects the theme in memory after compatible @start... lines and leaves the original files unchanged unless --write-themed is passed. It never injects theme text into @startditaa, @startmath, or @startlatex. Kroki Ditaa requests use the ditaa route.
Validate ordinary render batches with
uv run --script <skill-root>/scripts/validate_plantuml_render_report.py --report <report.json> --output <render-directory> --colorset <requested-colorset>.
Use the actual output paths. This handles SVG token capitalization and allows
neutral-only colorset1 line art, mathematical notation, and explicit source
presentation. Default categorical bodies start primary red. Add
--coverage-manifest only for frozen coverage fixtures.
The bundled validator checks artifact paths, formats, SVG/PNG validity,
palette evidence, current native-style delivery, and recomputed tagged body,
label, and connector contrast. Inspect the rendered semantic glyphs and actual
body silhouettes as well. After it passes, do not add grep or raw regex checks for
those same properties; the SVG serializer can uppercase hex tokens. Preserve
the exact output paths instead of moving results to fix an incorrect root.
After rendering, verify:
ok is true in the report.failedDiagramCount is 0.diagram-types.json; Ditaa is PNG-only.expected-unavailable and no artifact.agents/openai.yaml (opens in a new tab)assets/examples/base/activity.puml (opens in a new tab)assets/examples/base/archimate.puml (opens in a new tab)assets/examples/base/chart.puml (opens in a new tab)assets/examples/base/chen.puml (opens in a new tab)assets/examples/base/chronology.puml (opens in a new tab)assets/examples/base/class.puml (opens in a new tab)assets/examples/base/component.puml (opens in a new tab)assets/examples/base/deployment.puml (opens in a new tab)assets/examples/base/ditaa.puml (opens in a new tab)assets/examples/base/ebnf.puml (opens in a new tab)assets/examples/base/files.puml (opens in a new tab)assets/examples/base/gantt.puml (opens in a new tab)assets/examples/base/ie.puml (opens in a new tab)assets/examples/base/json.puml (opens in a new tab)assets/examples/base/latex.puml (opens in a new tab)assets/examples/base/math.puml (opens in a new tab)assets/examples/base/mindmap.puml (opens in a new tab)assets/examples/base/nwdiag.puml (opens in a new tab)assets/examples/base/object.puml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gvillarroel/plugins --plugin diagram-studio11 skills in this plugin
/compose-synchronized-svgDesigns, builds, synchronizes, and validates giant standalone SVG compositions made from many related diagrams, charts, maps, schematics, illustrations, and explanatory assets. Use when Codex must turn one idea into a coherent 6–16-module megacanvas or a 12–48-module navigable world such as a Path of Exile-style skill tree, giant genealogy, causal atlas, or linked-diagram map; keep recurring concepts visually consistent; propagate canonical values through every relevant view; coordinate focus, time, world-to-district-to-module semantic zoom, or a deterministic camera route for video; and deliver one self-contained interactive SVG with meaningful static and reduced-motion fallbacks./d3Creates, animates, inspects, recomposes, and validates D3-powered HTML and SVG visuals. Use for custom charts, simulations, linked views, visual audits, parametric logos, textures, and portable SVG that need data-driven geometry, joins, layouts, or transitions./diagram-compositionDecomposes a complex idea into related subdiagrams, chooses suitable visual forms, and composes a compact page with explicit grid spans, consistent semantic colors, readable text, shared SVG icons, and meaningful cross-panel connections. Use for dense explanatory figures, architecture plates, visual comparisons, and multi-panel diagrams that need semantic planning before layout; coordinate available diagram and icon skills without requiring them./echarts-animated-svgAnimates already-rendered Apache ECharts SVG output and builds replayable SVG galleries. Use when Codex needs to render ECharts charts with SVGRenderer or SSR, post-process the resulting SVG instead of rebuilding chart geometry, choose chart-type-specific SVG animation profiles for ECharts chart types, or create an HTML index with controls to replay or restore chart animations./hierarchy-lensBuilds offline interactive hierarchies with decision-driven pixel composition, compact organic cells, radial heatmaps, or labeled charts. Use for organizational maps, portfolios, or taxonomies needing explicit placement priorities, proximity rules, step-by-step growth, switchable color lenses, and exact record lookup./lucidchart-svgExports Lucidchart diagrams to SVG, inserts SVG artwork into Lucidchart, and reconstructs SVG diagrams as editable Lucid shapes and connectors. Use for Lucidchart SVG downloads, uploads, conversions, and fidelity checks.