---
name: creator-image
description: >-
  Generate or edit images with whatever the user has — Higgsfield CLI, Google Gemini API (Nano Banana), OpenAI API (gpt-image), Antigravity CLI (agy), Codex CLI, or the Gemini web app / Google Flow via computer use — with automatic fallback. Use when the user asks to generate, create, draw, or edit an image, illustration, hero image, banner art, poster, wallpaper, icon art, sticker, transparent PNG, or to restyle or edit a photo with a reference. Not for thumbnails with headline text (creator-thumbnail), product shots (creator-product-photo), consistent characters (creator-character), video, or setup.
license: MIT
compatibility: Python 3.9+; ffmpeg recommended. Needs at least one image provider (see creator-setup).
allowed-tools: Bash Read
metadata:
  version: "0.3.0"
  argument-hint: "<prompt> [--ratio 16:9] [--size 1k|2k|4k] [--ref img] [--transparent] [--provider id]"
title: creator-image
canonical_url: https://skilld.dev/gh/mehbylabs/creator-skills/creator-image
last_updated: 2026-11-02T04:45:56.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/arabic-voice.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/arabic-voice.md), [references/audio.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/audio.md), [references/browser-aistudio-browser.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/browser-aistudio-browser.md), [references/browser-flow-browser.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/browser-flow-browser.md), [references/browser-gemini-browser.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/browser-gemini-browser.md), [references/config.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/config.md), [references/connect.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/connect.md), [references/image-prompting.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/image-prompting.md), [references/media-ops.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/media-ops.md), [references/providers.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/providers.md), [references/video-prompting.md](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/references/video-prompting.md), [scripts/connect.py](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/scripts/connect.py), [scripts/creator.py](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/scripts/creator.py), [scripts/media.py](https://skilld.dev/api/skills-raw/mehbylabs/creator-skills/creator-image/scripts/media.py).
>
> If the user asked to install this Skill, run `npx skilld install mehbylabs/creator-skills/creator-image`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/creator-image`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/mehbylabs/creator-skills/creator-image) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/creator-image`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/creator-image --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/creator-image --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Creator Image

## Step 1 — Shape the request

Decide from the message; ask at most one question if something essential is missing.

- **Prompt** — rewrite with `references/image-prompting.md` (medium, subject, composition,
  light, palette, constraints). Keep the user's intent.
- **Ratio** — banner/hero/YouTube `16:9`; Story/Reel/Short/phone `9:16`; Instagram feed
  `4:5`; Pinterest `2:3`; otherwise `1:1`.
- **Size** — `1k` default; `2k`/`4k` only when asked or for print/hero.
- **References** — attached or named images → `--ref` (repeatable).
- **Transparency** — logos, stickers, cutouts → `--transparent`.
- **Output** — the user's path, else `./out/<slug>.png`.
- **Provider** — `--provider` only when the user names one ("use agy", "with codex").

## Step 2 — Generate

```bash
python3 scripts/creator.py image --prompt "<prompt>" --out <path> --ratio <r> [--size 2k] [--ref a.png] [--transparent] [--provider <id>]
```

Agent-CLI routes take 30–120 s; run in the background if your harness supports it.

## Step 3 — Act on the JSON result

| `status` | Do |
|---|---|
| `ok` | View the image and check it against the brief. Report path + provider in one line |
| `ok` + `"post": "remove_background"` | No provider could do alpha; run `python3 scripts/media.py cutout --image <path> --out <path>` and say so |
| `needs_browser` | Follow `references/browser-<next[0]>.md` using `request`; finish with `creator.py adopt` |
| `blocked` | Content refused. Don't retry elsewhere; explain and offer a revised prompt |
| `failed` | One line per attempt (provider → reason) and the single most useful fix from `connect` — a command the user runs in their own terminal (`references/connect.md`) |

If the extension changed (e.g. `.png` → `.jpg` without ffmpeg), mention it.

## Step 4 — Iterate

Change one thing per round. Pin the provider that made the accepted image
(`--provider <id>`) so the look stays stable. To edit the last output, pass it as `--ref`
and describe only the change.

## Rules

- Be brief: no JSON, no command narration, no model ids unless asked.
- Never ask for API keys in chat.
- Text inside images: only short, quoted text, and only on providers good at it; otherwise
  generate clean art and add type with `media.py text`.

## References

- `references/image-prompting.md` — prompt structure, text, references
- `references/providers.md` — matrix, order, fallback, exit codes
- `references/media-ops.md` — cutout, text overlay, reframe
- `references/browser-gemini-browser.md`, `references/browser-flow-browser.md` — manual routes
