diff --git a/CLAUDE.md b/CLAUDE.md index 99bd97b..678d5c2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -89,7 +89,7 @@ ${BUN_X} skills/baoyu-danger-gemini-web/scripts/main.ts --promptfiles system.md - **Bun**: TypeScript runtime (native `bun` preferred, fallback `npx -y bun`) - **Chrome**: Required for `baoyu-danger-gemini-web` auth and `baoyu-post-to-x` automation -- **No npm packages**: Self-contained TypeScript, no external dependencies +- **npm packages (per skill)**: Some skill subprojects include `package.json`/lockfiles and require dependency installation in their own `scripts/` directories ## Chrome Profile (Unified) diff --git a/README.md b/README.md index 3022fb7..2c89f8e 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ Simply tell Claude Code: |--------|-------------|--------| | **content-skills** | Content generation and publishing | [xhs-images](#baoyu-xhs-images), [infographic](#baoyu-infographic), [cover-image](#baoyu-cover-image), [slide-deck](#baoyu-slide-deck), [comic](#baoyu-comic), [article-illustrator](#baoyu-article-illustrator), [post-to-x](#baoyu-post-to-x), [post-to-wechat](#baoyu-post-to-wechat), [post-to-weibo](#baoyu-post-to-weibo) | | **ai-generation-skills** | AI-powered generation backends | [image-gen](#baoyu-image-gen), [danger-gemini-web](#baoyu-danger-gemini-web) | -| **utility-skills** | Utility tools for content processing | [url-to-markdown](#baoyu-url-to-markdown), [danger-x-to-markdown](#baoyu-danger-x-to-markdown), [compress-image](#baoyu-compress-image), [format-markdown](#baoyu-format-markdown), [translate](#baoyu-translate) | +| **utility-skills** | Utility tools for content processing | [url-to-markdown](#baoyu-url-to-markdown), [danger-x-to-markdown](#baoyu-danger-x-to-markdown), [compress-image](#baoyu-compress-image), [format-markdown](#baoyu-format-markdown), [markdown-to-html](#baoyu-markdown-to-html), [translate](#baoyu-translate) | ## Update Skills @@ -798,6 +798,21 @@ Format plain text or markdown files with proper frontmatter, titles, summaries, | Code/commands | `` `inline` `` or ` ```block``` ` | | Quotes | `>` blockquote | +#### baoyu-markdown-to-html + +Convert markdown files into styled HTML with WeChat-compatible themes, syntax highlighting, and optional bottom citations for external links. + +```bash +# Basic conversion +/baoyu-markdown-to-html article.md + +# Theme + color +/baoyu-markdown-to-html article.md --theme grace --color red + +# Convert ordinary external links to bottom citations +/baoyu-markdown-to-html article.md --cite +``` + #### baoyu-translate Translate articles and documents between languages with three modes: quick (direct), normal (analysis-informed), and refined (full publication-quality workflow with review and polish). diff --git a/README.zh.md b/README.zh.md index 6dab992..f078665 100644 --- a/README.zh.md +++ b/README.zh.md @@ -76,7 +76,7 @@ clawhub install baoyu-markdown-to-html |------|------|----------| | **content-skills** | 内容生成和发布 | [xhs-images](#baoyu-xhs-images), [infographic](#baoyu-infographic), [cover-image](#baoyu-cover-image), [slide-deck](#baoyu-slide-deck), [comic](#baoyu-comic), [article-illustrator](#baoyu-article-illustrator), [post-to-x](#baoyu-post-to-x), [post-to-wechat](#baoyu-post-to-wechat), [post-to-weibo](#baoyu-post-to-weibo) | | **ai-generation-skills** | AI 生成后端 | [image-gen](#baoyu-image-gen), [danger-gemini-web](#baoyu-danger-gemini-web) | -| **utility-skills** | 内容处理工具 | [url-to-markdown](#baoyu-url-to-markdown), [danger-x-to-markdown](#baoyu-danger-x-to-markdown), [compress-image](#baoyu-compress-image), [format-markdown](#baoyu-format-markdown), [translate](#baoyu-translate) | +| **utility-skills** | 内容处理工具 | [url-to-markdown](#baoyu-url-to-markdown), [danger-x-to-markdown](#baoyu-danger-x-to-markdown), [compress-image](#baoyu-compress-image), [format-markdown](#baoyu-format-markdown), [markdown-to-html](#baoyu-markdown-to-html), [translate](#baoyu-translate) | ## 更新技能 @@ -798,6 +798,21 @@ AI 驱动的生成后端。 | 代码/命令 | `` `行内` `` 或 ` ```代码块``` ` | | 引用 | `>` 引用块 | +#### baoyu-markdown-to-html + +将 Markdown 文件转换为样式化 HTML,支持微信公众号兼容主题、代码高亮,以及可选的外链底部引用。 + +```bash +# 基础转换 +/baoyu-markdown-to-html article.md + +# 主题 + 颜色 +/baoyu-markdown-to-html article.md --theme grace --color red + +# 将普通外链转换为文末引用 +/baoyu-markdown-to-html article.md --cite +``` + #### baoyu-translate 三模式翻译技能:快速(直接翻译)、标准(分析后翻译)、精翻(完整出版级工作流,含审校与润色)。