Loading...
Loading...
Use this skill whenever a user asks to generate, create, draw, render, or edit images with GPT Image 2 / gpt-image-2, text-to-image, reference-image editing, inpainting, posters, typography, Chinese text, UI mockups, diagrams, or gallery prompts. Analyze the user's prompt, search the bundled Reference Gallery/craft files for matching design patterns, confer on direction when useful, then call the packaged `gpt-image` CLI or bundled `scripts/generate.py`. Do not write new image-generation code unless explicitly asked to modify this repo.
npx skill4agent add wuyoscar/gpt_image_2_skill gpt-imagegenerateeditinpaintmulti-referencereferences/gallery.mdreferences/gallery-<category>.md**Prompt**references/craft.mdcommand -v gpt-image.envgpt-imagescripts/generate.pygenerate.py# Existing CLI on PATH
gpt-image -p "PROMPT" [-f OUT] [-i REF...] [-m MASK] [options]
# Installed skill folder; use runtime-provided skill path when available
uv run "$SKILL_DIR/scripts/generate.py" -p "PROMPT" [-f OUT] [-i REF...] [-m MASK] [options]
# Direct transient CLI when the user requested setup/one-off CLI execution
uvx --from git+https://github.com/wuyoscar/gpt_image_2_skill gpt-image -p "PROMPT" [options]scripts/generate.pysrc/gpt_image_cligpt-imagegpt-imageuvxuvOPENAI_API_KEY.env~/.envOPENAI_API_KEYunset OPENAI_API_KEY.env~/.env| Flag | Values | Use |
|---|---|---|
| string | Required prompt/edit instruction |
| path | Output path; auto-named if omitted |
| repeatable path | Use edits endpoint; supports multiple references |
| PNG path | Inpaint with alpha mask; requires |
| default | Image model |
| | Canvas size |
| | Cost/quality dial |
| integer | Number of images |
| | Generation background |
| | Generation moderation setting |
| | Output encoding |
| | JPEG/WebP compression |
| string | Optional end-user identifier |
lowmediumhigh1k1024x1024portraitlandscape2k4ktall| Mode | Trigger | Endpoint |
|---|---|---|
| Text-to-image | no | |
| Reference edit | one or more | |
| Inpaint | | |
012references/gallery.mdreferences/gallery-*.mdreferences/craft.mdreferences/openai-cookbook.md-i-mCuratedAuthor + Source