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

excalidraw

Skill17 starsChanged 2 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

69 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use heartmula, webhook-subscriptions 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.
  • math-incSkill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 9 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 5 projects that use this

  • john-data-chenSkill

    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 7 projects that use this

  • math-incSkill

    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

  • AlekseiULSkill

    TubeScribe

    YouTube video summarizer with speaker detection, formatted documents, and audio output. Works out of the box with macOS built-in TTS. Optional recommended tools (pandoc, ffmpeg, mlx-audio) enhance quality. Requires internet for YouTube access. No paid APIs or subscriptions. Use when user sends a YouTube URL or asks to summarize/transcribe a YouTube video.

    Also in 3 projects that use this

  • mae616Skill

    p5js

    p5.js(クリエイティブコーディング)のProcessing由来「コードでスケッチ」思想を軸に、setup/drawループ・座標系・インタラクション・パフォーマンス最適化を整理する。p5.js、Processing、クリエイティブコーディング、ジェネラティブアート、インタラクティブ表現、ビジュアルプログラミング、Canvas描画、パーティクル、フラクタル、ノイズ表現に関する相談で必ず使うこと。ユーザーが「コードでアート」「動くビジュアル」「インタラクティブな描画」と言った場合にも適用する。

    Also in 10 projects that use this

  • +5 more from math-inc

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 64 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 64 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.