baoyu-diagram
Create professional diagrams with configurable dark/light theme via CSS custom properties. Use this skill whenever the user asks for any kind of technical or conceptual diagram, visualization of a system, process flow, data flow, component relationship, network topology, decision tree, org chart, state machine, or any visual representation of structure/logic/process. Also trigger when the user says "画个图" "画一个架构图" "diagram" "flowchart" "sequence diagram" "draw me a ..." or uploads content and asks to visualize it. Outputs a dark-theme SVG, a light-theme SVG, and a @2x PNG of each.
Before you install
- Last update
- Files in folder
- 14
- Scripts
- Contains scripts. Review them before running.
- SKILL.md size
- 16 KB (about 4,044 tokens of context each time it loads)
- License
- MIT
- Source on GitHub
- JimLiu/baoyu-skills
Skills are plain text instructions the agent follows, sometimes with scripts. Check the source, prefer repositories with many installs and stars, and read any script it ships.
Install
npx skills add JimLiu/baoyu-skills@baoyu-diagramRuns in a terminal with Node.js 18 or newer. Add -y to skip the prompts and -g to install for every project instead of this one.
Install for your agent
npx skills add JimLiu/baoyu-skills@baoyu-diagram --agent claude-code -y- Project install writes to
.claude/skills/baoyu-diagram- Global install writes to
~/.claude/skills/baoyu-diagram
Start a new session afterwards so the agent picks the skill up. In Claude Code you can also call it directly with /baoyu-diagram.
What it does
Diagram Generator Create SVG diagrams. Each SVG embeds its own styles, uses CSS custom properties for theming, and loads nothing over the network. Output Files For a diagram saved as .svg, produce exactly these files: File What it is Made by -------------------------- .svg Source SVG, CSS variables with dark theme values You (the LLM) .light.svg Same markup with light theme values theme-switch.ts --theme=light @2x.png Dark PNG at 2x scale main.ts .light@2x.png Light PNG at 2x scale main.ts --theme light If the user asks for only one theme, or only SVG, produce just those files. Themes All…
Excerpt from the skill's own SKILL.md. Read the full file on GitHub before installing: skills run with your agent's permissions.
Categories
Related skills
- baoyu-post-to-wechat
JimLiu/baoyu-skills
Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP. Supports article posting (文章) with HTML, markdown, or plain text input, and image-text posting (贴图, formerly 图文) with multiple images. Markdown article workflows default to converting ordinary external links into bottom citations for WeChat-friendly output. Use when user mentions "发布公众号", "post to wechat", "微信公众号", or "贴图/图文/文章".
- baoyu-image-gen
JimLiu/baoyu-skills
AI image generation with OpenAI GPT Image 2.5, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream, Replicate and Agnes APIs. Supports text-to-image, reference images, aspect ratios, and batch generation from saved prompt files. Sequential by default; use batch parallel generation when the user already has multiple prompts or wants stable multi-image throughput. Use when user asks to generate, create, or draw images.
- baoyu-infographic
JimLiu/baoyu-skills
Generate professional infographics with 21 layout types and 22 visual styles. Analyzes content, recommends layout×style combinations, and generates publication-ready infographics. Use when user asks to create "infographic", "信息图", "visual summary", "可视化", or "高密度信息大图".
- baoyu-cover-image
JimLiu/baoyu-skills
Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 11 color palettes and 7 rendering styles. Supports cinematic (2.35:1), widescreen (16:9), and square (1:1) aspects. Use when user asks to "generate cover image", "create article cover", or "make cover".
- baoyu-markdown-to-html
JimLiu/baoyu-skills
Converts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, Mermaid (rendered to PNG via headless Chrome), PlantUML, footnotes, alerts, infographics, and optional bottom citations for external links. Use when user asks for "markdown to html", "convert md to html", "md 转 html", "微信外链转底部引用", or needs styled HTML output from markdown.
- baoyu-article-illustrator
JimLiu/baoyu-skills
Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style × Palette three-dimension approach. Use when user asks to "illustrate article", "add images", "generate images for article", or "为文章配图".