Tooluck logoTooluck
SKILL.md

baoyu-markdown-to-html

Agent skill fromJimLiu/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.

How to install baoyu-markdown-to-html

install baoyu-markdown-to-html
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills

# or add only this skill to Claude Code: copy the folder

skills/baoyu-markdown-to-html/

# into

~/.claude/skills/baoyu-markdown-to-html/ (all projects)

.claude/skills/baoyu-markdown-to-html/ (one project)

skills/baoyu-markdown-to-html/SKILL.md

MITFull file
1# Markdown to HTML Converter
2
3Output is HTML with inline CSS, optimized for WeChat Official Account.
4
5## User Input Tools
6
7When this skill prompts the user, follow this tool-selection rule (priority order):
8
91. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.
102. **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.
113. **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.
12
13Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
14
15## Script Directory
16
17`{baseDir}` = this SKILL.md's directory. Resolve `${BUN_X}`: `bun` if installed → else `npx -y bun` → else suggest installing bun.
18
19| Script | Purpose |
20|--------|---------|
21| `scripts/main.ts` | Main entry point |
22
23## Preferences (EXTEND.md)
24
25First found wins:
26
27| Priority | Path | Scope |
28|----------|------|-------|
29| 1 | `.baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | Project |
30| 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | XDG |
31| 3 | `$HOME/.baoyu-skills/baoyu-markdown-to-html/EXTEND.md` | User home |
32
33None found → use defaults.
34…

Excerpt shown under the repository's MIT license.

More skills in baoyu-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates