imagegen-fix
Installation
SKILL.md
Imagegen Fix
Generate only when the user explicitly asks this skill to make a new image. Otherwise recover the existing image result instead of generating a duplicate. Treat a non-empty Base64 result that decodes to a valid image as success; do not treat status: generating alone as failure.
Modes
- Generate then recover: When the user's current request is a new image prompt and they invoked this skill to produce it, first use the
imagegenskill in its default built-in tool mode. After the built-inimage_gencall returns, immediately run this skill's recovery script to decode the selected inline Base64 result intooutputs/, validate it, and embed the saved file with an absolute Markdown image path. - Recover existing result: When the user asks where a generated image is, says the image did not show, asks for the raw result, or refers to a prior generation, do not generate again. Recover the matching existing
image_generation_callresult from the session log.