From a64fdbd23f6717d02fd5ef4874faec7e481da40a 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:04 -0600 Subject: [PATCH] docs(baoyu-markdown-to-html): clarify theme resolution with EXTEND.md fallbacks --- skills/baoyu-markdown-to-html/SKILL.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/skills/baoyu-markdown-to-html/SKILL.md b/skills/baoyu-markdown-to-html/SKILL.md index 0de2f70..6569385 100644 --- a/skills/baoyu-markdown-to-html/SKILL.md +++ b/skills/baoyu-markdown-to-html/SKILL.md @@ -68,9 +68,24 @@ Use `AskUserQuestion` to ask whether to format first. Formatting can fix: **If user declines**: Continue with original file. -### Step 1: Confirm Theme +### Step 1: Determine Theme -Before converting, use AskUserQuestion to confirm the theme (unless user already specified): +**Theme resolution order** (first match wins): +1. User explicitly specified theme (CLI `--theme` or conversation) +2. EXTEND.md `default_theme` (this skill's own EXTEND.md, checked in Step 0) +3. `baoyu-post-to-wechat` EXTEND.md `default_theme` (cross-skill fallback) +4. If none found → use AskUserQuestion to confirm + +**Cross-skill EXTEND.md check** (only if this skill's EXTEND.md has no `default_theme`): + +```bash +# 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 | |-------|-------------|