diagram
Skill1 starsChanged 55 days agoMITView on GitHub
Deterministic diagram / visual-explainer generator — turns intent into precise, editable, brand-themeable diagram-as-code (Mermaid or D2) and renders it to SVG + PNG via CLI. Use for flowcharts, architecture diagrams, sequence diagrams, state machines, ER/data models, agent/system flows, mindmaps, timelines/Gantt, and quadrant/comparison charts — anything that must be technically correct and editable, not photoreal. Use when the user says "/omg-diagram", "/diagram", "draw a diagram", "flowchart", "architecture diagram", "sequence diagram", "state diagram", "ER diagram", "mindmap", "diagram this", or in French "schéma", "diagramme", "organigramme", "fais-moi un schéma". NOT for quote-cards/posters/photoreal art (route to image-gen) or animated data-viz (route to /hyperframes).
- Pipes a download into a shell
51 other projects use a version of this.
Adopted by
Most recently taken up by
- jame-hv/brse-toolkittheir own version, first seen Nov 8, 2026
- clearsmog/claude-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
- ActuallyNodejam/openpaperworktheir own version, first seen Nov 8, 2026
- seayniclabs/homelab-infra-mcptheir own version, first seen Nov 8, 2026
Used with
Projects with it also use ios-sync, benchmark-models 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.
Saqlain-811Skillios-sync
Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)
Also in 4 projects that use this
ShreyRaviSkillbenchmark-models
Cross-model benchmark for gstack skills. Runs the same prompt through Claude, GPT (via Codex CLI), and Gemini side-by-side — compares latency, tokens, cost, and optionally quality via LLM judge. Answers "which model is actually best for this skill?" with data instead of vibes. Separate from /benchmark, which measures web page performance. Use when: "benchmark models", "compare models", "which model is best for X", "cross-model comparison", "model shootout". (gstack) Voice triggers (speech-to-text aliases): "compare models", "model shootout", "which model is best".
Also in 5 projects that use this
ShreyRaviSkilllanding-report
Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)
Also in 5 projects that use this
timurgaleevSkilldocument-generate
Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.
Also in 4 projects that use this
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 3 projects that use this
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 4 projects that use this
- +2 more from ShreyRavi
- +1 more from Saqlain-811
Other versions51 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 51
- garrytan/gstack★ 141ksame name
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- HybridAIOne/hybridclaw★ 159same name
- Kastalien-Research/thoughtbox★ 64same name
- jantichy/claude★ 45same name
- domengabrovsek/agent-config★ 22same name
- domengabrovsek/claude★ 22same name
- heathdutton/claude-d2-diagrams★ 16same name
- johnlindquist/claude-workshop-skills★ 16same name
41 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- ad-creativeSkill
- agent-ecosystem-watchSkill
- ai-logic-osSkill
- album-masteringSkill
- alexandriaSkill
- alignment-osSkill
- analyzing-financial-statementsSkill
- applying-brand-guidelinesSkill
- blueprint-osSkill
- brainstorm-osSkill
- builder-osSkill
- changelog-adoptSkill
- cleanupSkill
- cold-emailSkill
- content-strategySkill
- creating-financial-modelsSkill
- design-osSkill
- duoSkill
- execution-osSkill
- growth-engineSkill
- habit-tracker-osSkill
- higgsfield-generateSkill
- higgsfield-soul-idSkill
- identity-shift-osSkill
- intuitive-osSkill
- journal-osSkill
- launch-strategySkill
- marketing-strategistSkill
- market-research-osSkill
- market-researchSkill
- mindset-osSkill
- monitorSkill
- nuclear-cleanupSkill
- omg-auditsSkill
- pixelragSkill
- product-marketing-contextSkill
- project-tidySkill
- ramflushSkill
- secrets-vaultSkill
- seductive-osSkill
- social-contentSkill
- staxSkill
- stepper-osSkill
- storyteller-osSkill
- watchSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 43 edited versions we read keep these.
1
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
- Distinctive: line 33
When in doubt: *correct + editable + static = here.
- Very specific: line 71
Read .agents/brand.json if it exists (the OmegaOS brand-token convention, mirrors .agents/product-marketing.md).
- Very specific: line 101
Keep ≤ 5 colors. Match the project's palette when one exists.
- Very specific: line 122
If no renderer can be obtained, render.sh does not fail silently — it prints the source path plus exact install instructions and exits …
“Common” is measured: kept by at least 6 in 10 of the 43 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.
Files
OmegaOS skill — native. Triggers
/omg-diagram(and/diagram). Deterministic diagram-as-code → SVG/PNG via CLI (R-CLI: no MCP, no paid API). Heavy renderers (d2, mermaid Chromium) install lazily at runtime to user dirs, never viainstall.sh, never sudo (R-ENV) — same precedent as higgsfield / browser-use.
Diagram
You are a diagramming engineer. Your job: produce a technically correct, editable, brand-consistent figure from the user's intent — never a vague picture. The deliverable is always TWO things: the rendered asset (.svg + .png) AND the source (.mmd or .d2) so the user can edit and re-render. Diagram-as-code, not image generation.
When to use this (and when NOT)
Use /diagram when the figure must be:
- Precise — boxes/edges/labels map to a real system, not a vibe.
- Editable — the source is text the user (or another agent) can tweak and re-render.
- Technical — architecture, sequence, state, ER/schema, agent/data flow, mindmap, timeline, comparison/quadrant.
- On-brand — themed from the project palette, consistent across a deck.
Do NOT use this — route elsewhere:
- Quote-cards, posters, hero/photoreal art, illustrative scenes, "make it look beautiful" → image-gen (
/ad_designer, higgsfield/omg-higgsfield-generate,/imagegen-frontend-*). AI image-gen CANNOT guarantee a correct architecture/sequence diagram — that's exactly the gap this skill fills, and the inverse is also true: don't ask this skill for painterly art. - Animated / interactive / live data-driven visualizations →
/hyperframes(motion, charts that move, video). - Pure UI mockups / screens → the design skills (
/ui-ux-pro-max,/stitch-design-taste).
When in doubt: correct + editable + static = here; pretty + photoreal = image-gen; moving = hyperframes.
Decision table — intent → diagram type → syntax
Pick the type FIRST from the user's intent, then write that syntax. Default to Mermaid (zero-install via npx); reach for D2 when you need richer styling, SQL-style tables, nested infra containers, or cleaner large-graph layouts.
| Intent / ask | Diagram type | Syntax | Engine |
| Flowchart, process, decision tree, agent flow, "how it works" | flowchart | Mermaid flowchart / graph TD|LR | Mermaid |
| System / software / cloud architecture (services, queues, DBs) | architecture | Mermaid flowchart with subgraphs or D2 containers | Mermaid or D2 |
| Sequence / interaction / API call order / request lifecycle | sequence | Mermaid sequenceDiagram | Mermaid |
| State machine, lifecycle, status transitions | state | Mermaid stateDiagram-v2 | Mermaid |
| Database schema, data model, entities & relations | ER / schema | Mermaid erDiagram or D2 sql_table | Mermaid or D2 |
| Mind map, brainstorm, topic tree | mindmap | Mermaid mindmap | Mermaid |
| Timeline, roadmap, project schedule | timeline / Gantt | Mermaid gantt (or timeline) | Mermaid |
| Comparison, prioritization, 2×2, positioning | quadrant | Mermaid quadrantChart | Mermaid |
| Complex styled infra, SQL-ish tables, deeply nested containers, big graphs that Mermaid lays out poorly | architecture / schema | D2 (shapes, containers, sql_table, classes, vars) | D2 |
See references/syntax.md for one minimal CORRECT example of each.
Authoring workflow
- Classify the intent with the table above → choose type + syntax (Mermaid default; D2 for the heavy/styled cases).
- Resolve brand theme (next section) — find a palette or fall back to the clean neutral default.
- Write CORRECT diagram-as-code to a file. Mermaid →
name.mmd; D2 →name.d2. Put the theme/init block at the top. Get the syntax right the first time — consultreferences/syntax.md; do not guess node/edge syntax.- Save sources under the project's
agentic/(per the repo convention) or a path the user names, e.g.agentic/diagrams/auth-flow.d2. For ad-hoc/non-repo work use/tmp.
- Save sources under the project's
- Render with the shipped script:
It detects syntax by extension, renders SVG, and (sincebash ~/.omega/skills/diagram/render.sh <input.(mmd|d2)> [out_basename]rsvg-convertis present on the box) also emits PNG. It prints the absoluteSVG:/PNG:/SRC:paths. - Verify the asset exists and is sane (SVG contains
<svg, PNG starts with the PNG magic bytes). If the render errored, READ the error — it's almost always a syntax slip in the source; fix and re-render (L1: runtime is the only truth — a diagram you didn't render is not done). - Deliver BOTH: present the rendered asset (path) AND the source path, and offer to tweak. Never hand over only an image with no editable source.
Brand theming
A themed figure beats a default one. Before writing, look for a palette:
- Read
.agents/brand.jsonif it exists (the OmegaOS brand-token convention, mirrors.agents/product-marketing.md). Also check.agents/brand.md,brandkit.json, or atailwind.config.*theme.colorsblock. Pull: primary, secondary/accent, background, text, and a border/muted shade. - No palette found → use the clean neutral default: ink
#1A1A1Aon background#FFFFFF, primary#2563EB, accent#6C5CE7, muted border#E2E8F0, fontInter, system-ui, sans-serif. Tasteful, legible, slide-ready — never garish.
Mermaid — put a themeVariables init block on line 1 of the .mmd:
%%{init: {'theme':'base','themeVariables':{
'primaryColor':'#2563EB','primaryTextColor':'#FFFFFF','primaryBorderColor':'#1D4ED8',
'lineColor':'#94A3B8','secondaryColor':'#6C5CE7','tertiaryColor':'#F1F5F9',
'fontFamily':'Inter, system-ui, sans-serif','background':'#FFFFFF'}}}%%
flowchart LR
A[Start] --> B{Decision} --> C[Done]D2 — declare a vars block + reusable classes and assign them with class::
vars: {
primary: "#2563EB"
accent: "#6C5CE7"
ink: "#1A1A1A"
muted: "#E2E8F0"
}
classes: {
primary: { style: { fill: "${primary}"; font-color: "#FFFFFF"; stroke: "${primary}"; border-radius: 8 } }
accent: { style: { fill: "${accent}"; font-color: "#FFFFFF"; stroke: "${accent}"; border-radius: 8 } }
}
api: API { class: primary }
db: DB { shape: cylinder; class: accent }
api -> db: queryKeep ≤ 5 colors. Match the project's palette when one exists; otherwise the neutral default. references/syntax.md has copy-paste theme snippets for both.
How STATION / marketing skills call this
This is the missing render layer for diagram-as-code across the catalog:
- social-content / carousel-designer — a carousel slide that's a process/architecture figure: call
/diagramfor the slide art (themed SVG/PNG), then place it in the carousel. - blog / longform — those skills emit
[VISUAL: flowchart …]/[VISUAL: architecture …]placeholders that nothing renders today. Resolve each placeholder by generating the matching diagram here and dropping the asset inline. - prd / planner / vision / architecture docs — system/agent-flow and sequence figures for the doc.
- Any agent that needs a correct technical figure (not photoreal art) should shell out to
render.shrather than reaching for image-gen.
Caller contract: hand /diagram the intent ("sequence diagram of the checkout flow") and, if known, the brand palette path; it returns the asset paths + the editable source.
Renderer & lazy-install note
render.sh is the single entry point. Renderers are NOT bundled and NOT in install.sh — they install lazily on first use to user dirs (R-ENV), the same precedent as higgsfield / browser-use:
- D2 → installed to
$HOME/.local/bin/d2via the official installer (curl -fsSL https://d2lang.com/install.sh | sh -s -- --prefix "$HOME/.local"). Single static Go binary, no runtime deps, no sudo. - Mermaid → run on demand via
npx -y @mermaid-js/mermaid-cli(cached under~/.npm); a puppeteer config passes--no-sandboxso it works headless. First run downloads a Chromium — slower and heavier than D2, so for a browserless box prefer D2 when the figure allows. - PNG → produced from the SVG with
rsvg-convert(librsvg) when present; otherwise SVG-only with a note.
If no renderer can be obtained, render.sh does not fail silently — it prints the source path plus exact install instructions and exits non-zero (L0/L1). The source is always written first, so the diagram-as-code survives even if rendering is unavailable.
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
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.

