Skills for Real Engineers. Straight from my .agents directory.
baoyu-diagram
Agent skill fromJimLiu/baoyu-skills
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.
How to install baoyu-diagram
npx skills add JimLiu/baoyu-skills# or add only this skill to Claude Code: copy the folder
skills/baoyu-diagram/
# into
~/.claude/skills/baoyu-diagram/ (all projects)
.claude/skills/baoyu-diagram/ (one project)
1# Diagram Generator23Create SVG diagrams. Each SVG embeds its own styles, uses CSS custom properties for theming, and loads nothing over the network.45## Output Files67For a diagram saved as `<name>.svg`, produce exactly these files:89| File | What it is | Made by |10|------|-----------|---------|11| `<name>.svg` | Source SVG, CSS variables with dark theme values | You (the LLM) |12| `<name>.light.svg` | Same markup with light theme values | `theme-switch.ts --theme=light` |13| `<name>@2x.png` | Dark PNG at 2x scale | `main.ts` |14| `<name>.light@2x.png` | Light PNG at 2x scale | `main.ts --theme light` |1516If the user asks for only one theme, or only SVG, produce just those files.1718## Themes1920All 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.2122Theme 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`.2324**Custom themes:** drop a new `.json` into `themes/` — no script changes needed:2526```json27// themes/my-brand.json28{29 "description": "Corporate brand theme",30 "--bg": "#ffffff",31 "--text": "#1a1a2e",32 "--text-muted": "#6b7280",33 "--arrow": "#9ca3af",34 "--color-primary-fill": "rgba(37,99,235,0.12)",35 "--color-primary-stroke": "#2563eb",36…
Excerpt shown under the repository's MIT license.
More skills in baoyu-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
