Automated summary
This skill enables generating and editing SVG diagrams using the svg++ language and diagramagic CLI tool, with automatic layout extensions.
Strengths
- Simplifies creation of complex diagrams by automating positioning and routing.
- Supports multiple layout types (flex, graph with layered, radial, circular layouts).
- Allows rich diagrams with multi-line text, labeled arrows, and sub-file inclusion.
- Iterative workflow with PNG rendering for verification before final SVG compilation.
Limitations
- Requires Graphviz system installation for circular and radial layouts.
- SVG files can become large with many includes and subgraphs.
- Learning curve to master svg++ syntax and layout rules.
Use this skill when you need precise, detailed technical diagrams (architectures, flows, dependency graphs) where automated layout saves time.
Avoid it for very simple diagrams or quick sketches where manual SVG entry is faster, or if you cannot install Graphviz.
Security analysis
SafeThe skill only instructs using the 'diagramagic' CLI tool with safe commands (cheatsheet, patterns, render, compile). No destructive actions, exfiltration, or arbitrary command execution are instructed.
No concerns found
How this analysis is madeExamples
Create a diagram showing the request flow from client to server with authentication and database. Use layered graph layout with ortho routing.Design a system architecture diagram for a microservice application with a gateway, three services, and a message queue. Use flex layout for the overall structure and include detailed service cards.Create a circular layout graph illustrating the dependency relationships between the modules in our application.name: diagramagic description: Generate and edit SVG diagrams using svg++ and the diagramagic CLI allowed-tools: Bash(diagramagic *), Read, Write, Glob
diagramagic — svg++ Diagram Skill
Diagramagic helps LLMs create better, larger diagrams more easily by keeping SVG familiar and adding minimal layout extensions.
You generate diagrams using svg++ (SVG with diag: layout extensions) and the diagramagic CLI tool.
Setup (first use per session)
Run these commands and use their output as your syntax reference:
- !
diagramagic cheatsheet - !
diagramagic patterns
Workflow (required)
- Create or edit a
.svg++file - Run
diagramagic render <file>.svg++to generate PNG - View the PNG to verify correctness
- If incorrect, fix the source and render again
- When satisfied, run
diagramagic compile <file>.svg++for final SVG
Quality Standard
You are writing SVG. The diag: extensions handle layout and sizing — they do not replace your responsibility to create rich, detailed, information-dense diagrams. Write with the same visual quality and detail you would if generating raw SVG. The diag: features save you from coordinate math, not from doing the actual design work.
Layout Rules
- Use
<diag:diagram>root withxmlns="http://www.w3.org/2000/svg"andxmlns:diag="https://diagramagic.ai/ns" - Use
diag:flexfor layout structure (stacks, rows, grids of cards) — but fill those containers with rich, detailed content - Use
diag:graphfor auto-layout when topology matters (flowcharts, dependency graphs) — but treat it as scaffolding, not the complete design - Choose graph layout deliberately:
layout="layered"for flowcharts, request pipelines, dependency chainslayout="radial"for hub-and-spoke systemslayout="circular"for peer/cyclic systems
- Choose routing deliberately:
routing="auto"as defaultrouting="ortho"/"polyline"for dense technical diagrams where readability matters mostrouting="curved"for lighter conceptual diagrams; avoid it for dense feedback-heavy graphs
- Keep graph nodes content-rich (title + details), not just single-line labels
- For title+body graph nodes, set
diag:node gap="6"togap="12"to avoid cramped text blocks - If graph output gets crowded, split into multiple subgraphs with
diag:includeor switch to a hybrid flex + arrows structure - Use
diag:wrap="true"on<text>for multi-line text (wrapping is a text feature, not adiag:nodefeature) - Use
diag:arrowwithid-tagged elements for connectors - Use
label-rotate="horizontal"for readable arrow/edge labels by default; usefollowonly when line-following text is intentionally desired - Use
diag:anchorfor precise named points (sequence diagrams, etc.) - Use
diag:includeto compose large diagrams from sub-files - Use
diag:templatewhen you have 3+ visually identical elements (e.g., entity cards, service boxes) - Mix raw SVG freely:
<rect>,<line>,<circle>,<path>for decorative elements, region backgrounds, custom shapes - Do NOT stop at first compile — iterate until the render matches intent
layout="circular"andlayout="radial"require system Graphviz (dot) on PATH; layered layout can fall back if unavailable
Error Recovery
E_PARSE_XML: fix malformed XML and retryE_SVGPP_SEMANTIC: fix svg++ structure/ids and retryE_INCLUDE_ID_COLLISION: rename conflicting ids between parent and included filesE_GRAPH_UNKNOWN_NODE: ensure everydiag:edge from/toid exists as adiag:nodein the same graphE_GRAPH_SELF_EDGE: remove or redesign self-referentialdiag:edge(from == to)E_GRAPH_TOO_LARGE: split the graph into smaller sections or compose withdiag:include- Always attempt at least one fix before asking for help
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/diagramagic-svg-diagram-generation-mryiqg3a/download' --output '.skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a/SKILL.md.part' && mv '.skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a/SKILL.md.part' '.skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash(diagramagic *), Read, Write, Glob
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a/SKILL.md' && test -s '.skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/diagramagic' && cp -R '.skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a' '.claude/skills/diagramagic'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a'openskills read 'diagramagic-svg-diagram-generation-mryiqg3a'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/diagramagic-svg-diagram-generation-mryiqg3a/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.