Install
openclaw skills install @jerryxn/zm-visual-prompt-img2-workflowZM IMG2 视觉提示词编排。用于把漫画页、PPT 主视觉、封面/配图等结构化视觉需求,编译为可执行的 happy/gpt-image-2 提示词,并检查参考图、主角图、风格、禁止项和 IMG2 生产证据。
openclaw skills install @jerryxn/zm-visual-prompt-img2-workflowThis skill is a thin compiler and evidence wrapper for comic image generation. It does not call Responses/Codex image tools. Actual image creation is delegated to:
python3 skills/zm-img2-generation-direct/scripts/run.py
With reference images present, that direct skill routes to /images/edits on the configured Happy OpenAI-compatible image provider (https://sub2api.happyhourse.cn/v1, model gpt-image-2).
Use this when a comic page has a long editorial brief but the image API needs a short, hard, clear prompt.
The compiler accepts structured JSON/YAML or CLI fields:
page_idtitlescenedialogues / dialoguescreen_textremindercharactersforbiddenstyle_ref_textreference_imagesIt produces a concise prompt, normally about 200-500 Chinese/English characters for simple comic pages, and avoids embedding long review standards.
Default behavior is minimal:
reference_images;--style-image <path> can add one style reference, for example P1;P2;input_images by default (--require-character-refs, default true);--max-input-images, default 2.Each compiler run creates a directory under:
<openclaw-home>/generated-images/zm-visual-prompt-img2-workflow/_compiler_runs/<task>-<timestamp>/
Artifacts:
compiled_prompt.txtrequest.jsonresult.jsonrun_command.mdstdout.txtstderr.txtsummary.jsonFor actual runs, summary.json also points to the underlying zm-img2-generation-direct run directory and output image.
Compile and validate only:
python3 skills/zm-visual-prompt-img2-workflow/scripts/compile_and_run.py \
skills/zm-visual-prompt-img2-workflow/examples/ai_hallucination_p03.json \
--task-name ai-hallucination-p03-compiler-test \
--dry-run
Check:
cat <openclaw-home>/generated-images/zm-visual-prompt-img2-workflow/_compiler_runs/<run>/compiled_prompt.txt
cat <openclaw-home>/generated-images/zm-visual-prompt-img2-workflow/_compiler_runs/<run>/summary.json
Single attempt, 600000ms timeout:
python3 skills/zm-visual-prompt-img2-workflow/scripts/compile_and_run.py \
skills/zm-visual-prompt-img2-workflow/examples/ai_hallucination_p03.json \
--task-name ai-hallucination-p03-compiler-test \
--run \
--timeout-ms 600000 \
--max-attempts 1
Expected proof for acceptance:
summary.json.ok: truesummary.json.used_direct_endpoint_actual: /images/editssummary.json.actual_mode: editsummary.json.input_images contains only the cat and husky references;P2, no logo/QR/lobster/OpenClaw input image;result.json has provider: happy, model: gpt-image-2, mode: edit, input_images populated.python3 -m py_compile skills/zm-visual-prompt-img2-workflow/scripts/compile_and_run.py
python3 skills/zm-visual-prompt-img2-workflow/scripts/compile_and_run.py --help
python3 skills/zm-visual-prompt-img2-workflow/scripts/compile_and_run.py \
skills/zm-visual-prompt-img2-workflow/examples/ai_hallucination_p03.json --dry-run
zm-img2-generation-direct.