jimliu avatar

Baoyu Diagram

This is a comprehensive diagram generator that outputs professional, dark-themed SVG files for architecture diagrams, flowcharts, sequence diagrams, mind maps, timelines, and more. It comes with a complete design system including semantic color palettes (cyan for frontend, emerald for backend, violet for databases), embedded JetBrains Mono typography, and strict spacing rules to prevent overlapping elements. The implementation details are thorough, covering z-index layering tricks, SVG patterns for grid backgrounds, and reusable component templates for common shapes like decision diamonds and database cylinders. It's built for technical documentation and system design work where you need consistent, readable diagrams without reaching for specialized tools. The dark theme and monospace fonts give it a distinctly developer-focused aesthetic.

skills.sh installs
15.9K
GitHub stars
27.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add jimliu/baoyu-skills --skill baoyu-diagram --agent claude-code

Installs into .claude/skills of the current project.

Files

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 <name>.svg, produce exactly these files:

FileWhat it isMade by
<name>.svgSource SVG, CSS variables with dark theme valuesYou (the LLM)
<name>.light.svgSame markup with light theme valuestheme-switch.ts --theme=light
<name>@2x.pngDark PNG at 2x scalemain.ts
<name>.light@2x.pngLight PNG at 2x scalemain.ts --theme light

If the user asks for only one theme, or only SVG, produce just those files.

Themes

All colors are CSS custom properties defined in the :root block of the SVG's <style>; markup references them as var(--bg), var(--color-primary-fill), etc. Never hardcode color values in SVG attributes.

Theme values live in {baseDir}/themes/<name>.json — one flat JSON object mapping CSS property names (keys starting with --) to colors. Other keys (e.g. "description") are metadata, ignored by scripts. Built-in: dark.json, light.json.

Sponsors

Details

Repository
github.com/jimliu/baoyu-skills
Categories
Frontend Development, Code Review & Quality, Data Science & ML, Productivity & Planning, Sales & Marketing, Design & UI/UX
First seen
Apr 16, 2026

More from jimliu/baoyu-skills

All 24
1benjitaylor avataragentationbenjitaylor/agentationAdd Agentation visual feedback toolbar to a Next.js project13.9Kskills.sh installs
2antfu avatarslidevantfu/skillsCreate and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use 13.8Kskills.sh installs
3deckardger avatartanstack-query-best-practicesdeckardger/tanstack-agent-skillsTanStack Query (React Query) best practices for data fetching, caching, mutations, and server state management. Activate when building data-driven React applica13.2Kskills.sh installs
4elevenlabs avataragentselevenlabs/skillsBuild voice AI agents with ElevenLabs. Use when creating voice assistants, voice-based customer service bots, interactive voice characters, or any real-time voi12.9Kskills.sh installs
5antfu avatarvitepressantfu/skillsVitePress static site generator powered by Vite and Vue. Use when building documentation sites, configuring themes, or writing Markdown with Vue components.12.1Kskills.sh installs
6superdesigndev avatarsuperdesignsuperdesigndev/superdesign-skillDesign or redesign frontend UI on the Superdesign canvas. Use whenever the user wants to design a page, feature, flow, or a brand-new product with no code yet; 11.8Kskills.sh installs