diagrams
Skill by citypaul
Creates or audits maintainable diagrams when relationships, sequences, states, hierarchies or comparisons are clearer visually than in prose. Selects a format the destination renders, validates the output and adds a text explanation. Suited to teams documenting systems in Markdown or repositories.
Install diagrams
Built from the published package, never by AI.
git clone --depth 1 https://github.com/citypaul/.dotfiles /tmp/.dotfiles && mkdir -p ~/.claude/skills && cp -r /tmp/.dotfiles/claude/.claude/skills/diagrams ~/.claude/skills/diagramsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/citypaul/.dotfiles /tmp/.dotfiles && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/.dotfiles/claude/.claude/skills/diagrams ~/.gemini/antigravity-cli/skills/diagramsAntigravity 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 diagrams skill helps an AI assistant decide whether a diagram is worth making and which format to use. It favours the smallest visual that makes a relationship, sequence, state, hierarchy or quantitative comparison easier to understand. A short paragraph or table is preferred when it communicates the same thing. The skill covers Mermaid, Graphviz, Vega-Lite, PlantUML, JSON Canvas, ASCII in text fences and Markdown tables, and prefers Mermaid for ordinary Markdown documentation.
The workflow asks the assistant to name the audience, the source of truth and the destination renderer before drawing. Labels are built from evidence before styling, and each diagram needs a specific title and a text explanation so its meaning survives without rendering. Validation should use the repository's installed tool or the destination's renderer, and the assistant must state which check was actually performed. The source is an independent 2026 rewrite. It is written for people maintaining architecture and documentation diagrams.
Written from the project's SKILL.md and checked against it.
What it can do
- Choose a formatPicks the smallest supported diagram format for the destination.
- Model before stylingBuilds labels and relationships from evidence and keeps one clear reading path.
- Text alternativeAdds a specific title and text explanation so meaning survives without rendering.
- Validate outputChecks rendering, labels, direction, units and internal references with the real renderer.
- Audit architecture viewsLimits maintained architecture docs to a few earned views with a small index.
- Keep editable sourceKeeps editable source beside any rendered export and states how to regenerate it.
Try asking
- Draw a Mermaid sequence diagram of this login flow for my README
- Audit our architecture docs and remove duplicate or outdated diagrams
- Pick the right diagram format for comparing these monthly sales figures
Good to know
- Graphviz output depends on a DOT renderer being available in the review path.
- Without a renderer, the diagram must use a portable subset and the gap must be stated.
- Generated images are review artifacts, not the maintained source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: claude/.claude/skills/diagrams/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
NOTICE605 B -
SKILL.md6 KB -
references/source-notes.md2 KB
Alternatives to diagrams
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
diagrams: common questions
Does the diagrams skill render diagrams itself?
The source says validation should use the repository's installed tool or the destination's documented renderer. It states that rendering is stronger evidence than a syntax-only check.
Which diagram formats does it support?
The source lists Mermaid, Graphviz, Vega-Lite, PlantUML, JSON Canvas, ASCII in a text fence and Markdown tables. Each has a stated condition for when to use it.
Why does it prefer Mermaid?
The source says Mermaid is the default for ordinary Markdown documentation because its support is broad.
How do I install diagrams?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is diagrams free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is diagrams safe to use?
It scores 75 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to diagrams?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
