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 imagegen skill in its default built-in tool mode. After the built-in image_gen call returns, immediately run this skill's recovery script to decode the selected inline Base64 result into outputs/, 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_call result from the session log.

Workflow

Installs
6
GitHub Stars
1
First Seen
Jul 16, 2026
imagegen-fix — keithhegit/imagegen-fix