Excalidraw visual designer

From guanyang/super-publisher · View interactive version

Excalidraw visual designer is an AI agent skill from the GitHub repository guanyang/super-publisher. Create and revise editable visual drawings directly in the Excalidraw website through the in-app browser. Use when the user asks Codex to draw in Excalidraw or update an Excalidraw canvas, including diagrams, flowcharts, architecture sketches, process maps, infographics, teaching visuals, product ex

How to use this skill

Skill file

Excalidraw Visual Designer

Core Workflow

Use the in-app browser and the existing Excalidraw tab when present.

  1. Read and follow the browser:control-in-app-browser skill before controlling the browser.
  2. Claim the existing https://excalidraw.com/ tab instead of opening a duplicate.
  3. Keep the browser visible when the user is reviewing the drawing.
  4. Prefer Excalidraw clipboard JSON import over manual dragging for complex layouts.
  5. After each substantial visual change, take a screenshot and inspect it for legibility, overlap, and visual quality.
  6. Finalize with the Excalidraw tab kept as deliverable.

Output Types

Choose the structure by intent:

Use editable Excalidraw text and shape elements for copy, labels, arrows, process structure, prices, CTA, and layout blocks. Use embedded SVG image elements only when a detailed illustration would look crude if built from primitive Excalidraw shapes.

Visual Construction Rules

Connector Routing Rules

For any Excalidraw output that uses connectors, arrows, leader lines, callouts, or directional lines, route those lines before finalizing layout. This applies across all output types, including diagrams, architecture maps, process maps, infographics, product explanations, whiteboard sketches, posters, flyers, menu boards, and social graphics.

Before importing any line-based scene, inspect the scene spec or screenshot for these common failures:

Clipboard Import

Excalidraw accepts clipboard JSON with:

{
  "type": "excalidraw/clipboard",
  "elements": [],
  "files": {}
}

Import flow:

  1. Generate or construct the clipboard JSON.
  2. Write it to the browser clipboard with tab.clipboard.writeText(...).
  3. Click the Excalidraw canvas.
  4. Press paste with the platform shortcut.
  5. Press Escape after paste so the final view is not obscured by selection boxes.

Clipboard Generator Script

This skill includes a general clipboard JSON generator. It has no business-domain defaults. Create a task-specific scene spec during the current task, then convert that spec into Excalidraw clipboard JSON.

Use the active Python interpreter for the current environment. In an activated virtual environment this is usually python; in other environments it may be another command. Do not hard-code a machine-specific interpreter path in the skill.

<python> scripts/make_excalidraw_clipboard.py --spec scene-spec.json --output scene.excalidraw-clipboard.json

If no --spec is provided, the script emits an empty valid clipboard payload. A minimal generic spec looks like:

{
  "elements": [
    {"type": "rectangle", "x": 80, "y": 80, "width": 360, "height": 180, "backgroundColor": "#ffffff"},
    {"type": "text", "x": 110, "y": 120, "text": "Editable title", "fontSize": 32},
    {"type": "arrow", "x": 120, "y": 220, "points": [[0, 0], [180, 0]]}
  ]
}

Quality Rules

Check these before finishing:

Common Revision Pattern

When the user critiques one area:

  1. Name the issue plainly.
  2. Scope the change to that area unless the surrounding layout causes the problem.
  3. Re-import a revised scene or replace the relevant element.
  4. Screenshot-check the revised area and adjacent text.
  5. Keep the Excalidraw tab open for further editing.
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.