agentleFS
ciberjohnciberjohn/Hermes-Skills/excalidraw/SKILL.md

excalidraw

Skill14 starsChanged 3 months agoMITView on GitHub

Create Excalidraw diagrams using native Hermes tools. Generates valid .excalidraw JSON, saves to a GitHub repo, and provides the sharing instance URL for viewing/editing. Replaces MCP-based diagram tools — no external dependency.

  • Commits and pushes

51 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use minecraft-modpack-server, pokemon-player and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • braxtonROSE4Skill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 5 projects that use this

  • braxtonROSE4Skill

    pokemon-player

    Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.

    Also in 5 projects that use this

  • kevinnftSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 8 projects that use this

  • AlexAI-MCPSkill

    native-mcp

    MCP server integration in Claude Code — add servers to .mcp.json, configure transports, and use their tools natively.

    Also in 5 projects that use this

  • AlexAI-MCPSkill

    youtube-content

    YouTube research and content operations — search, download, transcript extraction, and audio processing via yt-dlp.

    Also in 14 projects that use this

  • bergsideSkill

    sketch

    A friendly, hand-drawn sketch interface inspired by pencil illustrations on warm cream paper. Soft teal brand accents, hand-written display headings, rounded pill controls.

    Also in 10 projects that use this

  • +4 more from braxtonROSE4
  • +1 more from AlexAI-MCP

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create Excalidraw diagrams and save them to a diagrams GitHub repo using Hermes tools directly.

    line 13
  2. Distinctive:

    Ask the user what the diagram should show.

    line 65
  3. Very specific:

    Use the bundled python_helpers.py (in this skill directory) or inline the helper functions to generate diagram JSON programmatically.

    line 135
  4. Very specific:

    Container binding is required: Do NOT use "label": {"text": "..."} on shapes — it is silently ignored by Excalidraw.

    line 146
  5. Distinctive:

    The repo path is ephemeral: if stored in a temp directory.

    line 149

“Common” is measured: kept by at least 6 in 10 of the 46 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Excalidraw — Hermes-Native Diagram Pipeline

Create Excalidraw diagrams and save them to a diagrams GitHub repo using Hermes tools directly. No MCP dependency — generates standard .excalidraw JSON files.

Prerequisites

RequirementDetails
GitHub repoA Git repository (public or private) to store .excalidraw files
Local cloneClone your diagrams repo to {{EXCALIDRAW_REPO_PATH}}
Git authSSH key or credential helper configured for the remote
Python 3Used for generating diagram JSON via helper functions
Excalidraw instance (optional)Self-hosted or https://excalidraw.com to view/edit

Configuration Variables

Set these environment variables or substitute them directly in commands:

VariableExamplePurpose
{{EXCALIDRAW_REPO_PATH}}/path/to/excalidraw-diagramsLocal clone of your diagrams repo
{{EXCALIDRAW_REPO_URL}}https://github.com/username/excalidraw-diagrams.gitRemote for cloning/pushing
{{EXCALIDRAW_INSTANCE_URL}}http://localhost:3002 or https://excalidraw.comURL of your Excalidraw instance

Repo Folder Map (suggested)

FolderUse case
architecture/System architecture, server layout, agent interconnections
blog-posts/Article concept maps, technical process diagrams, comparison charts
podcasts/Episode visuals, threat maps, segment flow diagrams
videos/Storyboards, flow diagrams, visual hooks for short-form video
misc/Anything that doesn't fit above

When to Use

  • User says "draw a diagram of..." or "create a visual for..."
  • User needs an architecture diagram, flow chart, topology map, or concept sketch
  • User wants visuals for a blog post, presentation, video, or documentation

Pipeline Steps

Step 1: Sync the diagrams repo

terminal(command="if [ ! -d {{EXCALIDRAW_REPO_PATH}}/.git ]; then git clone {{EXCALIDRAW_REPO_URL}} {{EXCALIDRAW_REPO_PATH}}; else git -C {{EXCALIDRAW_REPO_PATH}} pull --ff-only origin main; fi", timeout=30)

