svg-diagram

Skill that draws architecture, flowchart and sequence diagrams as hand-placed SVG in one house style

Skill

Low risk

We rate an entry low when it mostly gives the agent instructions and reference material.

Why this level

  • The skill is instructions plus a local linter that only reads SVG
All reasons and checks

bybit-exchange/svg-diagram

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/svg-diagram

Detects the agents on your machine, checks the risk and pins the version.

Other ways to install

Run in a terminal in the project folder

npx skills add bybit-exchange/svg-diagram --skill svg-diagram -a claude-code -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add bybit-exchange/svg-diagram --skill svg-diagram -a cursor -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add bybit-exchange/svg-diagram --skill svg-diagram -a github-copilot -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add bybit-exchange/svg-diagram --skill svg-diagram -a codex -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add bybit-exchange/svg-diagram --skill svg-diagram -a gemini-cli -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add bybit-exchange/svg-diagram --skill svg-diagram -a cline -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

Run in a terminal in the project folder

npx skills add bybit-exchange/svg-diagram --skill svg-diagram -a roo -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

A fork of Roo Code, same .roo folders.

Run in a terminal in the project folder

npx skills add bybit-exchange/svg-diagram --skill svg-diagram -a opencode -y

The skills tool installs the current version from the repository. Add the -g flag to use the skill in every project.

You will need: Node.js

Checked against the repository on Sep 25, 2026, commit c30c9e3.

Text for your agent

Install the skill: npx skills add bybit-exchange/svg-diagram -g. Run the linter with node ~/.claude/skills/svg-diagram/tools/svg-lint/bin/svg-lint.mjs diagram.svg.

Other ways from the author
npx skills add bybit-exchange/svg-diagram -g

Drop -g to install into the current project. The skills CLI detects installed agents.

This is third-party code. Review the repository files before installing.

What it does

The skill gives the agent one house style for drawing diagrams straight in SVG: the layout arithmetic, the color system and CJK-friendly typography. The agent computes box height, spacing, arrow clearance and label placement so elements do not overlap and text is not cut by a frame. It ships svg-lint, a zero-dependency linter that reads the finished SVG and checks it against twelve rules: escaping, viewBox margins, the font stack, connector geometry and more. Each finding names the problem and the exact fix.

Who it is for. For developers and technical writers who need clean diagrams in docs and READMEs.

Good fit when

  • You need an architecture diagram or flowchart in the docs
  • You need a sequence or data-flow diagram as SVG
  • You need one diagram style that a linter checks

Not a fit when

  • A text diagram like Mermaid is enough, without hand-placed SVG
  • You need an interactive diagram with logic, not a static SVG

Example request

Draw an architecture diagram of the service as SVG in the svg-diagram style and check it with the linter

Limitations

The svg-lint linter is a manual tool; nothing runs it for you, so call it before handing a diagram over. A diagram carries one color set and paints a white canvas so it reads on a dark theme, which is not theme switching. Running the linter needs Node, though it has no dependencies.

How to disable. Remove the svg-diagram folder from the agent skills directory.

Security check

  • The skill is instructions plus a local linter that only reads SVG

README in short

The README describes one house style for hand-written SVG diagrams: layout arithmetic, colors, typography and a zero-dependency linter. It shows a gallery of ten diagrams, each demonstrating a specific rule. Installation is via the skills CLI, with a path that takes only the skill text without the linter. The svg-lint linter reads the finished SVG and reports violations with the exact fix. MIT licensed.

SKILL.md

---
name: svg-diagram
description: SVG diagramming conventions blending a technical look with CJK-friendly typography. Use when creating flowcharts, architecture diagrams, and similar SVG figures. For one-shot generation, prefer invoking it from a subagent so the main context does not have to carry this skill plus the SVG XML; for multi-round tweaking, use it directly in the main context.
---

# SVG Diagramming Conventions

## Output location and referencing

> Diagrams go in SVG, never ASCII art. That rule decides *whether* to draw; this skill covers *how*, starting with where the file lands.

- Put the file in an `assets/` directory next to the document (e.g. `docs/foo.md` -> `docs/assets/foo-arch.svg`)
- Reference it from markdown with a relative path, `![title](assets/xxx.svg)`. Do not inline SVG XML.

FAQ

What does the linter check?

Twelve rules: XML escaping, viewBox clipping, the font stack, box height, baseline offset, spacing, arrow markers, text overflow, overlap, the canvas fallback, palette conformance and connector geometry. A pass is only zero errors and zero warnings.

Is the linter required to use the skill?

No, the skill text works without it, but the linter is the proof that a diagram was built to the house style.

Editors’ pick

A skills library that gives coding agents a development process: brainstorming, planning, TDD, subagents and code review

PluginMedium riskNo VPN needed292.5KRepository stars
Editors’ pick

Small composable skills for engineering with agents: plan grilling, TDD, bug diagnosis, code review and architecture

SkillLow risk271.4KRepository stars
Editors’ pick

GitHub toolkit for spec-driven development: the specify CLI adds agent commands and skills to a project, from principles to implementation

CLIMedium riskNo VPN needed139.3KRepository stars

Reference MCP servers

Model Context Protocol servers

Official

Official reference MCP servers: Filesystem, Fetch, Git, Memory, Sequential Thinking, Time and Everything

MCP serverMedium risk90.6KRepository stars
Foxx AIsvg-diagram

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.