Command Palette

Search for a command to run...

Back to skills
skill № 94408

sk-design-diagram

Creates self-contained HTML/SVG diagrams across 27 types with a skinnable editorial design system.

FreeNo executable scripts
MichelKerkmeesterby MichelKerkmeester★ 40 GitHub stars

Install sk-design-diagram in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Create Diagram

create-diagram is the sk-design hub's diagram mode for technical/product diagrams in two formats: html-svg (default) for 27 diagram types, and ascii-markdown for flowcharts embedded in markdown. HTML/SVG output uses one editorial design system, complexity budget, and taste gate. The packet also redraws draw.io / Mermaid sources and exports generated diagrams to PNG / SVG.

This packet owns both formats. type-flowchart.md remains the HTML/SVG TYPE reference; ascii-format/ and ascii-patterns/ are the separate ASCII FORMAT path.


1. WHEN TO USE

Activation Triggers

Use when a reader will learn more from a visual artifact than from prose, a table, or a bulleted list:

  • Components + connections in a system → architecture, IT current-state, high-level, data-platform diagrams.
  • Behavior and flow → flowchart, sequence, state machine, process, data flow, swimlane.
  • ASCII flowchart, workflow diagram, text diagram, decision tree, decision branch, approval loop, or parallel execution diagram in markdown.
  • Storage and data structure → ER / data model, medallion, DP integration, DP security matrix.
  • Structure, ranking, and time → timeline, Gantt, bar, line, scatter, radar, pyramid/funnel, venn, nested, tree, org chart, layer stack, quadrant, loop.
  • Redrawing an existing .drawio, .drawio.png, .drawio.svg, .mmd, .mermaid, or fenced-Mermaid source as a presentable editorial diagram.
  • Exporting a generated diagram as .png or .svg for a slide, social card, print, or further editing.
  • Repainting a diagram in a product's own visual language from a measured or hand-written DESIGN.md Style Reference.

Keyword triggers: create:diagram, /design:diagram, diagram, theme diagram, repaint diagram, brand the diagram, architecture diagram, sequence diagram, ER diagram, swimlane, venn, org chart, draw.io, drawio, mermaid, redraw diagram, export diagram, ASCII flowchart, workflow diagram, text diagram, text characters, decision tree, decision branch, parallel execution diagram, approval loop diagram.

Use Cases — selection guide

The question a reader needs answered picks the type. The full table — one row per type with its canonical form, variants, ceiling, import paths and skin — lives in references/catalog.md, which the corpus check reads in both directions.

When NOT to Use

Skip this packet when:

  • A short 2–3 step bullet list is clearer than any diagram.
  • The deliverable is a Mermaid, Graphviz, screenshot, canvas, or interactive design artifact rather than either supported html-svg or ascii-markdown format.
  • The work audits, validates, scores, or optimizes an existing markdown document without a diagram deliverable. Use create-quality-control.
  • The requested artifact is a README, skill, command, agent, benchmark package, catalog, testing playbook, or changelog. Use the matching create-* packet.

Before drawing, ask: would the reader learn more from this than from a well-written paragraph? If no, don't draw.


2. SMART ROUTING

The sk-design hub resolves a diagram request here through mode-registry.json when the artifact carries a structure a reader follows rather than values to compare. The hub's diagram mode selects this packet. The output format resolves before any resource is chosen: html-svg is the default, and ascii-markdown answers a plain-text or box-drawing flowchart in markdown. An ambiguous format returns UNKNOWN_FALLBACK rather than a guess. references/foundations/style-guide.md loads first, because every diagram draws its tokens from it. html-svg then loads the matching references/types/type-*.md or references/import-export/import-*.md reference, and ascii-markdown loads references/ascii-format/pattern-selection.md plus one matching assets/ascii-patterns/ asset. references/types/type-flowchart.md stays the HTML/SVG flowchart TYPE reference, not the ASCII/markdown format path. Read ROUTER.md before selecting skill-local resources; open only the matched files.


3. HOW IT WORKS

Style-guide gate — before the first diagram in a project

Before generating the first diagram in a new project, verify the style guide has been customized. Open references/foundations/style-guide.md and check the default tokens; if the accent value is still the shipped default, pause and ask the user:

"This is your first diagram in this project. The style guide is still at the default (white-smoke paper + atomic-tangerine accent). Do you want to customize it to match your brand first? Options: (a) pull from your website URL, (b) extract from an installed skill, (c) extract from a local folder / design-system directory, (d) paste tokens manually, (e) proceed with the default for now."

  • (a) → follow references/foundations/onboarding.md § URL — ask the user for the site URL, extract palette + font
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

  1. 01Read
  2. 02Write
  3. 03Edit
  4. 04Bash
  5. 05Grep
  6. 06Glob

Bundled files

  • README.md
  • ROUTER.md
  • assets/ascii-patterns/approval-workflow-loops.md
  • assets/ascii-patterns/decision-tree-flow.md
  • assets/ascii-patterns/parallel-execution.md
  • assets/ascii-patterns/simple-workflow.md
  • assets/ascii-patterns/system-architecture-swimlane.md
  • assets/ascii-patterns/user-onboarding.md
  • assets/diagrams/README.md
  • assets/diagrams/architecture.html
  • assets/diagrams/bar.html
  • assets/diagrams/data-flow.html
  • assets/diagrams/dp-integration.html
  • assets/diagrams/dp-security-matrix.html
  • assets/diagrams/er.html
  • assets/diagrams/flowchart.html
  • assets/diagrams/gantt.html
  • assets/diagrams/high-level.html
  • assets/diagrams/import-drawio.html
  • assets/diagrams/import-mermaid.html
  • assets/diagrams/it-state.html
  • assets/diagrams/layers.html
  • assets/diagrams/line.html
  • assets/diagrams/loop-terminal.html
  • assets/diagrams/loop.html
  • assets/diagrams/medallion.html
  • assets/diagrams/nested.html
  • assets/diagrams/org-chart.html
  • assets/diagrams/process.html
  • assets/diagrams/pyramid.html
  • assets/diagrams/quadrant-consultant.html
  • assets/diagrams/quadrant.html
  • assets/diagrams/radar.html
  • assets/diagrams/scatter.html
  • assets/diagrams/sequence-oauth-dark.html
  • assets/diagrams/sequence-oauth-full.html
  • assets/diagrams/sequence-oauth.html
  • assets/diagrams/sequence.html
  • assets/diagrams/starter-dark.html
  • assets/diagrams/starter-full.html

FAQ

What does the sk-design-diagram skill do?

Creates self-contained HTML/SVG diagrams across 27 types with a skinnable editorial design system.

How do I install the sk-design-diagram skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the sk-design-diagram skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare sk-design-diagram with