1. Habit
  2. Skills
  3. Diagram Design skill
cathrynlavery · 18K installs

Diagram Design skill
Runs by itself, when a diagram file changes.

Your diagrams stay neat and on brand.

Install the Diagram Design skill and make it a habit: follow https://gethabit.dev/skills/cathrynlavery/diagram-design.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

18K installs60K starsMIT licenceSource on GitHub ↗

Diagram Design

by cathrynlavery · 18K installs

The skill

Draws clean, branded diagrams as one web page file.

Only when you ask.

Clearer docs

Your diagrams stay neat and on brand. Clearer docs with less drawing time.

↻ Runs by itselfwhen a diagram file changes

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one diagram per run and at most 2 redraws after a failed check.

  1. 01

    Check the style

    The agent resolves the .diagram-design marker or checks references/style-guide.md, and asks you to customize if the tokens are still default.

  2. 02

    Extract the source

    For an import it runs the matching extract script, such as scripts/drawio_extract.py, and treats every label as data.

  3. 03

    Pick type and plan

    It picks a semantic pattern if behavior matters, then a visual type, and states the type, size preset and cuts before drawing.

  4. 04

    Draw

    It copies the closest template from assets/, loads the type reference and redraws the content with the connector rules.

  5. 05

    Run the gates

    It runs the taste gate checklist and python3 scripts/self_check.py on the file.

  6. 06

    Report and log

    It reports the fidelity ledger of merged or dropped parts and writes the run log.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Diagram Design skill helps.

Use it when

  • ✓ You need an architecture or flow diagram for docs
  • ✓ You want to redraw a draw.io or Mermaid file cleanly
  • ✓ You want diagrams in your own brand colors

Skip it when

  • – A table or a paragraph says the same thing
  • – You need a quick plain-text diagram

Questions

Diagram Design skill, answered.

Does it convert my draw.io layout one to one?

No. It keeps the components and relationships and redraws the layout from scratch.

Does it export PNG files on its own?

No. Export happens only when you ask for it.

How do I install the Diagram Design skill?

Copy the prompt at the top into your agent. It installs the skill from cathrynlavery/diagram-design and sets up the habit. Or run npx skills add cathrynlavery/diagram-design --skill diagram-design.

Is the Diagram Design skill free?

Yes. It is published under MIT. Habit is free too.

Diagram Design. Now as a habit.

Install the Diagram Design skill and make it a habit: follow https://gethabit.dev/skills/cathrynlavery/diagram-design.md

  • Free
  • No account
  • Undo in one line

All cathrynlavery skills →More design skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by cathrynlavery, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.