Awesome-omni-skill wiro-image-fill
Generate missing or placeholder images in a project by calling the Wiro image generation API, saving assets under public/assets generated folders, and producing a JSON mapping. Use when you see empty img src, placeholder.png, or other image gaps that need real assets.
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/content-media/wiro-image-fill" ~/.claude/skills/diegosouzapw-awesome-omni-skill-wiro-image-fill && rm -rf "$T"
skills/content-media/wiro-image-fill/SKILL.mdWiro Image Fill
Overview
Generate real images via Wiro and write a mapping from placeholder keys to generated asset paths for later replacement.
How-to (quick start)
- Get API credentials from Wiro dashboard for the target project.
- Provide credentials using one of the options below.
- Run the generator script with a prompt.
- Use the mapping output to update image references.
Option A: export environment variables in the shell session.
export WIRO_API_KEY="your_project_api_key" export WIRO_API_SECRET="your_project_api_secret"
Option B: create a
.env file in the project root (user creates this file).
WIRO_API_KEY=your_project_api_key WIRO_API_SECRET=your_project_api_secret
If
.env does not exist, the script creates it with placeholder WIRO_API_KEY and WIRO_API_SECRET lines.
The script reads .env by default if it exists. Use --env-file path/to/.env to point to a different file.
Workflow
- Locate missing images.
- Draft a prompt from nearby UI context.
- Run the generator script.
- Use the mapping to update image references.
1) Locate missing images
Use ripgrep to find placeholders:
rg -n "src=\"\"|src=''|placeholder\.png" <project-root>
Capture the placeholder key you will map (the literal placeholder string or path).
2) Draft a prompt
Use nearby UI copy, alt text, component names, and page intent. Keep the prompt short and specific to the UI need.
3) Run the generator script
Set credentials:
export WIRO_API_KEY="..." export WIRO_API_SECRET="..."
Run per placeholder:
python3 scripts/wiro_generate_image.py \ --model "google/nano-banana-pro" \ --prompt "Modern dashboard hero showing analytics cards on a clean desk." \ --map-key "placeholder.png"
Notes:
- Default output dir:
ifpublic/generated
exists, elsepublic/
, elseassets/generated
.generated/ - Mapping file default:
.<output-dir>/image-map.json - Use
or--output-dir
to override.--mapping-file
can be repeated or comma-separated.--input-image
(default) sends multipart form fields; use--body-mode multipart
if needed.--body-mode json- IPv4 is preferred by default to avoid IPv6 delays. Use
to disable IPv4 forcing.--ip-mode auto - Timeouts:
(default 5s),--connect-timeout
(default 30s),--read-timeout
(default 180s).--task-timeout
prints run/poll progress to stderr; helpful for diagnosing stalls.--verbose- Network retries use
(default 2) and--request-retries
(default 1s backoff).--retry-wait
4) Apply the mapping
Use the JSON mapping file to replace placeholders in code or templates. The script only writes the mapping entry when
--map-key is provided.
References
Read
references/wiro_api.md for endpoint and status details.
Scripts
: Run Wiro generation, poll task status, download output, and update mapping.scripts/wiro_generate_image.py