From eded9a98bba7dd0e618b48b898b64a9d5811a3e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Tue, 24 Feb 2026 18:51:10 -0600 Subject: [PATCH] docs(baoyu-post-to-wechat): enforce explicit theme passing for markdown conversion --- skills/baoyu-post-to-wechat/SKILL.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/skills/baoyu-post-to-wechat/SKILL.md b/skills/baoyu-post-to-wechat/SKILL.md index 6e56515..4c6f383 100644 --- a/skills/baoyu-post-to-wechat/SKILL.md +++ b/skills/baoyu-post-to-wechat/SKILL.md @@ -196,20 +196,19 @@ B) Continue - provide HTML file manually **Skip if**: Input is `.html` file -1. **Ask theme preference** (unless specified in EXTEND.md or CLI): +1. **Resolve theme** (first match wins, do NOT ask user if resolved): + - CLI `--theme` argument + - EXTEND.md `default_theme` (loaded in Step 0) + - Fallback: `default` -| Theme | Description | -|-------|-------------| -| `default` | 经典主题 - 传统排版,标题居中带底边,二级标题白字彩底 | -| `grace` | 优雅主题 - 文字阴影,圆角卡片,精致引用块 | -| `simple` | 简洁主题 - 现代极简风,不对称圆角,清爽留白 | - -2. **Execute conversion** (using the discovered skill): +2. **Execute conversion** (using the discovered skill), **always pass `--theme`**: ```bash npx -y bun ${MD_TO_HTML_SKILL_DIR}/scripts/main.ts --theme ``` +**CRITICAL**: Always include `--theme` parameter. Never omit it, even if using `default`. + 3. **Parse JSON output** to get: `htmlPath`, `title`, `author`, `summary`, `contentImages` ### Step 4: Validate Metadata