Neo Infographic
Long-running generation must run in a subagent. Use scripts/openclaw_runner.py as the execution entrypoint.
Trigger Rules
text-to-image
Trigger only when all of these are true:
- The user explicitly asks to create a new image.
- The requested artifact is visual content such as an infographic, poster, illustration, or generic image.
- The request is a new generation request, not a reaction to an already generated result.
Do not trigger for:
- discussing an existing image
- asking how the skill works
- mentioning "image" without an actual generation request
- agent-authored text that happens to contain trigger words
image-edit
Trigger only when both of these are true:
- The user explicitly asks to edit or rewrite an existing image.
- A source image is available as a URL, local path, cached file key, or can be resolved from a platform attachment.
If the user asks to edit but no source image is available, stop and tell them the edit flow needs the original image.
Main-Agent Flow
- Decide whether the request is
text-to-imageorimage-edit. - Spawn a subagent immediately. Do not wait to finish generation before responding.
- Reply once with
您的请求正在处理中,完成后会自动发送结果。 - Avoid trigger-heavy phrases in that reply to reduce self-triggering.
- When the subagent returns
status=okandneed_main_agent_send=true, send the result once and then end withNO_REPLY.
Subagent Flow
text-to-image
- Analyze the user input.
- If the request includes an image or URL, finish extraction before generating anything.
- Build extraction blocks and the final prompt using
reference/prompt-engineering.md. - Build runtime parameters using
reference/runtime-parameters.md. - Execute with
reference/openclaw-execution.md. - Return structured JSON only. Do not send user-visible messages from the subagent.
image-edit
- Resolve the source image into a usable URL, local path, or cached file key.
- Use the user's raw edit instruction as the prompt. Do not run prompt engineering.
- Execute with
reference/openclaw-execution.md. - Return structured JSON only. Do not send user-visible messages from the subagent.
Return Contract
Return this shape to the main agent:
{
"status": "ok|error",
"output_file": "/tmp/openclaw/...",
"message": "<prompt or edit instruction>",
"need_main_agent_send": true,
"error": "<only on failure>"
}
Rules:
output_filemust point to the wrapper-managed output path.need_main_agent_sendistrueonly for successful generation.- Report the real failure reason in
error; do not invent fallback explanations.
OpenClaw-Only Guardrails
- Main agent sends progress and final delivery; subagent never calls
message. - Do not trigger a second
neo-infogrun while one is already in flight in the same conversation. - Do not bypass
scripts/openclaw_runner.pyby hand-building timestamped output paths. - Do not mention deleted ComfyUI workflows,
unet-name, or old workflow JSON files. - Use repo-relative paths in reasoning and docs. Use deployed absolute paths only when the execution reference explicitly asks for an example.
References
reference/prompt-engineering.md: input extraction contract,[CANVAS]rules, final prompt templatereference/runtime-parameters.md:[CANVAS]to--image-sizeand--aspect-ratiomappingreference/openclaw-execution.md: wrapper entrypoint, command templates, output file naming, JSON return expectations
