diagram
Skill2 starsChanged 5 months agoMITView on GitHub
Generate a Mermaid diagram from the codebase — architecture/module graph, entity-relationship, sequence, or flowchart — read from the actual code. Use when the user says "draw a diagram", "diagram the architecture", "generate an ER diagram", "make a sequence diagram", "visualize this flow", or "show how these pieces connect".
31 other projects use a version of this.
Adopted by
Most recently taken up by
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- jantichy/claudetheir own version, first seen Oct 2, 2026
- domengabrovsek/agent-configtheir own version, first seen Oct 2, 2026
- leishifu666/skillstheir own version, first seen Sep 29, 2026
- hangljoe/AI-PreSales-Skillstheir own version, first seen Sep 28, 2026
- heathdutton/claude-d2-diagramstheir own version, first seen Sep 24, 2026
Used with
Projects with it also use benchmark-models, setup-gbrain and 8 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.
mahiunfilteredSkillbenchmark-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 3 projects that use this
chloropineSkillsetup-gbrain
Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (cgstack)
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 3 projects that use this
Kit4SomeSkillunfreeze
Also in 3 projects that use this
chloropineSkillscrape
Pull data from a web page. First call on a new intent prototypes the flow via $B primitives and returns JSON. Subsequent calls on a matching intent route to a codified browser-skill and return in ~200ms. Read-only — for mutating flows (form fills, clicks, submissions), use /automate. Use when asked to "scrape", "get data from", "pull", "extract from", or "what's on" a page. (cgstack)
Also in 3 projects that use this
CodeWithBehnamSkillbrowse
Fast headless browser for QA testing and site dogfooding. Navigate any URL, interact with elements, verify page state, diff before/after actions, take annotated screenshots, check responsive layouts, test forms and uploads, handle dialogs, and assert element states. ~100ms per command. Use when you need to test a feature, verify a deployment, dogfood a user flow, or file a bug with evidence.
Also in 3 projects that use this
Other versions31 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 31
- garrytan/gstack★ 143ksame name
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- HybridAIOne/hybridclaw★ 157same name
- 312362115/claude★ 107same name
- Rune-kit/rune★ 88same name
- Kastalien-Research/thoughtbox★ 66same name
- jantichy/claude★ 38same name
- domengabrovsek/agent-config★ 17same name
- heathdutton/claude-d2-diagrams★ 17same name
- johnlindquist/claude-workshop-skills★ 16same name
21 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 repository68 other files it gives its agents.
- a11ySkill
- api-docsSkill
- audit-logSkill
- benchmarkSkill
- bisectSkill
- cacheSkill
- changelogSkill
- cherry-pickSkill
- ci-setupSkill
- codeownersSkill
- commit-messageSkill
- connection-poolSkill
- contributingSkill
- coverageSkill
- db-migrateSkill
- dead-codeSkill
- debugSkill
- depsSkill
- dockerizeSkill
- docstringSkill
- e2eSkill
- env-exampleSkill
- error-handlingSkill
- explainSkill
- feature-flagSkill
- flaky-testSkill
- gitignoreSkill
- graceful-shutdownSkill
- graphqlSkill
- healthcheckSkill
- i18nSkill
- idempotencySkill
- licenseSkill
- lint-fixSkill
- loggingSkill
- migrateSkill
- mockSkill
- onboardSkill
- optimizeSkill
- paginationSkill
- pr-descriptionSkill
- pre-commitSkill
- profileSkill
- prune-branchesSkill
- rate-limitSkill
- readmeSkill
- rebaseSkill
- refactorSkill
- regexSkill
- releaseSkill
- resolve-conflictsSkill
- retrySkill
- review-diffSkill
- scaffoldSkill
- secrets-scanSkill
- security-headersSkill
- seedSkill
- soft-deleteSkill
- sqlSkill
- squashSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Build the Mermaid source: Use clear node labels taken from real names (modules, classes, tables, endpoints).
- Distinctive: line 37
Keep the Mermaid syntax valid and minimal.
- Distinctive: line 38
Don't write files unless asked — output the diagram inline first, then offer to save it.
“Common” is measured: kept by at least 6 in 10 of the 25 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
Project layout
!ls 2>/dev/null
!git ls-files 2>/dev/null | grep -vE '\.(png|jpg|svg|lock|min\.)' | head -40 || find . -type f -not -path '*/node_modules/*' -not -path '*/.git/*' | head -40
Instructions
Generate a Mermaid diagram for what the user described in $ARGUMENTS. If the type or subject is unclear, pick the most useful diagram for the request and say why; ask only if you genuinely can't tell what to draw.
Choose the diagram type
- Architecture / module graph (
graph TD/flowchart) — how top-level components, services, or modules depend on each other. Default when the user says "architecture" or "how it connects". - Entity-relationship (
erDiagram) — data models/tables and their relationships, with key fields and cardinality. Use for "ER diagram", "schema", "models". - Sequence (
sequenceDiagram) — the ordered interaction between participants for a specific flow (request → handler → service → db). Use for "sequence" or "the X flow". - Flowchart / state — branching logic or a state machine within a function or feature.
Method
- Read the real code for the chosen subject — module imports/dependencies, schema/model definitions, or the call chain of the named flow. Trace actual relationships; don't draw an idealized architecture.
- Build the Mermaid source. Use clear node labels taken from real names (modules, classes, tables, endpoints). For ER diagrams, include primary/foreign keys and cardinality (
||--o{). For sequence diagrams, order the calls as they actually execute and include returns where meaningful. - Keep it legible. Group or collapse detail when a full graph would be unreadable — show the meaningful structure, not every file. Note what you abstracted.
- Output a fenced ```mermaid block so it renders. If the user wants it persisted, offer to write it into the README or a
docs/file rather than assuming.
Rules
- Diagram what the code actually does — every node and edge must trace to a real module, model, or call. Don't invent components or relationships.
- Mark anything inferred or uncertain (e.g. a dynamically-resolved dependency) rather than drawing it as fact.
- Keep the Mermaid syntax valid and minimal; prefer a readable subset over an exhaustive but unreadable graph.
- Don't write files unless asked — output the diagram inline first, then offer to save it.
- Briefly explain the diagram after it: what the main nodes are and how to read the key relationships.
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.

