/diagram-studio:mermaidfrom diagram-studio
Creates, selects, styles, renders, validates, and animates Mermaid diagrams from prose or structured data, including verified accessible title and description metadata for newly authored work. Use when Codex must honor or infer an appropriate Mermaid family; preserve workflows, schedules, schemas, hierarchies, interactions, behavioral contracts, tabular data, or quantitative facts; simplify or audience-adapt an existing diagram with an explicit fidelity ledger; apply colorset1 as the standard palette or colorset2 only when extended/full-color styling is explicitly requested; restyle Mermaid files or Markdown fences; render static SVG; or produce faithful animated SVG.
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.
colorset1. Use colorset2 only for an explicit request for extended, expanded, full-color, or multicolor styling; ordinary "colored" and an explicit negation of extended styling both mean colorset1.colorset1, allocate distinct category fills in this order: primary red #9e1b32, the bundled interleaved grayscale sequence (including black), white, then the remaining colors. Alternate the darker and lighter halves of the luminance-ranked grays; read the exact solidSequence rather than making an ascending gray ramp. Exclude only the actual canvas token; choose exact black or white inside text by maximum contrast. Pink is a last-resort extra category after the preceding usable colors are exhausted; never use it as the default fill or secondary accent. Reuse semantic roles before adding colors.accTitle and accDescr directives. Describe the content and conclusion, not the geometry. When editing is out of scope or the source meaning is unclear, report missing accessibility metadata instead of inventing it.config.theme: "base"; do not generate JSON init directives.id from references/diagram-types.json exactly and keep it distinct from the rendered declaration (xyChart versus xychart).references/diagram-selection.md when no family is specified, when authoring from data, or when orientation, fidelity, data syntax, or semantic color roles need judgment.references/editorial-diagram-contracts.md when behavior, state, enforcement, capacity, trust, or residual risk carries the message; when simplifying or audience-adapting an existing diagram; or when rendered edge traceability needs an editorial release gate.references/accessible-svg-metadata.md for newly authored diagrams, authorized accessibility edits, or any --require-accessibility release gate.references/diagram-types.json only for an exact declaration, alias, canonical family ID, or classDef capability.references/palette-capacity.md when a task asks for maximum distinct colors, a palette boundary, or enough peer branches, sections, curves, groups, sets, slices, columns, or series to approach cycling.references/arrow-contrast.md when authoring or inspecting arrow direction, head clearance, compound-region contrast, or native marker output.references/animation.md only for animated output, custom choreography, or directive selectors.xyChart versus xychart). Split overload only when the output contract permits it.accTitle and accDescr to newly authored or authorized-to-edit sources. Run the styler with --write to apply the palette and geometry before checking, even if the source already contains hand-authored styling. The styler updates its input in place. When the user requests separate original and styled sources, create the original, copy it to the exact styled path, then style that copy; --write does not create a separate output file. Omit --colorset for standard; pass --colorset colorset2 only for explicit extended styling.--check; never combine --write and --check. Check mode is read-only and fails when styling changes are still needed. Add --require-accessibility for newly authored or authorized-to-edit diagrams. Require the expected declaration, colorset, missingStyleCount: 0, and, when gated, missingAccessibilityCount: 0.--animation none for static output or --animation auto for animation. Add --require-accessibility for newly authored or authorized-to-edit diagrams so the renderer verifies the final SVG metadata, not only the source directives.uv run --script skills/mermaid/scripts/style_mermaid_directory.py diagram.mmd --write --report mermaid-style.json
uv run --script skills/mermaid/scripts/style_mermaid_directory.py diagram.mmd --check --require-accessibility --report mermaid-check.json
# Batch only the task source directory.
uv run --script skills/mermaid/scripts/style_mermaid_directory.py diagrams --write --report mermaid-style.json
uv run --script skills/mermaid/scripts/style_mermaid_directory.py diagrams --check --require-accessibility --report mermaid-check.json
# Static or animated SVG.
uv run --script skills/mermaid/scripts/animate_mermaid_svg.py diagram.mmd -o diagram.svg --static-output diagram.static.svg --animation none --require-accessibility
uv run --script skills/mermaid/scripts/animate_mermaid_svg.py diagram.mmd -o diagram.animated.svg --static-output diagram.static.svg --animation auto --require-accessibility
Append --colorset colorset2 only for explicit extended color. Before custom animation ordering or selectors, render with --list-elements.
accTitle and content-oriented accDescr; rendered SVG resolves both accessible references.agents/openai.yaml (opens in a new tab)assets/examples/mermaid-max-complexity/catalog.json (opens in a new tab)assets/examples/mermaid-max-complexity/gallery.css (opens in a new tab)assets/examples/mermaid-max-complexity/gallery.js (opens in a new tab)assets/examples/mermaid-max-complexity/gallery.json (opens in a new tab)assets/examples/mermaid-max-complexity/index.html (opens in a new tab)assets/examples/mermaid-max-complexity/legacy/mermaid-animation-directives/index.html (opens in a new tab)assets/examples/mermaid-max-complexity/legacy/mermaid-svg-animated/index.html (opens in a new tab)assets/examples/mermaid-max-complexity/reports/build-report.json (opens in a new tab)assets/examples/mermaid-max-complexity/reports/colorset1-check.json (opens in a new tab)assets/examples/mermaid-max-complexity/reports/colorset1-style.json (opens in a new tab)assets/examples/mermaid-max-complexity/reports/colorset2-check.json (opens in a new tab)assets/examples/mermaid-max-complexity/reports/colorset2-style.json (opens in a new tab)assets/examples/mermaid-max-complexity/reports/validation-report.json (opens in a new tab)assets/examples/mermaid-max-complexity/scripts/build_gallery.py (opens in a new tab)assets/examples/mermaid-max-complexity/scripts/test_gallery.py (opens in a new tab)assets/examples/mermaid-max-complexity/scripts/validate_gallery.py (opens in a new tab)assets/examples/mermaid-max-complexity/source-overrides/c4.mmd (opens in a new tab)assets/examples/mermaid-max-complexity/source-overrides/ishikawa.mmd (opens in a new tab)assets/examples/mermaid-max-complexity/source-overrides/packet.mmd (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
11 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.Other plugins' skills for the same job
/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.npx claudepluginhub gvillarroel/plugins --plugin diagram-studio