Step 2: Determine the target folder

Match the diagram purpose to a repo folder from the map above. Default to misc/ if unsure.

Step 3: Design and generate the diagram

Ask the user what the diagram should show. Clarify:

  • What elements need to be on the diagram (boxes, labels, connections)
  • Which direction the flow goes (top-to-bottom, left-to-right)
  • Any colour coding needed

Then write valid Excalidraw JSON. Use the Python generator approach to produce clean, structured diagrams.

Step 4: Create the diagram file

Name the file using kebab-case (e.g. rag-chatbot-architecture.excalidraw).

Save to the correct folder under the repo:

terminal(command="mkdir -p {{EXCALIDRAW_REPO_PATH}}/TARGET_FOLDER && cat > {{EXCALIDRAW_REPO_PATH}}/TARGET_FOLDER/FILENAME.excalidraw << 'JSONEOF'
[GENERATED JSON CONTENT]
JSONEOF", timeout=10)

Or for larger diagrams, write the JSON to a temp file then copy:

terminal(command="python3 /tmp/gen_diagram.py && cp /tmp/diagram_output.json {{EXCALIDRAW_REPO_PATH}}/TARGET_FOLDER/FILENAME.excalidraw", timeout=15)

Step 5: Commit and push

terminal(command="cd {{EXCALIDRAW_REPO_PATH}} && git add . && git commit -m 'diagram: DESCRIPTION' && git push", timeout=30)

Step 6: Report back

Tell the user:

  • The diagram file path in the repo: TARGET_FOLDER/FILENAME.excalidraw
  • They can view/edit at {{EXCALIDRAW_INSTANCE_URL}} (self-hosted instance or excalidraw.com)
  • Or drag-and-drop onto https://excalidraw.com for instant viewing (no account needed)

Excalidraw JSON Structure

A valid .excalidraw file has this structure:

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [
    { /* shapes, text, arrows */ }
  ],
  "appState": {
    "gridSize": null,
    "viewBackgroundColor": "#ffffff"
  }
}

Colour Palette (Standard Excalidraw)

UseColourFill Variant
Primary / Blue#1971c2 (stroke)#a5d8ff (fill)
Amber / Orange#e67700 (stroke)#ffec99 (fill)
Success / Green#2f9e44 (stroke)#b2f2bb (fill)
Error / Red#c92a2a (stroke)#ffc9c9 (fill)
Accent / Purple#6741d9 (stroke)#d0bfff (fill)
Neutral / Grey#495057 (stroke)#dee2e6 (fill)

Python Generation Approach

Use the bundled python_helpers.py (in this skill directory) or inline the helper functions to generate diagram JSON programmatically.

The python_helpers.py file provides:

  • rect(id, x, y, w, h, label, fill="#a5d8ff") → Returns (rectangle_element, text_element) tuple with boundElements and containerId wired up correctly.
  • arrow(id, x, y, dx, dy, start_id, end_id) → Returns an arrow element with startBinding and endBinding set.
  • text(id, x, y, w, h, text, container_id=None, **kwargs) → Returns a text element (bound or standalone).
  • diagram(title, elements, app_state=None) → Wraps elements into a complete .excalidraw document.

Pitfalls

  • Container binding is required. Do NOT use "label": {"text": "..."} on shapes — it is silently ignored by Excalidraw. Use boundElements on the shape + a separate text element with containerId.
  • Standalone text (not bound to a shape) needs "containerId": null.
  • Camera/pseudo-elements (cameraUpdate) are NOT valid Excalidraw elements — do not include them in the JSON. They are MCP-specific.
  • The repo path is ephemeral if stored in a temp directory. Ensure the clone persists or re-clone on each run.
  • Git auth: Private repos require SSH key or credential helper. If push fails, the JSON file still exists locally — report the error.
  • Large diagrams with many elements can produce JSON files exceeding 100KB. Consider splitting complex diagrams into multiple files. 10–15 elements is a comfortable size for one diagram.
  • Fill colours for labels: set "backgroundColor": "transparent" on text elements so they don't obscure the shape's fill colour.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.