Agent skill

Drawing Diagrams

by dxos in dxos/dxos

Draw an architecture diagram of DXOS code (a package, a module graph, a subsystem) by writing plugin-illustrator's semantic diagram DSL (.dx), rendering it, and looking at the image before showing it.

Custom licenceAuto-check passedDevelopment

Install Drawing Diagrams

skills CLI
$ npx skills add dxos/dxos --skill drawing-diagrams -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dxos/dxos drawing-diagrams --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dxos/dxos.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/drawing-diagrams .claude/skills/drawing-diagrams && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
drawing-diagrams
GitHub stars
526
Token cost
~2.6k tokens
SKILL.md length
1,351 words
Files
1
Skills in repo
41
Repo updated
First seen
Licence
Custom licence

At a glance

Draw an architecture diagram of DXOS code (a package, a module graph, a subsystem) by writing plugin-illustrator's semantic diagram DSL (.dx), rendering it, and looking at the image before showing it.

  • Works in 5 steps: Derive the graph from the code, not from… → Write the DSL → Render → …
  • Show a diagram of the codebase
  • SKILL.md covers 1. Derive the graph from the…, 2. Write the DSL, 3. Render and 4. Look at it before you…, plus 2 more sections
  • Calls node, bash and gh; needs CLOUDFLARE_API_TOKEN

What it does

Drawing Diagrams is an agent skill from dxos/dxos. Draw an architecture diagram of DXOS code (a package, a module graph, a subsystem) by writing plugin-illustrator's semantic diagram DSL (.dx), rendering it, and looking at the image before showing it. Use when asked to draw, render, or show a diagram of the codebase, to "use the illustrator" on something, to add or regenerate a diagram in packages/plugins/plugin-illustrator/docs/diagrams/, or to judge the layout engine on a real graph. For a hand-drawn explanatory figure inside an Artifact page, use…

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Diagrams. It works with Adobe Illustrator. The repository describes itself as: TypeScript implementation of the DXOS protocols, SDK, toolchain and Composer.

When your agent uses it

  • Show a diagram of the codebase
  • Use the illustrator on something
  • Regenerate a diagram in packages/plugins/plugin-illustrator/docs/diagrams/
  • Judge the layout engine on a real graph

Example prompts

  • “use the illustrator”
  • “/drawing-diagrams”

Requirements

  • A credential in CLOUDFLARE_API_TOKEN

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Derive the graph from the code, not from memory
  2. Write the DSL
  3. Render
  4. Look at it before you submit it
  5. Show it

What it can do on your machine

Read from SKILL.md and the folder at commit 085dcb1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node
    • bash
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • CLOUDFLARE_API_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Drawing Diagrams loads about 2.6k tokens when it runs. Until then it costs about 139 tokens; SKILL.md has 1,351 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~139
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,351 words (~2,634 tokens).

“Write the diagram in the semantic DSL: say what is related and, only where it matters, roughly where. The engine (SemanticEngine in @dxos/diagram) puts the boxes on a grid, routes arrows through the gutters with the fewest bends, spreads the…”

— opening of SKILL.md by dxos, Custom licence
name
drawing-diagrams

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/drawing-diagrams of dxos/dxos.

Open the folder on GitHubat commit 085dcb1

Compare with similar skills

Drawing Diagrams next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Drawing Diagrams compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Drawing Diagrams this skilldxos/dxos526—~2.6kAutomated safety check: PassCustom licence
Architecture DiagramMathews-Tom/armory329—~4.8kAutomated safety check: PassMIT
Archify Diagramstt-a1i/archify81k—~2.9kAutomated safety check: PassMIT
JSON Canvasheyitsnoah/claudesidian2.6k18 repos~3.5kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design48k1 repos~7.6kAutomated safety check: PassMIT
Fireworks Tech Graphtisfeng/Easydict15k1 repos~1.4kAutomated safety check: PassMIT

Similar skills

  • Architecture Diagram

    Mathews-Tom/armory

    Generate architecture diagrams as fully editable SVG with native AWS, Azure, and GCP icons for cloud diagrams, or hand-drawn generic icons for everything else.

    329 GitHub stars~4.8k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    81k GitHub stars~2.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • JSON Canvas

    heyitsnoah/claudesidian

    Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.

    2.6k GitHub starsUsed in 18 repos~3.5k tokens
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    48k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Fireworks Tech Graph

    tisfeng/Easydict

    Create precise SVG technical diagrams, export PNG or offline HTML, and animate supported semantic SVGs to GIF.

    15k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Excalidraw Diagram

    coleam00/excalidraw-diagram-skill

    Create Excalidraw diagram JSON files that make visual arguments.

    5k GitHub starsUsed in 2 repos~6.1k tokens
    DevelopmentAuto-check passed

