diagram
Skill by garrytan
Turns English descriptions or mermaid source into a diagram set: a .mmd source file, an editable .excalidraw scene, and rendered SVG and PNG images. Useful for docs, issues, and READMEs.
Install diagram
Built from the published package, never by AI.
git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.claude/skills && cp -r /tmp/gstack/diagram ~/.claude/skills/diagramRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gstack/diagram ~/.gemini/antigravity-cli/skills/diagramAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The diagram skill turns a plain English description, or mermaid source, into a set of three files. It writes the mermaid source as a .mmd file, an editable .excalidraw scene, and rendered SVG and PNG images. Flowcharts and sequence diagrams become fully editable excalidraw scenes with real boxes, arrows, and text. Other mermaid types still get an .excalidraw file, but it is exported as one image element.
Rendering runs offline. A bundled page is served from a loopback server on the local machine and opened in the Aside browser when Aside is running, or in gstack's own headless browser otherwise. Users can edit the .excalidraw file at excalidraw.com and ask the assistant to re-render the SVG and PNG from the edited scene. The skill suits anyone who needs diagrams for docs, chat, issues, or READMEs.
Written from the project's SKILL.md and checked against it.
What it can do
- Mermaid authoringWrites mermaid source from a plain English request, saved as a .mmd file.
- Editable excalidraw exportBuilds an editable .excalidraw scene for flowcharts and sequence diagrams.
- SVG and PNG renderingRenders a vector SVG and a 1950px-wide PNG from the mermaid source.
- Round-trip re-renderRe-renders SVG and PNG from an .excalidraw file the user has edited.
- Parse error reportingShows mermaid parse errors so the source can be fixed before delivery.
What you need
- gstack installed with its skill files
- Bun runtime
- Aside on macOS 15 or later, or gstack's headless browser built with ./setup
Try asking
- Make a diagram of our user login flow
- Draw an architecture diagram of the payment service
- Create a flowchart for the deployment pipeline in graph LR
Good to know
- State, class, gantt and other non-flowchart types export as one image element in excalidraw.
- Node labels should be short, and 5 to 15 nodes is the readable range.
- Rendering needs a browser; without Aside or the built headless browser it stops.
- No CDN fallback is used, since offline rendering is the stated contract.
Security check
B- Allowed to use Bash, Write without limitsIn
SKILL.md
Checked automatically: diagram/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashReadWriteAskUserQuestionBash(~/.claude/skills/gstack/bin/gstack-skill-load:*)
-
SKILL.md11 KB -
SKILL.md.tmpl8 KB
Alternatives to diagram
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
diagram: common questions
What files does the diagram skill produce?
It produces a .mmd mermaid source, an editable .excalidraw file, and rendered SVG and PNG images. The source file is the single source of truth for later edits.
Can I edit the diagram after it is generated?
Flowcharts and sequence diagrams can be edited box by box at excalidraw.com. Other diagram types open there as one image that can be moved and annotated.
Does the diagram skill need an internet connection to render?
No. The source says rendering is fully offline, with no CDN or network access, and it runs from a local loopback server.
How do I install diagram?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is diagram free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is diagram safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash, write without limits). Review the code before you install. How grades work.
What are alternatives to diagram?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
