Skills Prompts Hues

Popular categories

Agent skill · Diagram Design

/diagram-design Draw publishable, on-brand diagrams instead of generic boxes

The diagram-design skill guides an agent from request to a finished HTML file with inline SVG. It checks your brand tokens on first use, chooses a behaviour pattern and visual type, states its plan, then draws within a node and arrow budget using strict connector rules. A pre-output checklist and bundled scripts verify geometry and accessibility.

Works with

  • Cursor, Cline, Gemini CLI, Windsurf, Amp and other Agent Skills hosts
  • Claude Code
  • Codex
  • GitHub Copilot
  • Factory Droid
  • Qoder
  • Pi

Used forDiagrams and codebase maps

When to use it

  • You need an architecture, sequence or flowchart for a blog post or slide deck.
  • You want an existing Mermaid block or draw.io file redrawn to look consistent.
  • You publish diagrams for several clients and each needs its own colours and fonts.

How it works

  1. 1
    Check the style guide

    On the first diagram in a project the agent sees whether tokens are still default and offers onboarding from a URL, a design system, pasted tokens or a saved profile.

  2. 2
    Choose pattern and type

    When behaviour carries the meaning it picks one of nine semantic patterns first, then the nearest of fifty visual types, and loads that type's reference.

  3. 3
    State the plan

    It tells you the type, size preset and what the budget will force out, so you can redirect before it draws.

  4. 4
    Draw to the rules

    It copies a template, keeps nodes on a 4px grid, uses orthogonal connectors with masked labels and limits the accent to one or two elements.

  5. 5
    Run the taste gate

    It works through removal, signal, technical and typography checks and runs the self-check and geometry scripts before handing over.

What it steers the agent away from

  • Shadows, heavily rounded boxes and cyan or purple glow on dark backgrounds
  • Diagonal connectors, overlapping lines and labels sitting on strokes
  • Drawing a diagram where a table or paragraph would do

Install this skill

It installs with the Diagram Design pack.

Cursor, Cline, Gemini CLI, Windsurf, Amp and other Agent Skills hostsInstalls the skill only; update it with npx skills update diagram-design.
npx skills add cathrynlavery/diagram-design
Claude Code (plugin)Adds the slash commands; turn on auto-update for the marketplace in /plugin.
/plugin marketplace add cathrynlavery/diagram-design
/plugin install diagram-design@diagram-design
CodexCodex refreshes the marketplace at startup.
codex plugin marketplace add cathrynlavery/diagram-design
codex plugin add diagram-design@diagram-design
GitHub CopilotIncludes the doctor, export, import and profile capabilities.
copilot plugin marketplace add cathrynlavery/diagram-design
copilot plugin install diagram-design@diagram-design
Factory DroidDroid tracks the plugin by commit rather than version number.
droid plugin marketplace add https://github.com/cathrynlavery/diagram-design
droid plugin install diagram-design@diagram-design --scope user
QoderInstalls the native plugin from a local clone.
git clone https://github.com/cathrynlavery/diagram-design.git
qoder plugins validate ./diagram-design
qoder plugins install ./diagram-design
qoder plugins list
PiRun /reload in an open session, and pi update --extensions to pull updates.
pi install https://github.com/cathrynlavery/diagram-design

Commands come from the author’s README; check it for changes before you run them.

Questions

What happens to my source layout on import?

It is discarded. The agent keeps components, relationships, grouping and direction, redraws them and reports what it merged, collapsed or dropped.

Can diagrams be animated?

Optionally. Reveal, step and loop modes exist, but the default is static and every animated file must work without JavaScript and under reduced motion.

Summary by trendhub. The skill itself lives in cathrynlavery/diagram-design/skills/diagram-design by Cathryn Lavery (MIT); read the full, current text there.