From eb92bdb9dfb821d5ba3635b27d531fc8ba1b9343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Thu, 22 Jan 2026 11:47:56 -0600 Subject: [PATCH] chore: release v1.15.0 --- .claude-plugin/marketplace.json | 2 +- CHANGELOG.md | 8 + CHANGELOG.zh.md | 8 + skills/baoyu-xhs-images/SKILL.md | 61 +++++++- .../references/first-time-setup.md | 140 ++++++++++++++++++ .../references/preferences-schema.md | 121 +++++++++++++++ .../references/watermark-guide.md | 73 +++++++++ 7 files changed, 407 insertions(+), 6 deletions(-) create mode 100644 skills/baoyu-xhs-images/references/first-time-setup.md create mode 100644 skills/baoyu-xhs-images/references/preferences-schema.md create mode 100644 skills/baoyu-xhs-images/references/watermark-guide.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 75964d9..6da2569 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -6,7 +6,7 @@ }, "metadata": { "description": "Skills shared by Baoyu for improving daily work efficiency", - "version": "1.14.0" + "version": "1.15.0" }, "plugins": [ { diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b92d02..6562032 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ English | [中文](./CHANGELOG.zh.md) +## 1.15.0 - 2026-01-22 + +### Features +- `baoyu-xhs-images`: adds user preferences support via EXTEND.md—configure watermark (content, position, opacity), preferred style, preferred layout, and custom styles. New Step 0 checks for preferences at project (`.baoyu-skills/`) or user (`~/.baoyu-skills/`) level with first-time setup flow. + +### Documentation +- `baoyu-xhs-images`: adds three reference documents—`preferences-schema.md` (YAML schema), `watermark-guide.md` (position and opacity guide), `first-time-setup.md` (setup flow). + ## 1.14.0 - 2026-01-22 ### Fixes diff --git a/CHANGELOG.zh.md b/CHANGELOG.zh.md index 31182ad..b3ee663 100644 --- a/CHANGELOG.zh.md +++ b/CHANGELOG.zh.md @@ -2,6 +2,14 @@ [English](./CHANGELOG.md) | 中文 +## 1.15.0 - 2026-01-22 + +### 新功能 +- `baoyu-xhs-images`:新增用户偏好设置支持(通过 EXTEND.md 配置)——可设置水印(内容、位置、透明度)、首选风格、首选布局和自定义风格。新增 Step 0 检查项目级(`.baoyu-skills/`)或用户级(`~/.baoyu-skills/`)偏好设置,首次使用时引导设置。 + +### 文档 +- `baoyu-xhs-images`:新增三个参考文档——`preferences-schema.md`(YAML 配置模式)、`watermark-guide.md`(水印位置和透明度指南)、`first-time-setup.md`(首次设置流程)。 + ## 1.14.0 - 2026-01-22 ### 修复 diff --git a/skills/baoyu-xhs-images/SKILL.md b/skills/baoyu-xhs-images/SKILL.md index 6f49847..2d6a2e6 100644 --- a/skills/baoyu-xhs-images/SKILL.md +++ b/skills/baoyu-xhs-images/SKILL.md @@ -127,6 +127,31 @@ Copy all sources with naming `source-{slug}.{ext}`: ## Workflow +### Step 0: Check Preferences + +**Check paths** (priority order): +1. `.baoyu-skills/baoyu-xhs-images/EXTEND.md` (project) +2. `~/.baoyu-skills/baoyu-xhs-images/EXTEND.md` (user) + +**If preferences found**: +1. Parse YAML frontmatter +2. Display current preferences summary: + ``` + Loaded preferences from [path]: + - Watermark: [enabled/disabled] "[content]" at [position] + - Style: [name] - [description] + - Layout: [layout] + - Language: [lang] + ``` +3. Continue to Step 1 + +**If NO preferences found**: +1. Ask user with AskUserQuestion (see `references/first-time-setup.md`) +2. Create EXTEND.md with user choices +3. Continue to Step 1 + +Schema reference: `references/preferences-schema.md` + ### Step 1: Analyze Content → `analysis.md` Read source content, save it if needed, and perform deep analysis. @@ -172,6 +197,10 @@ Based on analysis, create three distinct style variants. **IMPORTANT**: Present ALL options in a single confirmation step using AskUserQuestion. Do NOT interrupt workflow with multiple separate confirmations. +**Prioritize user preferences** (from Step 0): +- If user has `preferred_style`: Show as first option with "(Your preference)" +- If user has `preferred_layout`: Show as first option with "(Your preference)" + **Determine which questions to ask**: | Question | When to Ask | @@ -188,14 +217,15 @@ Based on analysis, create three distinct style variants. ``` Question 1 (Style): Which style variant? -- A: notion + dense (Recommended) - 知识卡片风格,适合干货 -- B: notion + list - 清爽知识卡片 -- C: minimal + balanced - 简约高端风格 +- User preference: notion + dense (Your preference) - 您的默认设置 +- A: notion + list - AI推荐: 清爽知识卡片 +- B: minimal + balanced - AI推荐: 简约高端风格 - Custom: 自定义风格描述 Question 2 (Layout) - only if relevant: +- Your preference: dense (Your preference) - Keep variant default (Recommended) -- sparse / balanced / dense / list / comparison / flow +- sparse / balanced / list / comparison / flow Question 3 (Language) - only if mismatch: - 中文 (匹配原文) @@ -217,6 +247,15 @@ With confirmed outline + style + layout: 2. Generate image using confirmed style and layout 3. Report progress after each generation +**Watermark Application** (if enabled in preferences): +Add to each image generation prompt: +``` +Include a subtle watermark "[content]" positioned at [position] +with approximately [opacity*100]% visibility. The watermark should +be legible but not distracting from the main content. +``` +Reference: `references/watermark-guide.md` + **Image Generation Skill Selection**: - Check available image generation skills - If multiple skills available, ask user preference @@ -301,6 +340,9 @@ Detailed templates and guidelines in `references/` directory: - `styles/