packages/skills/skills/baoyu-markdown-to-html/SKILL.md
Converts Markdown to styled HTML with WeChat-compatible themes. Supports code highlighting, math, PlantUML, footnotes, alerts, and infographics. Use when user asks for "markdown to html", "convert md to html", "md转html", or needs styled HTML output from markdown.
npx skillsauth add mediar-ai/skillhubz baoyu-markdown-to-htmlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Converts Markdown files to beautifully styled HTML with inline CSS, optimized for WeChat Official Account and other platforms.
Agent Execution: Determine this SKILL.md directory as SKILL_DIR, then use ${SKILL_DIR}/scripts/<name>.ts.
| Script | Purpose |
|--------|---------|
| scripts/main.ts | Main entry point |
Use Bash to check EXTEND.md existence (priority order):
# Check project-level first
test -f .baoyu-skills/baoyu-markdown-to-html/EXTEND.md && echo "project"
# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.baoyu-skills/baoyu-markdown-to-html/EXTEND.md" && echo "user"
┌──────────────────────────────────────────────────────────────┬───────────────────┐ │ Path │ Location │ ├──────────────────────────────────────────────────────────────┼───────────────────┤ │ .baoyu-skills/baoyu-markdown-to-html/EXTEND.md │ Project directory │ ├──────────────────────────────────────────────────────────────┼───────────────────┤ │ $HOME/.baoyu-skills/baoyu-markdown-to-html/EXTEND.md │ User home │ └──────────────────────────────────────────────────────────────┴───────────────────┘
┌───────────┬───────────────────────────────────────────────────────────────────────────┐ │ Result │ Action │ ├───────────┼───────────────────────────────────────────────────────────────────────────┤ │ Found │ Read, parse, apply settings │ ├───────────┼───────────────────────────────────────────────────────────────────────────┤ │ Not found │ Use defaults │ └───────────┴───────────────────────────────────────────────────────────────────────────┘
EXTEND.md Supports: Default theme | Custom CSS variables | Code block style
Condition: Only execute if input file contains Chinese text.
Detection:
Format Suggestion:
If CJK content detected AND baoyu-format-markdown skill is available:
Use AskUserQuestion to ask whether to format first. Formatting can fix:
** parse failuresIf user agrees: Invoke baoyu-format-markdown skill to format the file, then use formatted file as input.
If user declines: Continue with original file.
Theme resolution order (first match wins):
--theme or conversation)default_theme (this skill's own EXTEND.md, checked in Step 0)baoyu-post-to-wechat EXTEND.md default_theme (cross-skill fallback)Cross-skill EXTEND.md check (only if this skill's EXTEND.md has no default_theme):
# Check baoyu-post-to-wechat EXTEND.md for default_theme
test -f "$HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md" && grep -o 'default_theme:.*' "$HOME/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md"
If theme is resolved from EXTEND.md: Use it directly, do NOT ask the user.
If no default found: Use AskUserQuestion to confirm:
| Theme | Description |
|-------|-------------|
| default (Recommended) | 经典主题 - 传统排版,标题居中带底边,二级标题白字彩底 |
| grace | 优雅主题 - 文字阴影,圆角卡片,精致引用块 |
| simple | 简洁主题 - 现代极简风,不对称圆角,清爽留白 |
| modern | 现代主题 - 大圆角、药丸形标题、宽松行距(搭配 --color red 还原传统红金风格) |
npx -y bun ${SKILL_DIR}/scripts/main.ts <markdown_file> --theme <theme>
Display the output path from JSON result. If backup was created, mention it.
npx -y bun ${SKILL_DIR}/scripts/main.ts <markdown_file> [options]
Options:
| 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 | |
| --keep-title | Keep the first heading in content | false (removed) |
| --help | Show help | |
Color Presets:
| Name | Hex | Label | |------|-----|-------| | blue | #0F4C81 | 经典蓝 | | green | #009874 | 翡翠绿 | | vermilion | #FA5151 | 活力橘 | | yellow | #FECE00 | 柠檬黄 | | purple | #92617E | 薰衣紫 | | sky | #55C9EA | 天空蓝 | | rose | #B76E79 | 玫瑰金 | | olive | #556B2F | 橄榄绿 | | black | #333333 | 石墨黑 | | gray | #A9A9A9 | 雾烟灰 | | pink | #FFB7C5 | 樱花粉 | | red | #A93226 | 中国红 | | orange | #D97757 | 暖橘 (modern default) |
Examples:
# Basic conversion (uses default theme, removes first heading)
npx -y bun ${SKILL_DIR}/scripts/main.ts article.md
# With specific theme
npx -y bun ${SKILL_DIR}/scripts/main.ts article.md --theme grace
# Theme with custom color
npx -y bun ${SKILL_DIR}/scripts/main.ts article.md --theme modern --color red
# Keep the first heading in content
npx -y bun ${SKILL_DIR}/scripts/main.ts article.md --keep-title
# Override title
npx -y bun ${SKILL_DIR}/scripts/main.ts article.md --title "My Article"
File location: Same directory as input markdown file.
/path/to/article.md/path/to/article.htmlConflict handling: If HTML file already exists, it will be backed up first:
/path/to/article.html.bak-YYYYMMDDHHMMSSJSON output to stdout:
{
"title": "Article Title",
"author": "Author Name",
"summary": "Article summary...",
"htmlPath": "/path/to/article.html",
"backupPath": "/path/to/article.html.bak-20260128180000",
"contentImages": [
{
"placeholder": "MDTOHTMLIMGPH_1",
"localPath": "/path/to/img.png",
"originalPath": "imgs/image.png"
}
]
}
| Theme | Description |
|-------|-------------|
| default | 经典主题 - 传统排版,标题居中带底边,二级标题白字彩底 |
| grace | 优雅主题 - 文字阴影,圆角卡片,精致引用块 (by @brzhang) |
| simple | 简洁主题 - 现代极简风,不对称圆角,清爽留白 (by @okooo5km) |
| modern | 现代主题 - 大圆角、药丸形标题、宽松行距(搭配 --color red 还原传统红金风格) |
| Feature | Syntax |
|---------|--------|
| Headings | # H1 to ###### H6 |
| Bold/Italic | **bold**, *italic* |
| Code blocks | ```lang with syntax highlighting |
| Inline code | `code` |
| Tables | GitHub-flavored markdown tables |
| Images |  |
| Links | [text](url) with footnote references |
| Blockquotes | > quote |
| Lists | - unordered, 1. ordered |
| Alerts | > [!NOTE], > [!WARNING], etc. |
| Footnotes | [^1] references |
| Ruby text | {base|annotation} |
| Mermaid | ```mermaid diagrams |
| PlantUML | ```plantuml diagrams |
Supports YAML frontmatter for metadata:
---
title: Article Title
author: Author Name
description: Article summary
---
If no title is found, extracts from first H1/H2 heading or uses filename.
Custom configurations via EXTEND.md. See Preferences section for paths and supported options.
tools
# X Twitter Scraper Use Xquik for X/Twitter tweet search, user lookup, profile tweets, follower export, media download, monitors, webhooks, posting workflows, and MCP-backed API exploration. ## Prerequisites - A Xquik API key in `XQUIK_API_KEY`. - Internet access to `https://xquik.com/api/v1`, `https://xquik.com/mcp`, and `https://docs.xquik.com`. - A clear user request that identifies the target tweets, users, accounts, keywords, media, monitor, webhook, or write action. ## Source Truth -
tools
Use when the user says "mk0r", "appmaker CLI", "open a VM", "run something in the sandbox", "talk to the VM agent", "spin up an E2B sandbox", or "chat with appmaker from CLI." Wraps the `mk0r` CLI to list projects, exec commands inside their E2B sandboxes, stream chat with the VM agent (same `/api/chat` the web UI uses), toggle SOAX residential IP, manage schedules, and copy files. Supports a sticky default project via `mk0r projects use`.
testing
Use when the user mentions "influencer candidates", "social media operator", "check proposals on Upwork/Fiverr", "review influencer applications", "qualify candidates", or "reach out to operators". Manages the IG/TikTok account operator hiring pipeline — review applicants, check replies, qualify, and do proactive outreach.
tools
End-to-end newsletter pipeline: investigate recent features, draft, send via API endpoint, and track delivery/open/click metrics.