More from dxos/dxos

All 41 skills in this repo
  • Run the rule-driven agentic code review — discover rule blocks in the repo's .mdl files, prepare per-rule review groups (full project by default; diff-only with --pr-only), spawn one focused Sonnet…

    526 GitHub stars~4.5k tokensUpdated yesterday
    Auto-check passed
  • Forensically inspect and repair Composer browser profiles — offline (Chrome OPFS / SQLite extract) or live via /recovery.html debug port.

    526 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • Migrate Oxfmt

    dxos/dxos

    Guide for migrating a project from Prettier or Biome to Oxfmt.

    526 GitHub starsUsed in 3 repos~2.2k tokens
    Auto-check passed
  • Moon

    dxos/dxos

    This skill should be used when the user asks to "configure moon", "set up moonrepo", "create moon tasks", "run moon commands", "configure moon workspace", "add moon project", "moon ci setup", "moon…

    526 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Reference for SubductionPolicy (the four hooks authorizeConnect, authorizeFetch, authorizePut, filterAuthorizedFetch passed via Subduction.hydrate(..., policy) or new Repo({ subductionPolicy })).

    526 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Autocue

    dxos/dxos

    Record a demo of the running app that the agent drives itself — a .mdl QA test or an ad-hoc walkthrough — as a captioned .webm (or a screenshot), trimmed of dead air and ready to attach.

    526 GitHub stars~13k tokensUpdated yesterday
    Auto-check: notes

Categories

Questions about Drawing Diagrams

What does Drawing Diagrams do?

Draw an architecture diagram of DXOS code (a package, a module graph, a subsystem) by writing plugin-illustrator's semantic diagram DSL (.dx), rendering it, and looking at the image before showing it. Drawing Diagrams is an agent skill from dxos/dxos.dx), rendering it, and looking at the image before showing it.

When should I use Drawing Diagrams?

Drawing Diagrams fits situations like: show a diagram of the codebase; use the illustrator on something; regenerate a diagram in packages/plugins/plugin-illustrator/docs/diagrams/; judge the layout engine on a real graph.

How do I install Drawing Diagrams in Claude Code?

Run `npx skills add dxos/dxos --skill drawing-diagrams -a claude-code`. Or copy the skill folder (.agents/skills/drawing-diagrams in dxos/dxos) into .claude/skills/drawing-diagrams in your project. Claude Code loads it when a task matches its description.

How do I install Drawing Diagrams in Codex?

Run `npx skills add dxos/dxos --skill drawing-diagrams -a codex`. Or copy the skill folder (.agents/skills/drawing-diagrams in dxos/dxos) into .agents/skills/drawing-diagrams in your project. Codex loads it when a task matches its description.

Can I use Drawing Diagrams in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dxos/dxos --skill drawing-diagrams -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/drawing-diagrams, .gemini/skills/drawing-diagrams, .github/skills/drawing-diagrams and .opencode/skills/drawing-diagrams in your project.

What does Drawing Diagrams need to run?

Going by SKILL.md and its folder, Drawing Diagrams needs the command-line tools its instructions call (node, bash and gh) and credentials named CLOUDFLARE_API_TOKEN. Our summary lists: A credential in CLOUDFLARE_API_TOKEN.

Does Drawing Diagrams access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Drawing Diagrams safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Drawing Diagrams use?

Drawing Diagrams has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Drawing Diagrams use?

About 2.6k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Drawing Diagrams?

Skills that share tags, products or a category with Drawing Diagrams: Architecture Diagram (Mathews-Tom/armory, 329 stars), Archify Diagrams (tt-a1i/archify, 81k stars), JSON Canvas (heyitsnoah/claudesidian, 2.6k stars) and Diagram Design (cathrynlavery/diagram-design, 48k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Drawing Diagrams?

dxos (a GitHub organization) maintains it in dxos/dxos, which has 526 GitHub stars. The repository holds 41 skills in this directory. The repository was last updated on October 10, 2026.

Source: dxos/dxos on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.