From 3fddcc0e6acaedabc799ea4a740993d8044d6661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Thu, 15 Jan 2026 10:58:20 -0600 Subject: [PATCH] feat: Update image generation steps in article-illustrator, cover-image, and xhs-images skills for improved user guidance --- .gitignore | 1 + skills/article-illustrator/SKILL.md | 19 +++++++++---------- skills/cover-image/SKILL.md | 9 +++++---- skills/xhs-images/SKILL.md | 17 ++++++++--------- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index ced4826..5d9dbd5 100644 --- a/.gitignore +++ b/.gitignore @@ -139,3 +139,4 @@ vite.config.js.timestamp-* vite.config.ts.timestamp-* tests-data/ +.DS_Store diff --git a/skills/article-illustrator/SKILL.md b/skills/article-illustrator/SKILL.md index 8558432..08dbce4 100644 --- a/skills/article-illustrator/SKILL.md +++ b/skills/article-illustrator/SKILL.md @@ -201,17 +201,16 @@ Style notes: [specific style characteristics] ### Step 5: Generate Images -For each illustration, call: +**Image Generation Skill Selection**: +1. Check available image generation skills +2. If multiple skills available, ask user to choose -```bash -/gemini-web --promptfiles [SKILL_ROOT]/skills/article-illustrator/prompts/system.md [ARTICLE_DIR]/imgs/prompts/illustration-[slug].md --image [ARTICLE_DIR]/imgs/illustration-[slug].png -``` - -Generation flow: -1. Generate images sequentially -2. After each image, output progress: "Generated X/N" -3. On failure, auto-retry once -4. If retry fails, log reason, continue to next +**Generation Flow**: +1. Call selected image generation skill with prompt file and output path +2. Generate images sequentially +3. After each image, output progress: "Generated X/N" +4. On failure, auto-retry once +5. If retry fails, log reason, continue to next ### Step 6: Update Article diff --git a/skills/cover-image/SKILL.md b/skills/cover-image/SKILL.md index 4905f67..774cacd 100644 --- a/skills/cover-image/SKILL.md +++ b/skills/cover-image/SKILL.md @@ -191,11 +191,12 @@ Note: No title text, pure visual illustration only. ### Step 5: Generate Image -Call gemini-web to generate the cover: +**Image Generation Skill Selection**: +1. Check available image generation skills +2. If multiple skills available, ask user to choose -```bash -/gemini-web --promptfiles [SKILL_ROOT]/skills/cover-image/prompts/system.md [PROMPT_PATH] --image [OUTPUT_PATH] -``` +**Generation**: +Call selected image generation skill with prompt file and output path. ### Step 6: Output Summary diff --git a/skills/xhs-images/SKILL.md b/skills/xhs-images/SKILL.md index 9ee8bf4..3ab2569 100644 --- a/skills/xhs-images/SKILL.md +++ b/skills/xhs-images/SKILL.md @@ -328,16 +328,15 @@ Style notes: [style-specific characteristics] | `comparison` | Two-column split, clear divider, mirrored structure left/right | | `flow` | Horizontal or vertical flow with arrows, connected nodes/steps | -Then generate using: +**Image Generation Skill Selection**: +1. Check available image generation skills +2. If multiple skills available, ask user to choose -```bash -/gemini-web --promptfiles [SKILL_ROOT]/skills/xhs-images/prompts/system.md [TARGET_DIR]/prompts/01-cover.md --image [TARGET_DIR]/01-cover.png -``` - -After each image: -1. Confirm generation success -2. Report progress: "Generated X/N" -3. Continue to next +**Generation Flow**: +1. Call selected image generation skill with prompt file and output path +2. Confirm generation success +3. Report progress: "Generated X/N" +4. Continue to next ### Step 5: Completion Report