A provider-neutral skill for generating images and delivering them as verified files.
It does not own model access. Whatever image-capable model your harness can already dispatch is the model it uses. The skill adds the parts that are easy to get wrong: prompt craft, candidate discipline, artifact verification, provenance and release QA.
- Python 3.10+
- Pillow
python3 -m pip install -r requirements.txtNo endpoint or credential configuration. scripts/*.py never make a network request and never read a credential.
- Ask your harness's image-capable model to produce the image.
- Save the payload as a verified artifact:
python3 scripts/save_image.py \
--input response.json \
--output out/hero.png \
--prompt "a blue circle on white" \
--model "<model id>"--input accepts an images API response (data[0].b64_json), a payload with b64_json / image_base64 / b64, or a raw image file. The tool writes the image plus <image>.json provenance and refuses to overwrite unless --overwrite is passed.
| Tool | Purpose |
|---|---|
scripts/save_image.py |
Verify a payload; write image + provenance |
scripts/inspect_image.py |
Format, dimensions, mode, size, SHA-256 |
scripts/make_variants.py |
Deterministic crops; keeps alpha; refuses overwrite |
python3 -m unittest discover -s tests -vTests are local and require no credential and no network.