mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-21 17:59:47 +08:00
refactor(baoyu-xhs-images): use skill interface instead of direct script invocation for image generation
This commit is contained in:
@@ -211,14 +211,9 @@ If preferences include watermark:
|
|||||||
When generating multiple images in a series:
|
When generating multiple images in a series:
|
||||||
|
|
||||||
1. **Image 1 (cover)**: Generate without `--ref` — this establishes the visual anchor
|
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:
|
2. **Images 2+**: Always pass image 1 as `--ref` to the installed image generation skill.
|
||||||
```bash
|
Read that skill's `SKILL.md` and use its documented interface rather than calling its scripts directly.
|
||||||
${BUN_X} <image-skill-baseDir>/scripts/main.ts \
|
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.
|
||||||
--promptfiles prompts/02-content-xxx.md \
|
|
||||||
--ref path/to/01-cover-xxx.png \
|
|
||||||
--image 02-content-xxx.png --ar 3:4 --quality 2k
|
|
||||||
```
|
|
||||||
Replace `<image-skill-baseDir>` with the installed image generation skill directory.
|
|
||||||
This ensures the AI maintains the same character design, illustration style, and color rendering across the series.
|
This ensures the AI maintains the same character design, illustration style, and color rendering across the series.
|
||||||
|
|
||||||
### Step 6: Combine
|
### Step 6: Combine
|
||||||
|
|||||||
Reference in New Issue
Block a user