What it is
Diagram Design is an agent skill for Claude Code, Codex, Copilot, Cursor and other Agent Skills hosts. You describe a diagram in plain words, and the agent picks the type, states its plan, and writes one .html file with inline SVG that opens by double-clicking. It covers 44 diagram types, each in minimal light, minimal dark and full-editorial variants, with design rules baked in: one accent color, 1px hairlines, no shadows, and coordinates on a 4px grid. An onboarding step can pull your site's palette and fonts so later diagrams match your brand.
Who it's for
- Developers and writers who want publishable, on-brand diagrams for blog posts and docs without fighting a drawing tool
- Users of Claude Code, Codex, GitHub Copilot, Factory Droid, Pi, Cursor and other Agent Skills-compatible hosts
- People who want to redraw existing Mermaid, draw.io or Excalidraw diagrams in a consistent editorial style
Requirements
Requirements
- An agent host that reads Agent Skills (e.g. Claude Code, Codex, GitHub Copilot, Factory Droid, Pi, Cursor, Gemini CLI, Cline, Windsurf, Amp)
- npx, for the cross-agent
skillsCLI install - A modern browser to open the output HTML files (no build step, JavaScript, or external image dependency)
Setup
Install on any Agent Skills host
Installs the whole skill into the host roots you select. This standalone install covers the Agent Skill only, not the /export-diagram, /import-mermaid, /profile and /doctor commands. Update with
npx skills update diagram-design.bashnpx skills add cathrynlavery/diagram-designClaude Code plugin marketplace
Gives updates and the slash commands. Auto-update can be enabled via /plugin → Marketplaces → diagram-design → Enable auto-update.
text/plugin marketplace add cathrynlavery/diagram-design /plugin install diagram-design@diagram-designCodex
Codex refreshes configured Git marketplaces at startup. To fetch immediately, run
codex plugin marketplace upgrade diagram-designand start a new session.bashcodex plugin marketplace add cathrynlavery/diagram-design codex plugin add diagram-design@diagram-designGitHub Copilot
Installs the shared skill plus doctor, export, import and profile capabilities. Confirm with
copilot skill list(or/skillsin an interactive session).bashcopilot plugin marketplace add cathrynlavery/diagram-design copilot plugin install diagram-design@diagram-designFactory Droid
Droid tracks Git plugins by commit. Update with
droid plugin marketplace update diagram-design, thendroid plugin update diagram-design@diagram-design --scope user, and start a new session.bashdroid plugin marketplace add https://github.com/cathrynlavery/diagram-design droid plugin install diagram-design@diagram-design --scope userPi
Run
/reloadin an open Pi session. Use/skill:diagram-designto invoke it explicitly. Update withpi update --extensions.bashpi install https://github.com/cathrynlavery/diagram-design
Examples
Architecture diagram request
PromptMake me an architecture diagram of my app: frontend, backend, database, Redis cache.Expected output: Plain-language request; the agent picks the diagram type, states its plan, and writes a single .html file.
Quadrant request
PromptI need a quadrant showing Q2 projects by impact vs effort.Expected output: Shows that the agent chooses an appropriate type (here quadrant) from the 44 available.
Sequence diagram request
PromptGive me a sequence of a bearer call with token refresh on 401.Expected output: Produces a sequence diagram of messages over time from a short description.
Brand onboarding
Promptonboard diagram-design to https://yoursite.comExpected output: The agent fetches the homepage, extracts the dominant palette and font stack, maps them to roles (paper, ink, muted, accent, link), shows a proposed diff, and writes the tokens to references/style-guide.md once you approve.
Pros & cons
Pros
- Pro:44 diagram types, each in minimal light, minimal dark and full-editorial variants
- Pro:Output is one self-contained HTML+SVG file with no build step, JavaScript, or external image dependency
- Pro:Onboarding pulls palette and fonts from your website so diagrams match your brand, with a fidelity receipt
- Pro:Layout is placed on a 4px grid, with CI checks for overlaps and clipping
Cons
- Con:Output quality depends on the model, and the same prompt can lay out differently twice
- Con:Output is not an editable source format: no text to diff in a pull request and no canvas to drag boxes on
- Con:The README says Mermaid is the better fit for docs that live in Git and change every sprint
Images
