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
- 1Check 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.
- 2Choose 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.
- 3State the plan
It tells you the type, size preset and what the budget will force out, so you can redirect before it draws.
- 4Draw 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.
- 5Run 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-designClaude 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-designCodexCodex refreshes the marketplace at startup.
codex plugin marketplace add cathrynlavery/diagram-design
codex plugin add diagram-design@diagram-designGitHub CopilotIncludes the doctor, export, import and profile capabilities.
copilot plugin marketplace add cathrynlavery/diagram-design
copilot plugin install diagram-design@diagram-designFactory 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 userQoderInstalls 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 listPiRun /reload in an open session, and pi update --extensions to pull updates.
pi install https://github.com/cathrynlavery/diagram-designCommands 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.