Who it is forA developer writing a README or docs page who needs a diagram that matches a consistent style and renders on GitHub.
The problemAuto-layout tools choose positions you did not pick, and hand-written SVG drifts in spacing, fonts and arrowheads.
The outcomeA plain SVG file with every coordinate chosen and annotated, reported by svg-lint as 0 errors and 0 warnings.
What you need first
- Node.js, since svg-lint is plain Node with no packages
- A coding agent that loads skills, such as Claude Code, Codex, Cursor or Gemini CLI
- npx, to run the skills install command
Steps
- Run
npx skills add bybit-exchange/svg-diagram -gto install the skill for your agents. - Start a new session and ask your agent for a diagram of your system, confirming it announces it is using SVG Diagram.
- Run
node ~/.claude/skills/svg-diagram/tools/svg-lint/bin/svg-lint.mjs diagram.svg(this path applies to a Claude Code install). - Fix each finding using its repair line, then rerun the linter until the output shows 0 errors, 0 warnings.
Prompt for your agent
Using the svg-diagram skill from bybit-exchange/svg-diagram, draw an architecture diagram of <system> as diagram.svg. Run node tools/svg-lint/bin/svg-lint.mjs diagram.svg and fix every finding until it reports 0 errors and 0 warnings.
Caveat. The linter is a maintainer tool that nothing runs for you, so you must invoke it yourself before handing a diagram over.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for bybit-exchange/svg-diagram and "Draw a flowchart or architecture diagram as lint-clean SVG"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer