Who it is forA technical writer producing a document with CJK labels who needs a sequence or data-flow diagram that does not overflow.
The problemCJK characters are wider than Latin ones, so labels sized by eye overflow boxes or fall back to missing glyphs on Linux.
The outcomeAn SVG sequence or data-flow diagram whose CJK labels are sized from the CJK width column and pass the lint checks.
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. - Ask your agent for a sequence or data-flow diagram of <process> with labels in the target language.
- Run
node ~/.claude/skills/svg-diagram/tools/svg-lint/bin/svg-lint.mjs diagram.svgand check the text overflow and font-stack findings. - Open the rendered file on the platform your readers use and confirm the CJK text is legible.
Prompt for your agent
Using the svg-diagram skill from bybit-exchange/svg-diagram, draw a sequence diagram of <process> with CJK labels in diagram.svg, sizing each label from the CJK width table. Run the linter and confirm 0 errors and 0 warnings, with no text overflow findings.
Caveat. The font stack keeps Noto Sans CJK SC for Linux rendering, so check the final file on the platform your readers actually use.
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 sequence or data-flow diagram with CJK labels"
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