docs(image-generation): emphasize Codex imagegen priority and forbid SVG/HTML substitution

Strengthen the shared image-generation backend selection rule:
- Codex `imagegen` MUST be used when listed in the available-skills inventory;
  invoke via the `Skill` tool with `skill: "imagegen"`.
- Never substitute SVG, HTML, canvas, or other code-based rendering when no
  raster backend can be resolved — fall through and ask the user instead.

Applied to docs/image-generation-tools.md and inlined into baoyu-article-illustrator
(plus its references/workflow.md), baoyu-comic, baoyu-cover-image, baoyu-image-cards,
baoyu-infographic, baoyu-slide-deck, baoyu-xhs-images per the self-containment rule.
This commit is contained in:
Jim Liu 宝玉
2026-05-11 18:45:13 -05:00
parent a1b935b2d8
commit 86b1be83b8
9 changed files with 40 additions and 9 deletions
@@ -345,7 +345,14 @@ Prompt Files:
### 5.2 Select Generation Skill
Check available skills. If multiple, ask user.
Follow the `## Image Generation Tools` rule at the top of `SKILL.md`. Concretely:
- If `imagegen` is in your available-skills list (Codex), use it — invoke via the `Skill` tool with `skill: "imagegen"`.
- Else if the EXTEND.md pin is available, use it.
- Else if exactly one non-native backend is installed, use it.
- Else, ask the user.
**Do not generate SVG, HTML, or any code-based vector as a substitute for the raster image.** If no raster backend can be resolved, ask the user how to proceed.
### 5.3 Process References ⚠️ REQUIRED if references saved in Step 1.0