From 7c2253dd3e60c05e3fdb67eacfcf1b0cee951742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Fri, 10 Apr 2026 10:58:29 -0500 Subject: [PATCH] feat(baoyu-xhs-images): add sketch-notes style, palette system, and new presets - Restore baoyu-xhs-images as active skill (remove deprecated warning) - Add sketch-notes style: hand-drawn educational infographic with macaron pastels - Add palette system (macaron/warm/neon) as optional color override dimension - Add 3 new presets: hand-drawn-edu, sketch-card, sketch-summary - Add palette gallery documentation and palette override workflow - Update style-presets.md with palette column - Update prompt-assembly.md with palette override logic - Update READMEs to reference baoyu-xhs-images --- README.md | 20 ++-- README.zh.md | 20 ++-- skills/baoyu-xhs-images/SKILL.md | 78 ++++++++++---- .../references/palettes/macaron.md | 33 ++++++ .../references/palettes/neon.md | 32 ++++++ .../references/palettes/warm.md | 32 ++++++ .../references/presets/sketch-notes.md | 100 ++++++++++++++++++ .../references/style-presets.md | 61 ++++++----- .../references/workflows/prompt-assembly.md | 56 ++++++++-- 9 files changed, 358 insertions(+), 74 deletions(-) create mode 100644 skills/baoyu-xhs-images/references/palettes/macaron.md create mode 100644 skills/baoyu-xhs-images/references/palettes/neon.md create mode 100644 skills/baoyu-xhs-images/references/palettes/warm.md create mode 100644 skills/baoyu-xhs-images/references/presets/sketch-notes.md diff --git a/README.md b/README.md index 7b7c3e2..b034ca8 100644 --- a/README.md +++ b/README.md @@ -97,32 +97,32 @@ Skills are organized into three categories: Content generation and publishing skills. -#### baoyu-image-cards +#### baoyu-xhs-images -Image card series generator. Breaks down content into 1-10 cartoon-style image cards with **Style × Layout** system and optional palette override. +Xiaohongshu image card series generator. Breaks down content into 1-10 cartoon-style image cards with **Style × Layout** system and optional palette override. ```bash # Auto-select style and layout -/baoyu-image-cards posts/ai-future/article.md +/baoyu-xhs-images posts/ai-future/article.md # Specify style -/baoyu-image-cards posts/ai-future/article.md --style notion +/baoyu-xhs-images posts/ai-future/article.md --style notion # Specify layout -/baoyu-image-cards posts/ai-future/article.md --layout dense +/baoyu-xhs-images posts/ai-future/article.md --layout dense # Combine style and layout -/baoyu-image-cards posts/ai-future/article.md --style notion --layout list +/baoyu-xhs-images posts/ai-future/article.md --style notion --layout list # Override palette -/baoyu-image-cards posts/ai-future/article.md --style notion --palette macaron +/baoyu-xhs-images posts/ai-future/article.md --style notion --palette macaron # Direct content input -/baoyu-image-cards 今日星座运势 +/baoyu-xhs-images 今日星座运势 # Non-interactive (skip all confirmations, for scheduled tasks) -/baoyu-image-cards posts/ai-future/article.md --yes -/baoyu-image-cards posts/ai-future/article.md --yes --preset knowledge-card +/baoyu-xhs-images posts/ai-future/article.md --yes +/baoyu-xhs-images posts/ai-future/article.md --yes --preset knowledge-card ``` **Styles** (visual aesthetics): `cute` (default), `fresh`, `warm`, `bold`, `minimal`, `retro`, `pop`, `notion`, `chalkboard`, `study-notes`, `screen-print`, `sketch-notes` diff --git a/README.zh.md b/README.zh.md index 1fc877b..a1757a8 100644 --- a/README.zh.md +++ b/README.zh.md @@ -97,32 +97,32 @@ clawhub install baoyu-markdown-to-html 内容生成和发布技能。 -#### baoyu-image-cards +#### baoyu-xhs-images -图片卡片系列生成器。将内容拆解为 1-10 张卡通风格图片卡片,支持 **风格 × 布局** 系统和可选配色覆盖。 +小红书图片卡片系列生成器。将内容拆解为 1-10 张卡通风格图片卡片,支持 **风格 × 布局** 系统和可选配色覆盖。 ```bash # 自动选择风格和布局 -/baoyu-image-cards posts/ai-future/article.md +/baoyu-xhs-images posts/ai-future/article.md # 指定风格 -/baoyu-image-cards posts/ai-future/article.md --style notion +/baoyu-xhs-images posts/ai-future/article.md --style notion # 指定布局 -/baoyu-image-cards posts/ai-future/article.md --layout dense +/baoyu-xhs-images posts/ai-future/article.md --layout dense # 组合风格和布局 -/baoyu-image-cards posts/ai-future/article.md --style notion --layout list +/baoyu-xhs-images posts/ai-future/article.md --style notion --layout list # 覆盖配色 -/baoyu-image-cards posts/ai-future/article.md --style notion --palette macaron +/baoyu-xhs-images posts/ai-future/article.md --style notion --palette macaron # 直接输入内容 -/baoyu-image-cards 今日星座运势 +/baoyu-xhs-images 今日星座运势 # 非交互模式(跳过所有确认,适用于定时任务) -/baoyu-image-cards posts/ai-future/article.md --yes -/baoyu-image-cards posts/ai-future/article.md --yes --preset knowledge-card +/baoyu-xhs-images posts/ai-future/article.md --yes +/baoyu-xhs-images posts/ai-future/article.md --yes --preset knowledge-card ``` **风格**(视觉美学):`cute`(默认)、`fresh`、`warm`、`bold`、`minimal`、`retro`、`pop`、`notion`、`chalkboard`、`study-notes`、`screen-print`、`sketch-notes` diff --git a/skills/baoyu-xhs-images/SKILL.md b/skills/baoyu-xhs-images/SKILL.md index 3922984..8e6a26a 100644 --- a/skills/baoyu-xhs-images/SKILL.md +++ b/skills/baoyu-xhs-images/SKILL.md @@ -1,17 +1,15 @@ --- name: baoyu-xhs-images -description: "DEPRECATED: Migrated to baoyu-image-cards. Generates Xiaohongshu (Little Red Book) infographic series with 11 visual styles and 8 layouts. Breaks content into 1-10 cartoon-style images optimized for XHS engagement. Use when user mentions \"小红书图片\", \"XHS images\", \"RedNote infographics\", \"小红书种草\", or wants social media infographics for Chinese platforms." +description: Generates Xiaohongshu (Little Red Book) image card series with 12 visual styles, 8 layouts, and 3 color palettes. Breaks content into 1-10 cartoon-style image cards optimized for XHS engagement. Use when user mentions "小红书图片", "XHS images", "RedNote infographics", "小红书种草", "小绿书", "微信图文", "微信贴图", or wants social media infographic series for Chinese platforms. version: 1.56.1 metadata: openclaw: homepage: https://github.com/JimLiu/baoyu-skills#baoyu-xhs-images --- -# Xiaohongshu Infographic Series Generator +# Xiaohongshu Image Card Series Generator -> **⚠️ DEPRECATED**: This skill has been migrated to `baoyu-image-cards`. Print a bold red warning to the user **in the user's language** (use ANSI escape `\033[1;31m`) stating that `baoyu-xhs-images` has been migrated to `baoyu-image-cards` and they should use `baoyu-image-cards` instead. Then STOP — do NOT continue executing this skill. - -Break down complex content into eye-catching infographic series for Xiaohongshu with multiple style options. +Break down complex content into eye-catching Xiaohongshu image card series with multiple style options. ## Usage @@ -28,12 +26,18 @@ Break down complex content into eye-catching infographic series for Xiaohongshu # Combine style and layout /baoyu-xhs-images posts/ai-future/article.md --style notion --layout list -# Use preset (style + layout shorthand) +# Specify palette (override style colors) +/baoyu-xhs-images posts/ai-future/article.md --style notion --palette macaron + +# Use preset (style + layout + optional palette shorthand) /baoyu-xhs-images posts/ai-future/article.md --preset knowledge-card # Preset with override /baoyu-xhs-images posts/ai-future/article.md --preset poster --layout quadrant +# Preset with palette override +/baoyu-xhs-images posts/ai-future/article.md --preset hand-drawn-edu --palette warm + # Direct content input /baoyu-xhs-images [paste content] @@ -53,25 +57,33 @@ Break down complex content into eye-catching infographic series for Xiaohongshu |--------|-------------| | `--style ` | Visual style (see Style Gallery) | | `--layout ` | Information layout (see Layout Gallery) | -| `--preset ` | Style + layout shorthand (see [Style Presets](references/style-presets.md)) | +| `--palette ` | Color palette override (see Palette Gallery) | +| `--preset ` | Style + layout + optional palette shorthand (see [Style Presets](references/style-presets.md)) | | `--yes` | Non-interactive mode: skip all confirmations. Uses EXTEND.md preferences if found, otherwise uses defaults (no watermark, auto style/layout). Auto-confirms recommended plan (Path A). Suitable for scheduled tasks and automation. | -## Two Dimensions +## Dimensions | Dimension | Controls | Options | |-----------|----------|---------| -| **Style** | Visual aesthetics: colors, lines, decorations | cute, fresh, warm, bold, minimal, retro, pop, notion, chalkboard, study-notes, screen-print | +| **Style** | Visual aesthetics: lines, decorations, rendering | cute, fresh, warm, bold, minimal, retro, pop, notion, chalkboard, study-notes, screen-print, sketch-notes | | **Layout** | Information structure: density, arrangement | sparse, balanced, dense, list, comparison, flow, mindmap, quadrant | +| **Palette** (optional) | Color override: replaces style's default colors | macaron, warm, neon | -Style × Layout can be freely combined. Example: `--style notion --layout dense` creates an intellectual-looking knowledge card with high information density. +Style × Layout can be freely combined, with optional palette override. Example: `--style notion --layout dense` creates an intellectual-looking knowledge card with high information density. Add `--palette macaron` to swap colors to soft pastels while keeping notion's rendering style. Or use presets: `--preset knowledge-card` → style + layout in one flag. See [Style Presets](references/style-presets.md). +**Palette behavior**: +- No `--palette` → style uses its built-in colors (or its `default_palette` if defined) +- `--palette macaron` → overrides any style's colors with macaron palette +- Palette replaces colors only; style rendering rules (line treatment, elements, textures) stay unchanged +- Some styles declare a `default_palette` (e.g., sketch-notes defaults to macaron) + ## Style Gallery | Style | Description | |-------|-------------| -| `cute` (Default) | Sweet, adorable, girly - classic Xiaohongshu aesthetic | +| `cute` (Default) | Sweet, adorable, girly aesthetic | | `fresh` | Clean, refreshing, natural | | `warm` | Cozy, friendly, approachable | | `bold` | High impact, attention-grabbing | @@ -82,6 +94,7 @@ Or use presets: `--preset knowledge-card` → style + layout in one flag. See [S | `chalkboard` | Colorful chalk on black board, educational | | `study-notes` | Realistic handwritten photo style, blue pen + red annotations + yellow highlighter | | `screen-print` | Bold poster art, halftone textures, limited colors, symbolic storytelling | +| `sketch-notes` | Hand-drawn educational infographic, macaron pastels on warm cream, wobble lines | Detailed style definitions: `references/presets/