release-skills
Universal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin, GitHub…
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
Claude Code
$ npx -y skills add JimLiu/baoyu-skills --skill baoyu-markdown-to-html --agent claude-code
Codex
$ npx skills add JimLiu/baoyu-skills --skill baoyu-markdown-to-html -a codex -y
Cursor
$ npx skills add JimLiu/baoyu-skills --skill baoyu-markdown-to-html -a cursor -y
Gemini CLI
$ npx skills add JimLiu/baoyu-skills --skill baoyu-markdown-to-html -a gemini-cli -y
GitHub Copilot
$ npx skills add JimLiu/baoyu-skills --skill baoyu-markdown-to-html -a github-copilot -y
OpenCode
$ npx skills add JimLiu/baoyu-skills --skill baoyu-markdown-to-html -a opencode -y
Windsurf
$ npx skills add JimLiu/baoyu-skills --skill baoyu-markdown-to-html -a windsurf -y
name: baoyu-markdown-to-html
description: 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.
version: 1.117.3
metadata:
openclaw:
homepage: https://github.com/JimLiu/baoyu-skills#baoyu-markdown-to-html
requires:
anyBins:
- bun
- npxOutput is HTML with inline CSS, optimized for WeChat Official Account.
When this skill prompts the user, follow this tool-selection rule (priority order):
1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent. 2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question. 3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.
Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
`{baseDir}` = this SKILL.md's directory. Resolve `${BUN_X}`: `bun` if installed → else `npx -y bun` → else suggest installing bun.
| Script | Purpose | |--------|---------| | `scripts/main.ts` | Main entry point |
First found wins:
| Priority | Path | Scope | |----------|------|-------| | 1 | `.baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | Project | | 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | XDG | | 3 | `$HOME/.baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | User home |
None found → use defaults.
**Supported**: default theme, custom CSS variables, code block style, mermaid defaults (`mermaid_theme`, `mermaid_scale`, `mermaid_background`).
Only if the input contains CJK characters AND the `baoyu-format-markdown` skill is available: ask (`AskUserQuestion`) whether to format first — it fixes `**` bold markers broken by inner punctuation and CJK/English spacing. Agree → run `baoyu-format-markdown`, use the formatted file. Decline → use the original. No CJK → skip to Step 1.
First match wins: 1. User-specified (CLI `--theme` or conversation) 2. This skill's EXTEND.md `default_theme` 3. Cross-skill fallback (only if step 2 has none): `default_theme:` line in `$HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md`, if it exists 4. None → ask (`AskUserQuestion`) with the [Themes](#themes) table
Theme from EXTEND.md → use it directly, do NOT ask.
Default off; don't ask. Enable (`--cite`) only if the user explicitly asks for "微信外链转底部引用", "底部引用", "文末引用", or passes `--cite`. When enabled:
${BUN_X} {baseDir}/scripts/main.ts <markdown_file> --theme <theme> [--cite]Show `htmlPath` from the JSON result; mention `backupPath` if a backup was created.
| Option | Description | Default | |--------|-------------|---------| | `--theme <name>` | Theme name (default, grace, simple, modern) | default | | `--color <name\|hex>` | Primary color: preset name or hex value | theme default | | `--font-family <name>` | Font: sans, serif, serif-cjk, mono, or CSS value | theme default | | `--font-size <N>` | Font size: 14px, 15px, 16px, 17px, 18px | 16px | | `--title <title>` | Override title from frontmatter | | | `--cite` | Convert external links to bottom citations, append `引用链接` section | false (off) | | `--keep-title` | Keep the first heading in content | false (removed) | | `--mermaid-theme <name>` | Mermaid theme: `default`, `forest`, `dark`, `neutral`, `base` | default | | `--mermaid-scale <N>` | Mermaid render scale (positive number ≤ 4) | 2 | | `--mermaid-width <N>` | Mermaid target display width in CSS px; PNG is rendered at `width × scale` pixels when the diagram is narrower than this | 860 | | `--mermaid-bg <value>` | Mermaid background: `white`, `transparent`, or `#hex` | white | | `--no-mermaid` | Skip Mermaid PNG rendering; emit `<pre class="mermaid">` fallback | false | | `--help` | Show help | |
**Color Presets:**
| Name | Hex | Label | |------|-----|-------| | blue | #0F4C81 | Classic Blue | | green | #009874 | Emerald Green | | vermilion | #FA5151 | Vibrant Vermilion | | yellow | #FECE00 | Lemon Yellow | | purple | #92617E | Lavender Purple | | sky | #55C9EA | Sky Blue | | rose | #B76E79 | Rose Gold | | olive | #556B2F | Olive Green | | black | #333333 | Graphite Black | | gray | #A9A9A9 | Smoke Gray | | pink | #FFB7C5 | Sakura Pink | | red | #A93226 | China Red | | orange | #D97757 | Warm Orange (modern default) |
**Examples:**
${BUN_X} {baseDir}/scripts/main.ts article.md # default theme, first heading removed
${BUN_X} {baseDir}/scripts/main.ts article.md --theme modern --color red
${BUN_X} {baseDir}/scripts/main.ts article.md --cite --keep-title --title "My Article"`/path/to/article.md` → `/path/to/article.html` (same directory). An existing HTML file is first backed up to `/path/to/article.html.bak-YYYYMMDDHHMMSS`.
**JSON to stdout:**
{
"title": "Article Title",
"author": "Author Name",
"summary": "Article summary...",
"htmlPath": "/path/to/article.html",
"backupPath": "/path/to/aSkills shared by Baoyu for improving daily work efficiency with AI Agents (Claude Code, Codex, etc.).
Universal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin, GitHub…
Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style × Palette…
Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts…
Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image", "optimize…
Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 11 color palettes and 7…
Generates images and text via reverse-engineered Gemini Web API. Supports text generation, image generation from prompts,…
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use…
AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable…
Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style…
Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to…