Diagram maker

From metaspartan/cybara · View interactive version

Diagram maker is an AI agent skill from the GitHub repository metaspartan/cybara. Generate clean SVG/HTML diagrams for architecture, flows, sequences, ER diagrams, and whiteboards. Use when the user asks to "draw", "diagram", "visualize architecture/flow", or wants a schematic.

How to use this skill

Skill file

Diagram Maker

Create clear, correct diagrams as standalone SVG or self-contained HTML files. Default to SVG (inline-able, crisp at any size); use HTML when interactivity or Mermaid/Excalidraw-style rendering is wanted.

When to use (trigger phrases)

How to diagram

  1. Pick the right form for the request:
  1. Prefer Mermaid when the user wants editable/portable output — emit a fenced `mermaid block (flowchart / sequenceDiagram / erDiagram / stateDiagram-v2). Many tools render it.
  2. For SVG/HTML, write the file with the write tool, then open it. Keep a viewBox, a consistent palette, and readable font sizes (≥12px). Label every arrow.
  3. Never fabricate relationships. If the diagram encodes code, ground every node/edge in actual files you read first.

Output conventions

Mermaid quick templates

flowchart TD
  A[Start] --> B{Decision}
  B -- yes --> C[Do thing]
  B -- no --> D[Skip]
  C --> E[(Database)]

sequenceDiagram
  participant U as User
  participant A as API
  participant DB as Database
  U->>A: POST /order
  A->>DB: insert
  DB-->>A: ok
  A-->>U: 201 Created

For ER diagrams use erDiagram; for state use stateDiagram-v2.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.