DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to draw a sequence or data-flow diagram with CJK labels with SVG Diagram

Get an agent to size Chinese, Japanese or Korean labels correctly so text stays inside its boxes.

Short answer: Run npx skills add bybit-exchange/svg-diagram -g to install the skill; then 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.svg and check the text overflow and font-stack findings. All steps.

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

  1. Run npx skills add bybit-exchange/svg-diagram -g to install the skill.
  2. Ask your agent for a sequence or data-flow diagram of <process> with labels in the target language.
  3. Run node ~/.claude/skills/svg-diagram/tools/svg-lint/bin/svg-lint.mjs diagram.svg and check the text overflow and font-stack findings.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer