botkits-diagram-design
use this when creating explainer diagrams (architecture, sequence, process, cards for posts) as HTML/SVG/PNG so they are branded and not ranking-dashboard slop
Install
npx skills add https://github.com/botkitsdev/botkits/tree/main/skills/design/botkits-diagram-design
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install botkitsdev-botkits@llmmart
git clone https://github.com/botkitsdev/botkits.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole botkitsdev/botkits collection as a plugin from our marketplace. Git is the plain clone.
README
botkits-diagram-design
Make one explainer diagram that teaches one thing, branded and not dashboard slop.
Use this when you need an architecture, sequence, process, loop or layer diagram, or a still card for a post, as HTML, SVG or PNG.
Install
npx skills add botkitsdev/botkits --skill botkits-diagram-design
To list every skill in the repo: npx skills add botkitsdev/botkits --list.
No CLI? Copy this folder into the skills folder your agent uses, and keep SKILL.md inside it. Copy the skill folder itself, not the category folder.
What it does
- Checks first if the idea needs a diagram. It draws only when order, flow, containment or connection carries meaning.
- Writes the caption first: one sentence the diagram proves. Then it picks the type, lists the nodes, and splits into an overview and a detail past about nine nodes or twelve arrows.
- Takes colors, fonts and spacing from the live site or the user's saved profile, and asks once if neither exists.
- Uses one accent for the one or two nodes the caption is about, borders instead of shadows, and labeled arrows. It never ships ranking dashboards, neon glow, or Mermaid auto-layout as a final design.
- Outputs one self-contained HTML file with inline SVG and a
<title>and<desc>, plus a 2x PNG for posts and ads. Social stills are 1200×675 unless the platform asks for another size. - Can add an optional line-draw clip timed by the botkits-motion-picker presets. The PNG stays the default, and rendered files stay out of git.
Before / after (example)
Before
A post needs a picture of a pipeline. The usual result is three equal summary cards on a dark background with a neon glow, an accent on every node, and no caption.
After
The caption is written first. The flow has labeled boxes and directed arrows on a grid. One accent marks the node the caption is about. The file is one HTML page with inline SVG, and the 2x PNG is opened and checked before handover.
Use it in
- Used daily: Grok Bot.
- Installs with
npx skills add(tested 18 Nov 2026): Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and Grok Build. - Supports the SKILL.md format (vendor docs): Claude apps (upload), ChatGPT (Business, Enterprise, Edu, Healthcare upload), and the other clients listed at agentskills.io.
- Other agents that support the Agent Skills format can load it. We have not run it there.
- No direct install yet in ChatGPT dots or Meta Muse. Paste the instructions from SKILL.md into a chat.
| Agent | Put this folder here |
|---|---|
| Grok Bot | Paste SKILL.md in a 1:1 chat and ask the Bot to save it as a skill. |
| Claude Code | .claude/skills/botkits-diagram-design/ or ~/.claude/skills/botkits-diagram-design/ |
| Codex | .agents/skills/botkits-diagram-design/ or ~/.agents/skills/botkits-diagram-design/ |
| Cursor | .agents/skills/botkits-diagram-design/ or .cursor/skills/botkits-diagram-design/ |
| Gemini CLI | .gemini/skills/botkits-diagram-design/ or .agents/skills/botkits-diagram-design/ (one folder deep only) |
| GitHub Copilot | .github/skills/botkits-diagram-design/ or .agents/skills/botkits-diagram-design/ |
| Grok Build | .grok/skills/botkits-diagram-design/ or ~/.grok/skills/botkits-diagram-design/ |
| Claude apps | Turn on code execution. ZIP this folder and upload it in Customize, Skills. |
Install tested is not run tested.
Links
- botkits.dev
- Instructions: SKILL.md
- Inspired by: Cathryn Lavery's diagram-design, the C4 model notation guide and Edward Tufte's idea of chartjunk. This skill works without the upstream pack, adds caption-first planning and a "should this be a diagram?" test, and adds an optional line-draw clip.
License: MIT
Skill manifest
Diagram design
Make one diagram that teaches one thing: architecture, a sequence, a process, a loop, a layer stack, or a still card for a post. Output is a self-contained HTML file with inline SVG, exported to PNG when it's going on social or into an ad. Works on its own; if Cathryn Lavery's diagram pack is installed, use its type references for layout detail.
Should this be a diagram?
Draw only when space carries meaning: order, flow, containment, or connection. If a short paragraph or a small table says it as well, write that instead. Never draw a one-box "diagram".
Plan before drawing
- Write the caption first: one sentence the diagram proves. If you can't, you don't know what to draw yet.
- Pick the type that matches the relationship: flow (process, pipeline), time (sequence, timeline), structure (layers, nesting, tree), or cycle (loop). One level of detail per diagram; zoom levels go in separate diagrams.
- List the nodes. Merge any two that always appear together. Past about nine nodes or twelve arrows, split into an overview and a detail.
- Get the brand: colors, fonts, and spacing from the live site or the user's saved profile. Ask once if neither exists. Never ship a default palette into a branded project.
Drawing rules
- Every box gets a short label and, if needed, a few words on what it does. Every arrow has a direction; label it when the relationship isn't obvious.
- One accent color for the one or two nodes the caption is about. Everything else stays neutral.
- Borders, not shadows. Flat fills. Text large enough to read on a phone at post size.
- Align to a grid. Even spacing. Lines don't cross unless they must.
- A title that says what and what scope. A legend only when shapes or colors carry meaning, as a single strip at the bottom.
- Remove anything that adds ink but no information: background textures, 3D, icons that repeat the label, gradients.
Never ship
- Ranking dashboards, two-column scorecards, or three equal summary cards as the default answer.
- Dark background with neon cyan or purple glow.
- An accent on every "important" node.
- Identical boxes for things that are different kinds (a person, a service, a database).
- Mermaid's auto-layout pasted as a final design. Mermaid is fine for drafts and inside PRs.
Social and ad stills
1200×675 (16:9) unless the platform asks for something else. One idea, big type, no legend. Run the caption through botkits-no-ai-slop.
Output
- A single HTML file with inline SVG and CSS, no external requests.
- SVG has a
<title>and<desc>for screen readers. - PNG export at 2x for posts and ads. Open the PNG and look at it before handing it over. That still is the default. Do not commit a rendered png, or any gif, mp4, or webm.
Optional line-draw clip
Skip this unless the user asks for motion. The PNG stays the default path.
- Animate the inline SVG as a line-draw. Prefer CSS so the timing matches a preset from botkits-motion-picker exactly. calm is the default. Measure each path (SVGGeometryElement.getTotalLength() works) and store the length in a custom property. Set
stroke-dasharrayandstroke-dashoffsetto that length, then animatestroke-dashoffsetto 0 over the preset duration and cubic-bezier. Whenprefers-reduced-motionis reduce, do not animate; leave the stroke fully drawn and ship the PNG only. - Vivus is the other option (readme). Its duration option counts frames, not milliseconds, so do not drop the preset's millisecond number straight into that option. Convert with frames ≈ milliseconds ÷ 1000 × the capture frame rate, and write down the frame count you passed. At 60fps the calm row is about 25 frames. Vivus follows strokes on path elements and does not draw a fill. Convert real outlines to paths, or stay with the CSS method.
- Follow the botkits-motion-picker rules: one moment on the page, and for the recording, short moving clips joined with fades, no held still, no zoom-in, and no push-in. The timing numbers stay the presets.
- Record a short clip with a headless browser, as webm or mp4. Keep that file outside git, along with any gif or rendered png.
@media (prefers-reduced-motion: no-preference) {
.draw {
stroke-dasharray: var(--len);
stroke-dashoffset: var(--len);
animation: draw 420ms cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
}
@keyframes draw {
to { stroke-dashoffset: 0; }
}
The 420ms curve is the calm row. If you switch preset, copy the new row from botkits-motion-picker. Do not invent a third duration.
Inspired by
- Cathryn Lavery, diagram-design (MIT). Does well: "deletion is the best move", one or two focal accents, a per-type complexity budget, and a style-guide gate before drawing. Missing: about 580 lines plus a required reference pack, so the skill cannot run without installing it first.
- C4 model, Notation (CC BY 4.0). Does well: every diagram gets a title with type and scope, a key, and labeled elements and relationships, so it stands alone. Missing: covers software architecture only and leaves visual style open.
- Edward Tufte's chartjunk idea, via Wikipedia. Does well: names decoration that adds ink without information. Missing: written about data graphics, with no steps for building a schematic.
What this version adds
- Standalone: works without the upstream pack, and uses it when present.
- Caption-first planning and a "should this be a diagram?" test.
- Dani's never-ship list, social still sizes, and accessible SVG plus a look-at-the-PNG check.
- An optional line-draw clip (CSS stroke offset, or Vivus) timed by the botkits-motion-picker presets. The PNG stays the default. The clip stays out of git.
Files (botkits)
-
README.md 3.9 KB
# botkits-diagram-design Make one explainer diagram that teaches one thing, branded and not dashboard slop. Use this when you need an architecture, sequence, process, loop or layer diagram, or a still card for a post, as HTML, SVG or PNG. ## Install ```sh npx skills add botkitsdev/botkits --skill botkits-diagram-design ``` To list every skill in the repo: `npx skills add botkitsdev/botkits --list`. No CLI? Copy this folder into the skills folder your agent uses, and keep `SKILL.md` inside it. Copy the skill folder itself, not the category folder. ## What it does - Checks first if the idea needs a diagram. It draws only when order, flow, containment or connection carries meaning. - Writes the caption first: one sentence the diagram proves. Then it picks the type, lists the nodes, and splits into an overview and a detail past about nine nodes or twelve arrows. - Takes colors, fonts and spacing from the live site or the user's saved profile, and asks once if neither exists. - Uses one accent for the one or two nodes the caption is about, borders instead of shadows, and labeled arrows. It never ships ranking dashboards, neon glow, or Mermaid auto-layout as a final design. - Outputs one self-contained HTML file with inline SVG and a `<title>` and `<desc>`, plus a 2x PNG for posts and ads. Social stills are 1200×675 unless the platform asks for another size. - Can add an optional line-draw clip timed by the [botkits-motion-picker](../botkits-motion-picker/) presets. The PNG stays the default, and rendered files stay out of git. ## Before / after (example) ### Before A post needs a picture of a pipeline. The usual result is three equal summary cards on a dark background with a neon glow, an accent on every node, and no caption. ### After The caption is written first. The flow has labeled boxes and directed arrows on a grid. One accent marks the node the caption is about. The file is one HTML page with inline SVG, and the 2x PNG is opened and checked before handover. ## Use it in - Used daily: Grok Bot. - Installs with `npx skills add` (tested 18 Nov 2026): Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and Grok Build. - Supports the SKILL.md format (vendor docs): Claude apps (upload), ChatGPT (Business, Enterprise, Edu, Healthcare upload), and the other clients listed at [agentskills.io](https://agentskills.io/clients). - Other agents that support the Agent Skills format can load it. We have not run it there. - No direct install yet in ChatGPT dots or Meta Muse. Paste the instructions from [SKILL.md](SKILL.md) into a chat. | Agent | Put this folder here | | --- | --- | | Grok Bot | Paste [SKILL.md](SKILL.md) in a 1:1 chat and ask the Bot to save it as a skill. | | Claude Code | `.claude/skills/botkits-diagram-design/` or `~/.claude/skills/botkits-diagram-design/` | | Codex | `.agents/skills/botkits-diagram-design/` or `~/.agents/skills/botkits-diagram-design/` | | Cursor | `.agents/skills/botkits-diagram-design/` or `.cursor/skills/botkits-diagram-design/` | | Gemini CLI | `.gemini/skills/botkits-diagram-design/` or `.agents/skills/botkits-diagram-design/` (one folder deep only) | | GitHub Copilot | `.github/skills/botkits-diagram-design/` or `.agents/skills/botkits-diagram-design/` | | Grok Build | `.grok/skills/botkits-diagram-design/` or `~/.grok/skills/botkits-diagram-design/` | | Claude apps | Turn on code execution. ZIP this folder and upload it in Customize, Skills. | Install tested is not run tested. ## Links - [botkits.dev](https://botkits.dev) - Instructions: [SKILL.md](SKILL.md) - Inspired by: [Cathryn Lavery's diagram-design](https://github.com/cathrynlavery/diagram-design), the [C4 model notation guide](https://c4model.com/diagrams/notation) and [Edward Tufte's idea of chartjunk](https://en.wikipedia.org/wiki/Chartjunk). This skill works without the upstream pack, adds caption-first planning and a "should this be a diagram?" test, and adds an optional line-draw clip. License: MIT -
SKILL.md 6.2 KB
--- name: botkits-diagram-design description: >- use this when creating explainer diagrams (architecture, sequence, process, cards for posts) as HTML/SVG/PNG so they are branded and not ranking-dashboard slop --- # Diagram design Make one diagram that teaches one thing: architecture, a sequence, a process, a loop, a layer stack, or a still card for a post. Output is a self-contained HTML file with inline SVG, exported to PNG when it's going on social or into an ad. Works on its own; if Cathryn Lavery's diagram pack is installed, use its type references for layout detail. ## Should this be a diagram? Draw only when space carries meaning: order, flow, containment, or connection. If a short paragraph or a small table says it as well, write that instead. Never draw a one-box "diagram". ## Plan before drawing 1. Write the caption first: one sentence the diagram proves. If you can't, you don't know what to draw yet. 2. Pick the type that matches the relationship: flow (process, pipeline), time (sequence, timeline), structure (layers, nesting, tree), or cycle (loop). One level of detail per diagram; zoom levels go in separate diagrams. 3. List the nodes. Merge any two that always appear together. Past about nine nodes or twelve arrows, split into an overview and a detail. 4. Get the brand: colors, fonts, and spacing from the live site or the user's saved profile. Ask once if neither exists. Never ship a default palette into a branded project. ## Drawing rules - Every box gets a short label and, if needed, a few words on what it does. Every arrow has a direction; label it when the relationship isn't obvious. - One accent color for the one or two nodes the caption is about. Everything else stays neutral. - Borders, not shadows. Flat fills. Text large enough to read on a phone at post size. - Align to a grid. Even spacing. Lines don't cross unless they must. - A title that says what and what scope. A legend only when shapes or colors carry meaning, as a single strip at the bottom. - Remove anything that adds ink but no information: background textures, 3D, icons that repeat the label, gradients. ## Never ship - Ranking dashboards, two-column scorecards, or three equal summary cards as the default answer. - Dark background with neon cyan or purple glow. - An accent on every "important" node. - Identical boxes for things that are different kinds (a person, a service, a database). - Mermaid's auto-layout pasted as a final design. Mermaid is fine for drafts and inside PRs. ## Social and ad stills 1200×675 (16:9) unless the platform asks for something else. One idea, big type, no legend. Run the caption through botkits-no-ai-slop. ## Output - A single HTML file with inline SVG and CSS, no external requests. - SVG has a `<title>` and `<desc>` for screen readers. - PNG export at 2x for posts and ads. Open the PNG and look at it before handing it over. That still is the default. Do not commit a rendered png, or any gif, mp4, or webm. ## Optional line-draw clip Skip this unless the user asks for motion. The PNG stays the default path. 1. Animate the inline SVG as a line-draw. Prefer CSS so the timing matches a preset from [botkits-motion-picker](../botkits-motion-picker/SKILL.md#presets) exactly. calm is the default. Measure each path (SVGGeometryElement.getTotalLength() works) and store the length in a custom property. Set `stroke-dasharray` and `stroke-dashoffset` to that length, then animate `stroke-dashoffset` to 0 over the preset duration and cubic-bezier. When `prefers-reduced-motion` is reduce, do not animate; leave the stroke fully drawn and ship the PNG only. 2. Vivus is the other option ([readme](https://github.com/maxwellito/vivus/blob/master/readme.md)). Its duration option counts frames, not milliseconds, so do not drop the preset's millisecond number straight into that option. Convert with frames ≈ milliseconds ÷ 1000 × the capture frame rate, and write down the frame count you passed. At 60fps the calm row is about 25 frames. Vivus follows strokes on path elements and does not draw a fill. Convert real outlines to paths, or stay with the CSS method. 3. Follow the [botkits-motion-picker](../botkits-motion-picker/SKILL.md) rules: one moment on the page, and for the recording, short moving clips joined with fades, no held still, no zoom-in, and no push-in. The timing numbers stay the [presets](../botkits-motion-picker/SKILL.md#presets). 4. Record a short clip with a headless browser, as webm or mp4. Keep that file outside git, along with any gif or rendered png. ```css @media (prefers-reduced-motion: no-preference) { .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 420ms cubic-bezier(0.33, 0, 0.2, 1) forwards; } } @keyframes draw { to { stroke-dashoffset: 0; } } ``` The 420ms curve is the calm row. If you switch preset, copy the new row from [botkits-motion-picker](../botkits-motion-picker/SKILL.md#presets). Do not invent a third duration. ## Inspired by - [Cathryn Lavery, diagram-design](https://github.com/cathrynlavery/diagram-design) (MIT). Does well: "deletion is the best move", one or two focal accents, a per-type complexity budget, and a style-guide gate before drawing. Missing: about 580 lines plus a required reference pack, so the skill cannot run without installing it first. - [C4 model, Notation](https://c4model.com/diagrams/notation) (CC BY 4.0). Does well: every diagram gets a title with type and scope, a key, and labeled elements and relationships, so it stands alone. Missing: covers software architecture only and leaves visual style open. - [Edward Tufte's chartjunk idea, via Wikipedia](https://en.wikipedia.org/wiki/Chartjunk). Does well: names decoration that adds ink without information. Missing: written about data graphics, with no steps for building a schematic. ## What this version adds - Standalone: works without the upstream pack, and uses it when present. - Caption-first planning and a "should this be a diagram?" test. - Dani's never-ship list, social still sizes, and accessible SVG plus a look-at-the-PNG check. - An optional line-draw clip (CSS stroke offset, or Vivus) timed by the [botkits-motion-picker](../botkits-motion-picker/SKILL.md#presets) presets. The PNG stays the default. The clip stays out of git.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.