[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D5QB20FPF4EM75SACXJY9H":3,"skill-same:01M7D5QB20FPF4EM75SACXJY9H":114},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":27,"commitSha":28,"skillDirectory":5,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7D5QB20FPF4EM75SACXJY9H","baoyu-diagram",null,"Create professional diagrams with configurable dark\u002Flight 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\u002Flogic\u002Fprocess. 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.","tangyixiao\u002Ftangyixiao-skills","tangyixiao","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F115929632?v=4","01M7D582YK6A4M63CAK4CSY4EW","Tang Yixiao","01M7D582Z64DMRSYR872SR34SA",2,"MIT","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: baoyu-diagram\ndescription: Create professional diagrams with configurable dark\u002Flight theme via CSS\n  custom properties. Use this skill whenever the user asks for any kind of technical\n  or conceptual diagram, visualization of a system, process flow, data flow, component\n  relationship, network topology, decision tree, org chart, state machine, or any\n  visual representation of structure\u002Flogic\u002Fprocess. Also trigger when the user says\n  \"画个图\" \"画一个架构图\" \"diagram\" \"flowchart\" \"sequence diagram\" \"draw me a ...\" or uploads\n  content and asks to visualize it. Outputs a dark-theme SVG, a light-theme SVG, and\n  a @2x PNG of each.\nmetadata:\n  upstream-version: 1.118.0\n---\n\n# Diagram Generator\n\nCreate SVG diagrams. Each SVG embeds its own styles, uses CSS custom properties for theming, and loads nothing over the network.\n\n## Output Files\n\nFor a diagram saved as `\u003Cname>.svg`, produce exactly these files:\n\n| File | What it is | Made by |\n|------|-----------|---------|\n| `\u003Cname>.svg` | Source SVG, CSS variables with dark theme values | You (the LLM) |\n| `\u003Cname>.light.svg` | Same markup with light theme values | `theme-switch.ts --theme=light` |\n| `\u003Cname>@2x.png` | Dark PNG at 2x scale | `main.ts` |\n| `\u003Cname>.light@2x.png` | Light PNG at 2x scale | `main.ts --theme light` |\n\nIf the user asks for only one theme, or only SVG, produce just those files.\n\n## Themes\n\nAll colors are CSS custom properties defined in the `:root` block of the SVG's `\u003Cstyle>`; markup references them as `var(--bg)`, `var(--color-primary-fill)`, etc. Never hardcode color values in SVG attributes.\n\nTheme values live in `{baseDir}\u002Fthemes\u002F\u003Cname>.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`.\n\n**Custom themes:** drop a new `.json` into `themes\u002F` — no script changes needed:\n\n```json\n\u002F\u002F themes\u002Fmy-brand.json\n{\n  \"description\": \"Corporate brand theme\",\n  \"--bg\": \"#ffffff\",\n  \"--text\": \"#1a1a2e\",\n  \"--text-muted\": \"#6b7280\",\n  \"--arrow\": \"#9ca3af\",\n  \"--color-primary-fill\": \"rgba(37,99,235,0.12)\",\n  \"--color-primary-stroke\": \"#2563eb\",\n  \"--color-secondary-fill\": \"rgba(22,163,74,0.12)\",\n  \"--color-secondary-stroke\": \"#16a34a\"\n}\n```\n\nApply with `--theme=my-brand` (`theme-switch.ts`, `main.ts` and `flatten-vars.ts` all support it). Variables omitted from a custom theme are not replaced. When generating SVGs for a custom theme, use its values in the `:root` block.\n\n### CSS Custom Properties\n\n| Variable | Dark Theme Default | Light Theme Value | Usage |\n|----------|-------------------|-------------------|-------|\n| `--bg` | `#0f172a` | `#f8fafc` | Page background |\n| `--bg-grid` | `#1e293b` | `#e2e8f0` | Grid pattern stroke |\n| `--mask` | `#0f172a` | `#f8fafc` | Opaque mask fill (same as --bg) |\n| `--text` | `white` | `#0f172a` | Primary text color |\n| `--text-muted` | `#94a3b8` | `#475569` | Secondary\u002Fsublabel text |\n| `--arrow` | `#64748b` | `#64748b` | Arrow\u002Fconnector lines (unchanged) |\n| `--color-primary-fill` | `rgba(8,51,68,0.4)` | `rgba(6,182,212,0.12)` | Frontend, user-facing, inputs |\n| `--color-primary-stroke` | `#22d3ee` | `#0891b2` | Primary border |\n| `--color-secondary-fill` | `rgba(6,78,59,0.4)` | `rgba(5,150,105,0.12)` | Backend, services, processing |\n| `--color-secondary-stroke` | `#34d399` | `#059669` | Secondary border |\n| `--color-tertiary-fill` | `rgba(76,29,149,0.4)` | `rgba(124,58,237,0.12)` | Database, storage, persistence |\n| `--color-tertiary-stroke` | `#a78bfa` | `#7c3aed` | Tertiary border |\n| `--color-accent-fill` | `rgba(120,53,15,0.3)` | `rgba(217,119,6,0.12)` | Cloud, infrastructure, regions |\n| `--color-accent-stroke` | `#fbbf24` | `#d97706` | Accent border |\n| `--color-alert-fill` | `rgba(136,19,55,0.4)` | `rgba(225,29,72,0.12)` | Security, errors, warnings |\n| `--color-alert-stroke` | `#fb7185` | `#e11d48` | Alert border |\n| `--color-connector-fill` | `rgba(251,146,60,0.3)` | `rgba(234,88,12,0.12)` | Buses, queues, middleware |\n| `--color-connector-stroke` | `#fb923c` | `#ea580c` | Connector border |\n| `--color-neutral-fill` | `rgba(30,41,59,0.5)` | `rgba(100,116,139,0.12)` | External, generic, unknown |\n| `--color-neutral-stroke` | `#94a3b8` | `#64748b` | Neutral border |\n| `--color-highlight-fill` | `rgba(59,130,246,0.3)` | `rgba(59,130,246,0.12)` | Active state, focus, current step |\n| `--color-highlight-stroke` | `#60a5fa` | `#3b82f6` | Highlight border |\n\n## Design System\n\n### Typography\n\nUse a locally installed monospace font stack. Do not `@import` web fonts or reference any remote resource: the SVG must render the same offline, and the PNG converter cannot fetch fonts.\n\n```svg\n\u003Cstyle>\n  text { font-family: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Noto Sans Mono', 'DejaVu Sans Mono', monospace; }\n\u003C\u002Fstyle>\n```\n\nFont sizes by role:\n- **Title:** 16px, weight 700, fill: `var(--text)`\n- **Component name:** 11-12px, weight 600, fill: `var(--text)`\n- **Sublabel \u002F description:** 9px, weight 400, fill: `var(--text-muted)`\n- **Annotation \u002F note:** 8px, weight 400\n- **Tiny label (on arrows):** 7-8px\n\n### Core Visual Elements\n\n**Background + Grid:**\n\n```svg\n\u003Cdefs>\n  \u003Cpattern id=\"grid\" width=\"40\" height=\"40\" patternUnits=\"userSpaceOnUse\">\n    \u003Cpath d=\"M 40 0 L 0 0 0 40\" fill=\"none\" stroke=\"var(--bg-grid)\" stroke-width=\"0.5\"\u002F>\n  \u003C\u002Fpattern>\n\u003C\u002Fdefs>\n\u003Crect width=\"100%\" height=\"100%\" fill=\"var(--bg)\"\u002F>\n\u003Crect width=\"100%\" height=\"100%\" fill=\"url(#grid)\"\u002F>\n```\n\n**Arrowhead marker (standard):**\n\n```svg\n\u003Cmarker id=\"arrow\" markerWidth=\"10\" markerHeight=\"7\" refX=\"9\" refY=\"3.5\" orient=\"auto\">\n  \u003Cpolygon points=\"0 0, 10 3.5, 0 7\" fill=\"var(--arrow)\"\u002F>\n\u003C\u002Fmarker>\n```\n\n**Arrowhead marker (colored) — create per-color as needed:**\n\n```svg\n\u003Cmarker id=\"arrow-primary\" markerWidth=\"10\" markerHeight=\"7\" refX=\"9\" refY=\"3.5\" orient=\"auto\">\n  \u003Cpolygon points=\"0 0, 10 3.5, 0 7\" fill=\"var(--color-primary-stroke)\"\u002F>\n\u003C\u002Fmarker>\n```\n\n**Open arrowhead (for async\u002Freturn messages):**\n\n```svg\n\u003Cmarker id=\"arrow-open\" markerWidth=\"10\" markerHeight=\"7\" refX=\"9\" refY=\"3.5\" orient=\"auto\">\n  \u003Cpolyline points=\"0 0, 10 3.5, 0 7\" fill=\"none\" stroke=\"var(--arrow)\" stroke-width=\"1.5\"\u002F>\n\u003C\u002Fmarker>\n```\n\n### SVG Structure & Layering\n\nDraw in this order (SVG paints back-to-front):\n\n1. Background fill + grid pattern\n2. Region\u002Fgroup boundaries (dashed outlines)\n3. Connection arrows and lines\n4. Opaque masking rects (same position as component boxes, `fill=\"var(--mask)\"`)\n5. Component boxes (semi-transparent fill + stroke via CSS variables)\n6. Text labels\n7. Legend (bottom-right or bottom area, outside all boundaries)\n8. Title block (top-left)\n\nThe opaque mask rect is required — semi-transparent component fills otherwise show arrows underneath:\n\n```svg\n\u003C!-- Mask layer: opaque background to hide arrows -->\n\u003Crect x=\"100\" y=\"100\" width=\"160\" height=\"60\" rx=\"6\" fill=\"var(--mask)\"\u002F>\n\u003C!-- Visual layer: styled component -->\n\u003Crect x=\"100\" y=\"100\" width=\"160\" height=\"60\" rx=\"6\" fill=\"var(--color-primary-fill)\" stroke=\"var(--color-primary-stroke)\" stroke-width=\"1.5\"\u002F>\n\u003Ctext x=\"180\" y=\"125\" fill=\"var(--text)\" font-size=\"11\" font-weight=\"600\" text-anchor=\"middle\">API Gateway\u003C\u002Ftext>\n\u003Ctext x=\"180\" y=\"141\" fill=\"var(--text-muted)\" font-size=\"9\" text-anchor=\"middle\">Kong \u002F Nginx\u003C\u002Ftext>\n```\n\n### Spacing Rules\n\nFollow strictly to prevent overlaps:\n\n- **Component box height:** 50-70px (standard), 80-120px (large\u002Fcomplex)\n- **Minimum gap between components:** 40px vertical, 30px horizontal\n- **Arrow label clearance:** 10px from any box edge\n- **Region boundary padding:** 20px inside edges around contained components\n- **Legend placement:** At least 20px below the lowest diagram element\n- **Title block:** 20px from top-left, outside diagram content area\n- **viewBox:** Always extend to fit all content + 30px padding on all sides\n\n### Component Patterns\n\n**Standard box (service\u002Fprocess):**\n\n```svg\n\u003Crect x=\"X\" y=\"Y\" width=\"160\" height=\"60\" rx=\"6\" fill=\"var(--mask)\"\u002F>\n\u003Crect x=\"X\" y=\"Y\" width=\"160\" height=\"60\" rx=\"6\" fill=\"var(--color-primary-fill)\" stroke=\"var(--color-primary-stroke)\" stroke-width=\"1.5\"\u002F>\n\u003Ctext x=\"CX\" y=\"Y+24\" fill=\"var(--text)\" font-size=\"11\" font-weight=\"600\" text-anchor=\"middle\">Name\u003C\u002Ftext>\n\u003Ctext x=\"CX\" y=\"Y+40\" fill=\"var(--text-muted)\" font-size=\"9\" text-anchor=\"middle\">description\u003C\u002Ftext>\n```\n\n**Decision diamond (flowchart):**\n\n```svg\n\u003Cg transform=\"translate(CX, CY)\">\n  \u003Cpolygon points=\"0,-35 50,0 0,35 -50,0\" fill=\"var(--mask)\"\u002F>\n  \u003Cpolygon points=\"0,-35 50,0 0,35 -50,0\" fill=\"var(--color-accent-fill)\" stroke=\"var(--color-accent-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Ctext y=\"4\" fill=\"var(--text)\" font-size=\"10\" font-weight=\"600\" text-anchor=\"middle\">Condition?\u003C\u002Ftext>\n\u003C\u002Fg>\n```\n\n**Database cylinder:**\n\n```svg\n\u003Cg transform=\"translate(X, Y)\">\n  \u003Crect x=\"0\" y=\"10\" width=\"120\" height=\"50\" rx=\"2\" fill=\"var(--mask)\"\u002F>\n  \u003Cellipse cx=\"60\" cy=\"10\" rx=\"60\" ry=\"12\" fill=\"var(--mask)\"\u002F>\n  \u003Cellipse cx=\"60\" cy=\"60\" rx=\"60\" ry=\"12\" fill=\"var(--mask)\"\u002F>\n  \u003Crect x=\"0\" y=\"10\" width=\"120\" height=\"50\" fill=\"var(--color-tertiary-fill)\"\u002F>\n  \u003Cellipse cx=\"60\" cy=\"10\" rx=\"60\" ry=\"12\" fill=\"var(--color-tertiary-fill)\" stroke=\"var(--color-tertiary-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Cellipse cx=\"60\" cy=\"60\" rx=\"60\" ry=\"12\" fill=\"var(--color-tertiary-fill)\" stroke=\"var(--color-tertiary-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Cline x1=\"0\" y1=\"10\" x2=\"0\" y2=\"60\" stroke=\"var(--color-tertiary-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Cline x1=\"120\" y1=\"10\" x2=\"120\" y2=\"60\" stroke=\"var(--color-tertiary-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Ctext x=\"60\" y=\"40\" fill=\"var(--text)\" font-size=\"11\" font-weight=\"600\" text-anchor=\"middle\">PostgreSQL\u003C\u002Ftext>\n\u003C\u002Fg>\n```\n\n**Region boundary:**\n\n```svg\n\u003Crect x=\"X\" y=\"Y\" width=\"W\" height=\"H\" rx=\"12\" fill=\"none\" stroke=\"var(--color-accent-stroke)\" stroke-width=\"1\" stroke-dasharray=\"8,4\"\u002F>\n\u003Ctext x=\"X+12\" y=\"Y+16\" fill=\"var(--color-accent-stroke)\" font-size=\"9\" font-weight=\"600\">AWS us-east-1\u003C\u002Ftext>\n```\n\n**Security group:**\n\n```svg\n\u003Crect x=\"X\" y=\"Y\" width=\"W\" height=\"H\" rx=\"8\" fill=\"none\" stroke=\"var(--color-alert-stroke)\" stroke-width=\"1\" stroke-dasharray=\"4,4\"\u002F>\n\u003Ctext x=\"X+10\" y=\"Y+14\" fill=\"var(--color-alert-stroke)\" font-size=\"8\" font-weight=\"500\">VPC \u002F Security Group\u003C\u002Ftext>\n```\n\n## Diagram Types & Layout\n\nDetermine this SKILL.md file's directory path as `{baseDir}`. Before layout, read the type's reference in `{baseDir}\u002Freferences\u002F` if one exists.\n\n| Type | When to use | Reference | Layout key points |\n|------|-------------|-----------|-------------------|\n| Architecture | System components & relationships | `references\u002Farchitecture.md` | LTR or TTB data flow; group related services in region boundaries; buses\u002Fconnectors between layers; databases at bottom or right |\n| Flowchart | Decision logic, process steps | `references\u002Fflowchart.md` | Top-to-bottom primary flow; diamonds with Yes\u002FNo labels on exit arrows; rounded rects for start\u002Fend; Highlight color for the happy path |\n| Sequence | Time-ordered interactions between actors | `references\u002Fsequence.md` | Actor boxes at top, vertical dashed lifelines; horizontal messages (solid=sync, dashed=return); time flows down; activation bars; number messages if complex |\n| Structural | Class\u002FER diagrams, org charts | `references\u002Fstructural.md` | Compartmented boxes (name \u002F attributes \u002F methods); filled diamond=composition, empty diamond=aggregation, dashed arrow=dependency, solid triangle=inheritance |\n| Mind Map | Brainstorming, topic exploration | — | Radiating layout from a central concept; cubic-bezier `\u003Cpath>` branches; vary branch colors; font size decreases outward |\n| Timeline | Chronological events | — | Horizontal or vertical axis; circle\u002Fdiamond event markers, period spans; descriptions on alternating sides; color by event type |\n| State Machine | State transitions, lifecycle | — | Rounded-rect states, double border for composite; filled circle = initial, bullseye = final; curved self-transitions; label transitions `event [guard] \u002F action` |\n| Illustrative | Conceptual explanations, comparisons | — | Free-form layout, icons, annotations, visual metaphors |\n| Data Flow | Data transformation pipelines | — | Process bubbles, data stores, external entities |\n\n## Output Rules\n\n1. Each SVG is a **single file with no external resources** — no `@import`, web fonts, remote images or scripts\n2. Set `viewBox` to fit all content with 30px padding; do NOT set fixed `width`\u002F`height` attributes\n3. Include `xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\"` on the root `\u003Csvg>`\n4. Put all `\u003Cstyle>`, `\u003Cdefs>`, markers, and patterns at the top\n5. Use `text-anchor=\"middle\"` for centered labels; text must not overflow boxes\n6. **Chinese text:** use `font-family: 'JetBrains Mono', 'Noto Sans SC', 'PingFang SC', sans-serif'` and widen boxes — CJK characters are wider\n7. **CSS variables required:** every color is a `var(--...)` reference so theme switching works\n8. **Save location:** input is a file → `{inputFileDir}\u002Fdiagram\u002F`; otherwise `{projectDir}\u002Fdiagram\u002F{topic-slug}\u002F`. Create the directory if missing\n\n## Scripts\n\nDetermine this SKILL.md file's directory path as `{baseDir}`. Scripts live in `{baseDir}\u002Fscripts\u002F`:\n\n- `theme-switch.ts` — write the SVG with another theme's variable values\n- `main.ts` — convert an SVG to a @2x PNG\n- `flatten-vars.ts` — inline CSS variables into literal colors (only for other non-browser tools; `main.ts` does this itself)\n\nResolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun.\n\n### Theme switch\n\n```bash\n${BUN_X} {baseDir}\u002Fscripts\u002Ftheme-switch.ts \u003Csvg-path> --theme=light [--output=path\u002Fto\u002Foutput.svg]\n${BUN_X} {baseDir}\u002Fscripts\u002Ftheme-switch.ts \u003Csvg-path> --theme=dark\n${BUN_X} {baseDir}\u002Fscripts\u002Ftheme-switch.ts \u003Csvg-path> --theme=my-brand   # {baseDir}\u002Fthemes\u002F\u003Cname>.json\n```\n\nReplaces the `:root { ... }` definitions with the target theme's values; `var(--...)` references stay unchanged and the source is not modified. Without `--output`, writes `\u003Cname>.\u003Ctheme>.svg` next to the input. The source already carries dark values, so `--theme=dark` on it is unnecessary.\n\n### Dependencies\n\n`main.ts` needs `sharp`, pinned in `{baseDir}\u002Fscripts\u002Fpackage.json` with a lockfile. Install once:\n\n```bash\ncd {baseDir}\u002Fscripts && ${BUN_X} install\n```\n\nIf `sharp` is missing, `main.ts` stops with an error that gives this command; it never installs anything itself. Then deliver the SVG files and tell the user how to enable PNG output. `theme-switch.ts` and `flatten-vars.ts` have no dependencies.\n\n### SVG → @2x PNG\n\n```bash\n${BUN_X} {baseDir}\u002Fscripts\u002Fmain.ts \u003Csvg-path> [options]\n```\n\nOptions:\n- `-t, --theme \u003Cname>` — Theme used to resolve CSS variables (default: `dark`; any `{baseDir}\u002Fthemes\u002F\u003Cname>.json` works)\n- `-s, --scale \u003Cn>` — Scale factor (default: 2)\n- `-o, --output \u003Cpath>` — Custom output path (default: `\u003Cinput>@2x.png`)\n- `--json` — JSON output\n\n`sharp` (librsvg) does not understand CSS `var()`, so `main.ts` replaces every `var(--xxx)` with the theme's literal value and drops the `:root` block. It fails if the SVG references a variable that neither the theme nor the SVG defines. SVGs with hardcoded colors (legacy diagrams) are converted as-is.\n\nTo flatten without converting (e.g. for another renderer):\n\n```bash\n${BUN_X} {baseDir}\u002Fscripts\u002Fflatten-vars.ts \u003Csvg-path> \u003Coutput-path> [--theme=\u003Cname>]\n```\n\n## Process\n\n1. Identify the diagram type; read its reference file if one exists\n2. Plan the layout: list components, grouping and flow direction, calculate positions\n3. Write the SVG in the layering order above, colors via CSS variables only, with the `:root { ... }` block using the dark defaults from the CSS Custom Properties table\n4. Verify spacing rules — no overlaps, legends outside boundaries, viewBox large enough\n5. Save as `\u003Cname>.svg` (the dark version)\n6. Run `${BUN_X} {baseDir}\u002Fscripts\u002Ftheme-switch.ts \u003Cname>.svg --theme=light` → `\u003Cname>.light.svg`\n7. Run `${BUN_X} {baseDir}\u002Fscripts\u002Fmain.ts \u003Cname>.svg` → `\u003Cname>@2x.png`\n8. Run `${BUN_X} {baseDir}\u002Fscripts\u002Fmain.ts \u003Cname>.svg --theme light -o \u003Cname>.light@2x.png` → `\u003Cname>.light@2x.png`\n9. Present the files listed in Output Files to the user\n","# Diagram Generator\n\nCreate SVG diagrams. Each SVG embeds its own styles, uses CSS custom properties for theming, and loads nothing over the network.\n\n## Output Files\n\nFor a diagram saved as `\u003Cname>.svg`, produce exactly these files:\n\n| File | What it is | Made by |\n|------|-----------|---------|\n| `\u003Cname>.svg` | Source SVG, CSS variables with dark theme values | You (the LLM) |\n| `\u003Cname>.light.svg` | Same markup with light theme values | `theme-switch.ts --theme=light` |\n| `\u003Cname>@2x.png` | Dark PNG at 2x scale | `main.ts` |\n| `\u003Cname>.light@2x.png` | Light PNG at 2x scale | `main.ts --theme light` |\n\nIf the user asks for only one theme, or only SVG, produce just those files.\n\n## Themes\n\nAll colors are CSS custom properties defined in the `:root` block of the SVG's `\u003Cstyle>`; markup references them as `var(--bg)`, `var(--color-primary-fill)`, etc. Never hardcode color values in SVG attributes.\n\nTheme values live in `{baseDir}\u002Fthemes\u002F\u003Cname>.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`.\n\n**Custom themes:** drop a new `.json` into `themes\u002F` — no script changes needed:\n\n```json\n\u002F\u002F themes\u002Fmy-brand.json\n{\n  \"description\": \"Corporate brand theme\",\n  \"--bg\": \"#ffffff\",\n  \"--text\": \"#1a1a2e\",\n  \"--text-muted\": \"#6b7280\",\n  \"--arrow\": \"#9ca3af\",\n  \"--color-primary-fill\": \"rgba(37,99,235,0.12)\",\n  \"--color-primary-stroke\": \"#2563eb\",\n  \"--color-secondary-fill\": \"rgba(22,163,74,0.12)\",\n  \"--color-secondary-stroke\": \"#16a34a\"\n}\n```\n\nApply with `--theme=my-brand` (`theme-switch.ts`, `main.ts` and `flatten-vars.ts` all support it). Variables omitted from a custom theme are not replaced. When generating SVGs for a custom theme, use its values in the `:root` block.\n\n### CSS Custom Properties\n\n| Variable | Dark Theme Default | Light Theme Value | Usage |\n|----------|-------------------|-------------------|-------|\n| `--bg` | `#0f172a` | `#f8fafc` | Page background |\n| `--bg-grid` | `#1e293b` | `#e2e8f0` | Grid pattern stroke |\n| `--mask` | `#0f172a` | `#f8fafc` | Opaque mask fill (same as --bg) |\n| `--text` | `white` | `#0f172a` | Primary text color |\n| `--text-muted` | `#94a3b8` | `#475569` | Secondary\u002Fsublabel text |\n| `--arrow` | `#64748b` | `#64748b` | Arrow\u002Fconnector lines (unchanged) |\n| `--color-primary-fill` | `rgba(8,51,68,0.4)` | `rgba(6,182,212,0.12)` | Frontend, user-facing, inputs |\n| `--color-primary-stroke` | `#22d3ee` | `#0891b2` | Primary border |\n| `--color-secondary-fill` | `rgba(6,78,59,0.4)` | `rgba(5,150,105,0.12)` | Backend, services, processing |\n| `--color-secondary-stroke` | `#34d399` | `#059669` | Secondary border |\n| `--color-tertiary-fill` | `rgba(76,29,149,0.4)` | `rgba(124,58,237,0.12)` | Database, storage, persistence |\n| `--color-tertiary-stroke` | `#a78bfa` | `#7c3aed` | Tertiary border |\n| `--color-accent-fill` | `rgba(120,53,15,0.3)` | `rgba(217,119,6,0.12)` | Cloud, infrastructure, regions |\n| `--color-accent-stroke` | `#fbbf24` | `#d97706` | Accent border |\n| `--color-alert-fill` | `rgba(136,19,55,0.4)` | `rgba(225,29,72,0.12)` | Security, errors, warnings |\n| `--color-alert-stroke` | `#fb7185` | `#e11d48` | Alert border |\n| `--color-connector-fill` | `rgba(251,146,60,0.3)` | `rgba(234,88,12,0.12)` | Buses, queues, middleware |\n| `--color-connector-stroke` | `#fb923c` | `#ea580c` | Connector border |\n| `--color-neutral-fill` | `rgba(30,41,59,0.5)` | `rgba(100,116,139,0.12)` | External, generic, unknown |\n| `--color-neutral-stroke` | `#94a3b8` | `#64748b` | Neutral border |\n| `--color-highlight-fill` | `rgba(59,130,246,0.3)` | `rgba(59,130,246,0.12)` | Active state, focus, current step |\n| `--color-highlight-stroke` | `#60a5fa` | `#3b82f6` | Highlight border |\n\n## Design System\n\n### Typography\n\nUse a locally installed monospace font stack. Do not `@import` web fonts or reference any remote resource: the SVG must render the same offline, and the PNG converter cannot fetch fonts.\n\n```svg\n\u003Cstyle>\n  text { font-family: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', 'Noto Sans Mono', 'DejaVu Sans Mono', monospace; }\n\u003C\u002Fstyle>\n```\n\nFont sizes by role:\n- **Title:** 16px, weight 700, fill: `var(--text)`\n- **Component name:** 11-12px, weight 600, fill: `var(--text)`\n- **Sublabel \u002F description:** 9px, weight 400, fill: `var(--text-muted)`\n- **Annotation \u002F note:** 8px, weight 400\n- **Tiny label (on arrows):** 7-8px\n\n### Core Visual Elements\n\n**Background + Grid:**\n\n```svg\n\u003Cdefs>\n  \u003Cpattern id=\"grid\" width=\"40\" height=\"40\" patternUnits=\"userSpaceOnUse\">\n    \u003Cpath d=\"M 40 0 L 0 0 0 40\" fill=\"none\" stroke=\"var(--bg-grid)\" stroke-width=\"0.5\"\u002F>\n  \u003C\u002Fpattern>\n\u003C\u002Fdefs>\n\u003Crect width=\"100%\" height=\"100%\" fill=\"var(--bg)\"\u002F>\n\u003Crect width=\"100%\" height=\"100%\" fill=\"url(#grid)\"\u002F>\n```\n\n**Arrowhead marker (standard):**\n\n```svg\n\u003Cmarker id=\"arrow\" markerWidth=\"10\" markerHeight=\"7\" refX=\"9\" refY=\"3.5\" orient=\"auto\">\n  \u003Cpolygon points=\"0 0, 10 3.5, 0 7\" fill=\"var(--arrow)\"\u002F>\n\u003C\u002Fmarker>\n```\n\n**Arrowhead marker (colored) — create per-color as needed:**\n\n```svg\n\u003Cmarker id=\"arrow-primary\" markerWidth=\"10\" markerHeight=\"7\" refX=\"9\" refY=\"3.5\" orient=\"auto\">\n  \u003Cpolygon points=\"0 0, 10 3.5, 0 7\" fill=\"var(--color-primary-stroke)\"\u002F>\n\u003C\u002Fmarker>\n```\n\n**Open arrowhead (for async\u002Freturn messages):**\n\n```svg\n\u003Cmarker id=\"arrow-open\" markerWidth=\"10\" markerHeight=\"7\" refX=\"9\" refY=\"3.5\" orient=\"auto\">\n  \u003Cpolyline points=\"0 0, 10 3.5, 0 7\" fill=\"none\" stroke=\"var(--arrow)\" stroke-width=\"1.5\"\u002F>\n\u003C\u002Fmarker>\n```\n\n### SVG Structure & Layering\n\nDraw in this order (SVG paints back-to-front):\n\n1. Background fill + grid pattern\n2. Region\u002Fgroup boundaries (dashed outlines)\n3. Connection arrows and lines\n4. Opaque masking rects (same position as component boxes, `fill=\"var(--mask)\"`)\n5. Component boxes (semi-transparent fill + stroke via CSS variables)\n6. Text labels\n7. Legend (bottom-right or bottom area, outside all boundaries)\n8. Title block (top-left)\n\nThe opaque mask rect is required — semi-transparent component fills otherwise show arrows underneath:\n\n```svg\n\u003C!-- Mask layer: opaque background to hide arrows -->\n\u003Crect x=\"100\" y=\"100\" width=\"160\" height=\"60\" rx=\"6\" fill=\"var(--mask)\"\u002F>\n\u003C!-- Visual layer: styled component -->\n\u003Crect x=\"100\" y=\"100\" width=\"160\" height=\"60\" rx=\"6\" fill=\"var(--color-primary-fill)\" stroke=\"var(--color-primary-stroke)\" stroke-width=\"1.5\"\u002F>\n\u003Ctext x=\"180\" y=\"125\" fill=\"var(--text)\" font-size=\"11\" font-weight=\"600\" text-anchor=\"middle\">API Gateway\u003C\u002Ftext>\n\u003Ctext x=\"180\" y=\"141\" fill=\"var(--text-muted)\" font-size=\"9\" text-anchor=\"middle\">Kong \u002F Nginx\u003C\u002Ftext>\n```\n\n### Spacing Rules\n\nFollow strictly to prevent overlaps:\n\n- **Component box height:** 50-70px (standard), 80-120px (large\u002Fcomplex)\n- **Minimum gap between components:** 40px vertical, 30px horizontal\n- **Arrow label clearance:** 10px from any box edge\n- **Region boundary padding:** 20px inside edges around contained components\n- **Legend placement:** At least 20px below the lowest diagram element\n- **Title block:** 20px from top-left, outside diagram content area\n- **viewBox:** Always extend to fit all content + 30px padding on all sides\n\n### Component Patterns\n\n**Standard box (service\u002Fprocess):**\n\n```svg\n\u003Crect x=\"X\" y=\"Y\" width=\"160\" height=\"60\" rx=\"6\" fill=\"var(--mask)\"\u002F>\n\u003Crect x=\"X\" y=\"Y\" width=\"160\" height=\"60\" rx=\"6\" fill=\"var(--color-primary-fill)\" stroke=\"var(--color-primary-stroke)\" stroke-width=\"1.5\"\u002F>\n\u003Ctext x=\"CX\" y=\"Y+24\" fill=\"var(--text)\" font-size=\"11\" font-weight=\"600\" text-anchor=\"middle\">Name\u003C\u002Ftext>\n\u003Ctext x=\"CX\" y=\"Y+40\" fill=\"var(--text-muted)\" font-size=\"9\" text-anchor=\"middle\">description\u003C\u002Ftext>\n```\n\n**Decision diamond (flowchart):**\n\n```svg\n\u003Cg transform=\"translate(CX, CY)\">\n  \u003Cpolygon points=\"0,-35 50,0 0,35 -50,0\" fill=\"var(--mask)\"\u002F>\n  \u003Cpolygon points=\"0,-35 50,0 0,35 -50,0\" fill=\"var(--color-accent-fill)\" stroke=\"var(--color-accent-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Ctext y=\"4\" fill=\"var(--text)\" font-size=\"10\" font-weight=\"600\" text-anchor=\"middle\">Condition?\u003C\u002Ftext>\n\u003C\u002Fg>\n```\n\n**Database cylinder:**\n\n```svg\n\u003Cg transform=\"translate(X, Y)\">\n  \u003Crect x=\"0\" y=\"10\" width=\"120\" height=\"50\" rx=\"2\" fill=\"var(--mask)\"\u002F>\n  \u003Cellipse cx=\"60\" cy=\"10\" rx=\"60\" ry=\"12\" fill=\"var(--mask)\"\u002F>\n  \u003Cellipse cx=\"60\" cy=\"60\" rx=\"60\" ry=\"12\" fill=\"var(--mask)\"\u002F>\n  \u003Crect x=\"0\" y=\"10\" width=\"120\" height=\"50\" fill=\"var(--color-tertiary-fill)\"\u002F>\n  \u003Cellipse cx=\"60\" cy=\"10\" rx=\"60\" ry=\"12\" fill=\"var(--color-tertiary-fill)\" stroke=\"var(--color-tertiary-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Cellipse cx=\"60\" cy=\"60\" rx=\"60\" ry=\"12\" fill=\"var(--color-tertiary-fill)\" stroke=\"var(--color-tertiary-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Cline x1=\"0\" y1=\"10\" x2=\"0\" y2=\"60\" stroke=\"var(--color-tertiary-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Cline x1=\"120\" y1=\"10\" x2=\"120\" y2=\"60\" stroke=\"var(--color-tertiary-stroke)\" stroke-width=\"1.5\"\u002F>\n  \u003Ctext x=\"60\" y=\"40\" fill=\"var(--text)\" font-size=\"11\" font-weight=\"600\" text-anchor=\"middle\">PostgreSQL\u003C\u002Ftext>\n\u003C\u002Fg>\n```\n\n**Region boundary:**\n\n```svg\n\u003Crect x=\"X\" y=\"Y\" width=\"W\" height=\"H\" rx=\"12\" fill=\"none\" stroke=\"var(--color-accent-stroke)\" stroke-width=\"1\" stroke-dasharray=\"8,4\"\u002F>\n\u003Ctext x=\"X+12\" y=\"Y+16\" fill=\"var(--color-accent-stroke)\" font-size=\"9\" font-weight=\"600\">AWS us-east-1\u003C\u002Ftext>\n```\n\n**Security group:**\n\n```svg\n\u003Crect x=\"X\" y=\"Y\" width=\"W\" height=\"H\" rx=\"8\" fill=\"none\" stroke=\"var(--color-alert-stroke)\" stroke-width=\"1\" stroke-dasharray=\"4,4\"\u002F>\n\u003Ctext x=\"X+10\" y=\"Y+14\" fill=\"var(--color-alert-stroke)\" font-size=\"8\" font-weight=\"500\">VPC \u002F Security Group\u003C\u002Ftext>\n```\n\n## Diagram Types & Layout\n\nDetermine this SKILL.md file's directory path as `{baseDir}`. Before layout, read the type's reference in `{baseDir}\u002Freferences\u002F` if one exists.\n\n| Type | When to use | Reference | Layout key points |\n|------|-------------|-----------|-------------------|\n| Architecture | System components & relationships | `references\u002Farchitecture.md` | LTR or TTB data flow; group related services in region boundaries; buses\u002Fconnectors between layers; databases at bottom or right |\n| Flowchart | Decision logic, process steps | `references\u002Fflowchart.md` | Top-to-bottom primary flow; diamonds with Yes\u002FNo labels on exit arrows; rounded rects for start\u002Fend; Highlight color for the happy path |\n| Sequence | Time-ordered interactions between actors | `references\u002Fsequence.md` | Actor boxes at top, vertical dashed lifelines; horizontal messages (solid=sync, dashed=return); time flows down; activation bars; number messages if complex |\n| Structural | Class\u002FER diagrams, org charts | `references\u002Fstructural.md` | Compartmented boxes (name \u002F attributes \u002F methods); filled diamond=composition, empty diamond=aggregation, dashed arrow=dependency, solid triangle=inheritance |\n| Mind Map | Brainstorming, topic exploration | — | Radiating layout from a central concept; cubic-bezier `\u003Cpath>` branches; vary branch colors; font size decreases outward |\n| Timeline | Chronological events | — | Horizontal or vertical axis; circle\u002Fdiamond event markers, period spans; descriptions on alternating sides; color by event type |\n| State Machine | State transitions, lifecycle | — | Rounded-rect states, double border for composite; filled circle = initial, bullseye = final; curved self-transitions; label transitions `event [guard] \u002F action` |\n| Illustrative | Conceptual explanations, comparisons | — | Free-form layout, icons, annotations, visual metaphors |\n| Data Flow | Data transformation pipelines | — | Process bubbles, data stores, external entities |\n\n## Output Rules\n\n1. Each SVG is a **single file with no external resources** — no `@import`, web fonts, remote images or scripts\n2. Set `viewBox` to fit all content with 30px padding; do NOT set fixed `width`\u002F`height` attributes\n3. Include `xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\"` on the root `\u003Csvg>`\n4. Put all `\u003Cstyle>`, `\u003Cdefs>`, markers, and patterns at the top\n5. Use `text-anchor=\"middle\"` for centered labels; text must not overflow boxes\n6. **Chinese text:** use `font-family: 'JetBrains Mono', 'Noto Sans SC', 'PingFang SC', sans-serif'` and widen boxes — CJK characters are wider\n7. **CSS variables required:** every color is a `var(--...)` reference so theme switching works\n8. **Save location:** input is a file → `{inputFileDir}\u002Fdiagram\u002F`; otherwise `{projectDir}\u002Fdiagram\u002F{topic-slug}\u002F`. Create the directory if missing\n\n## Scripts\n\nDetermine this SKILL.md file's directory path as `{baseDir}`. Scripts live in `{baseDir}\u002Fscripts\u002F`:\n\n- `theme-switch.ts` — write the SVG with another theme's variable values\n- `main.ts` — convert an SVG to a @2x PNG\n- `flatten-vars.ts` — inline CSS variables into literal colors (only for other non-browser tools; `main.ts` does this itself)\n\nResolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun.\n\n### Theme switch\n\n```bash\n${BUN_X} {baseDir}\u002Fscripts\u002Ftheme-switch.ts \u003Csvg-path> --theme=light [--output=path\u002Fto\u002Foutput.svg]\n${BUN_X} {baseDir}\u002Fscripts\u002Ftheme-switch.ts \u003Csvg-path> --theme=dark\n${BUN_X} {baseDir}\u002Fscripts\u002Ftheme-switch.ts \u003Csvg-path> --theme=my-brand   # {baseDir}\u002Fthemes\u002F\u003Cname>.json\n```\n\nReplaces the `:root { ... }` definitions with the target theme's values; `var(--...)` references stay unchanged and the source is not modified. Without `--output`, writes `\u003Cname>.\u003Ctheme>.svg` next to the input. The source already carries dark values, so `--theme=dark` on it is unnecessary.\n\n### Dependencies\n\n`main.ts` needs `sharp`, pinned in `{baseDir}\u002Fscripts\u002Fpackage.json` with a lockfile. Install once:\n\n```bash\ncd {baseDir}\u002Fscripts && ${BUN_X} install\n```\n\nIf `sharp` is missing, `main.ts` stops with an error that gives this command; it never installs anything itself. Then deliver the SVG files and tell the user how to enable PNG output. `theme-switch.ts` and `flatten-vars.ts` have no dependencies.\n\n### SVG → @2x PNG\n\n```bash\n${BUN_X} {baseDir}\u002Fscripts\u002Fmain.ts \u003Csvg-path> [options]\n```\n\nOptions:\n- `-t, --theme \u003Cname>` — Theme used to resolve CSS variables (default: `dark`; any `{baseDir}\u002Fthemes\u002F\u003Cname>.json` works)\n- `-s, --scale \u003Cn>` — Scale factor (default: 2)\n- `-o, --output \u003Cpath>` — Custom output path (default: `\u003Cinput>@2x.png`)\n- `--json` — JSON output\n\n`sharp` (librsvg) does not understand CSS `var()`, so `main.ts` replaces every `var(--xxx)` with the theme's literal value and drops the `:root` block. It fails if the SVG references a variable that neither the theme nor the SVG defines. SVGs with hardcoded colors (legacy diagrams) are converted as-is.\n\nTo flatten without converting (e.g. for another renderer):\n\n```bash\n${BUN_X} {baseDir}\u002Fscripts\u002Fflatten-vars.ts \u003Csvg-path> \u003Coutput-path> [--theme=\u003Cname>]\n```\n\n## Process\n\n1. Identify the diagram type; read its reference file if one exists\n2. Plan the layout: list components, grouping and flow direction, calculate positions\n3. Write the SVG in the layering order above, colors via CSS variables only, with the `:root { ... }` block using the dark defaults from the CSS Custom Properties table\n4. Verify spacing rules — no overlaps, legends outside boundaries, viewBox large enough\n5. Save as `\u003Cname>.svg` (the dark version)\n6. Run `${BUN_X} {baseDir}\u002Fscripts\u002Ftheme-switch.ts \u003Cname>.svg --theme=light` → `\u003Cname>.light.svg`\n7. Run `${BUN_X} {baseDir}\u002Fscripts\u002Fmain.ts \u003Cname>.svg` → `\u003Cname>@2x.png`\n8. Run `${BUN_X} {baseDir}\u002Fscripts\u002Fmain.ts \u003Cname>.svg --theme light -o \u003Cname>.light@2x.png` → `\u003Cname>.light@2x.png`\n9. Present the files listed in Output Files to the user\n",{"name":5,"metadata":25,"description":7},{"upstream-version":26},"1.118.0","main","2a870f189175a48c39f5f7e26a6d93b0be9cd13b",0,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills","https:\u002F\u002Ftangyixiao.github.io\u002Ftangyixiao-skills\u002F","https:\u002F\u002Fgithub.com\u002Ftangyixiao","http:\u002F\u002Fwww.sxyz.net\u002F","I am Tang Yixiao, a student in Shaoxing No.1 High School. I am eager to learn on GitHub and contribute my part to this community.","2026-11-11 15:45:59",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add tangyixiao\u002Ftangyixiao-skills --skill baoyu-diagram",{"tool":42,"command":43},"bunx","bunx skills add tangyixiao\u002Ftangyixiao-skills --skill baoyu-diagram",{"tool":45,"command":46},"pnpm","pnpm dlx skills add tangyixiao\u002Ftangyixiao-skills --skill baoyu-diagram","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002FSKILL.md",true,[50,56,60,64,68,72,76,82,86,90,94,98,102,106,110],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"INSTALL-SOURCE.json","REFERENCE","参考文档",534,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002FINSTALL-SOURCE.json",{"path":57,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":16},"LICENSE","许可证",1064,{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Farchitecture.md",3142,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Freferences\u002Farchitecture.md",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fflowchart.md",2353,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Freferences\u002Fflowchart.md",{"path":69,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fsequence.md",4029,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Freferences\u002Fsequence.md",{"path":73,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fstructural.md",3893,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Freferences\u002Fstructural.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Fbun.lock","SCRIPT","脚本",8283,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fscripts\u002Fbun.lock",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Fflatten-vars.ts",1348,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fscripts\u002Fflatten-vars.ts",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fmain.ts",5429,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fscripts\u002Fmain.ts",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fpackage.json",104,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fscripts\u002Fpackage.json",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"scripts\u002Ftheme-switch.ts",7260,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fscripts\u002Ftheme-switch.ts",{"path":99,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Fthemes.test.ts",2928,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fscripts\u002Fthemes.test.ts",{"path":103,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fthemes.ts",4223,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fscripts\u002Fthemes.ts",{"path":107,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":108,"sourceHtmlUrl":109},"themes\u002Fdark.json",958,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fthemes\u002Fdark.json",{"path":111,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":112,"sourceHtmlUrl":113},"themes\u002Flight.json",978,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fbaoyu-diagram\u002Fthemes\u002Flight.json",[115,124,132,140,148,156],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":119,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M7D8JK8FYBFNNAJXWD89CFH7","xlsx","Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fxlsx\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fxlsx\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M7D8JG8ERGGQQAMX0DWCG9GR","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":136,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":20},"01M7D8JE672GW3EHSE8EF185M4","writing-fragments","Writing, explore: mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-fragments\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":144,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":20},"01M7D8JBK572YDFMND8Q6CEYJW","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":152,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":20},"01M7D8J5QPWEXX61EGBKYH73R8","writing-clearly-and-concisely","Use when writing prose humans will read—documentation, commit messages, error messages, explanations, reports, or UI text. Applies Strunk's timeless rules for clearer, stronger, more professional writing.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-clearly-and-concisely\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-clearly-and-concisely\u002FSKILL.md",[],[],{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":160,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":20},"01M7D8J36YWC8WZS5DK5AH03CD","writing-beats","Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-beats\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-beats\u002FSKILL.md",[],[]]