From fa82c3d910266c92986aa58abcc766929c020f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Sun, 8 Mar 2026 19:24:03 -0500 Subject: [PATCH] refactor(baoyu-xhs-images): use skill interface instead of direct script invocation for image generation --- .../references/workflows/prompt-assembly.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/skills/baoyu-xhs-images/references/workflows/prompt-assembly.md b/skills/baoyu-xhs-images/references/workflows/prompt-assembly.md index d418b77..5cd9e92 100644 --- a/skills/baoyu-xhs-images/references/workflows/prompt-assembly.md +++ b/skills/baoyu-xhs-images/references/workflows/prompt-assembly.md @@ -211,14 +211,9 @@ If preferences include watermark: When generating multiple images in a series: 1. **Image 1 (cover)**: Generate without `--ref` — this establishes the visual anchor -2. **Images 2+**: Always pass image 1 as `--ref` to the image generation skill: - ```bash - ${BUN_X} /scripts/main.ts \ - --promptfiles prompts/02-content-xxx.md \ - --ref path/to/01-cover-xxx.png \ - --image 02-content-xxx.png --ar 3:4 --quality 2k - ``` - Replace `` with the installed image generation skill directory. +2. **Images 2+**: Always pass image 1 as `--ref` to the installed image generation skill. + Read that skill's `SKILL.md` and use its documented interface rather than calling its scripts directly. + For each later image, use the assembled prompt file as input, set the output image path, keep aspect ratio `3:4`, use quality `2k`, and pass image 1 as the reference. This ensures the AI maintains the same character design, illustration style, and color rendering across the series. ### Step 6: Combine