Excalidraw architecture

From cubxxw/blog · View interactive version

Excalidraw architecture is an AI agent skill from the GitHub repository cubxxw/blog. Create, revise, render, and review polished Excalidraw architecture diagrams with editable .excalidraw sources, hand-drawn styling, clear routes, V1 solid versus later dashed semantics, and SVG/PNG screenshot QA. Use for product architecture, system architecture, workflows, data flows, platform maps

How to use this skill

Skill file

Excalidraw Architecture

Create diagrams that explain a decision or route, not decorated inventories.

Deliverables

Unless the user narrows the request, deliver:

  1. editable .excalidraw;
  2. reviewable .svg and .png;
  3. a one-paragraph reading guide;
  4. the final scene opened in Excalidraw when browser delivery is useful.

Use solid strokes for V1/current scope and dashed strokes for later scope. Add a

visible legend. Do not reuse dashed strokes for uncertainty in the same

architecture diagram.

Workflow

  1. Read before drawing. Inspect the source notes, repository, existing

architecture, and audience. Write down the one question the diagram answers.

  1. Freeze semantics. Separate current, later, external, derived, and

authoritative components. Identify the main route, feedback route, trust

boundary, and forbidden shortcuts.

  1. Choose one composition.
  1. Sketch hierarchy. Use 5-9 primary groups. Give the primary route the

shortest visual path. Put details inside labeled bands, not nested cards.

  1. Build the scene. Follow

visual-system.md and

json-contract.md. Mark scope-bearing elements

with customData.phase: "v1" or "later".

  1. Render and validate.

```bash

node ~/.codex/skills/excalidraw-architecture/scripts/render-excalidraw.mjs \

path/to/diagram.excalidraw --png path/to/diagram.png

node ~/.codex/skills/excalidraw-architecture/scripts/validate-excalidraw.mjs \

path/to/diagram.excalidraw --png path/to/diagram.png

```

  1. View the full-resolution PNG. Fix clipping, collisions, weak hierarchy,

bad wrapping, crowded arrows, excess whitespace, and route ambiguity. Render

again after every meaningful edit.

  1. Audit the meaning. Trace every important arrow. Confirm that readers

cannot mistake a derived view for a source of truth or a proposal for an

executed action.

Drawing Rules

arbitrary box corners.

only for a deliberately rough annotation.

current Excalidraw CJK hand-drawn fallback. Use Nunito (6) when dense

technical copy needs a quieter voice.

Completion Gate

Finish only when:

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.