openai-image-generation
OpenAI Image Generation
Use this skill to generate new images or edit existing images with OpenAI APIs using bundled shell tooling.
Commands
Run scripts by absolute path. Do not cd into the skill directory.
Generate a new image:
sh ~/.agents/skills/openai-image-generation/scripts/generate_image.sh \
--prompt "A poster of a red panda astronaut" \
--filename "2026-02-20-red-panda-astronaut.png" \
--quality high \
--size 1536x1024
Edit an existing image:
sh ~/.agents/skills/openai-image-generation/scripts/generate_image.sh \
--prompt "Make this look like a watercolor painting" \
--filename "2026-02-20-watercolor.png" \
--input-image "./source.png"
Edit with mask (inpainting):
sh ~/.agents/skills/openai-image-generation/scripts/generate_image.sh \
--prompt "Replace masked area with a neon sign" \
--filename "2026-02-20-neon-edit.png" \
--input-image "./source.png" \
--mask "./mask.png"
Equivalent Bun wrapper:
bun ~/.agents/skills/openai-image-generation/scripts/generate_image.ts --prompt "..." --filename "..."
Always run from the user's working directory so relative output paths save where the user is working.
Options
Required:
--prompt/-p: generation or editing prompt.--filename/-f: output image path.
Editing:
--input-image/-i: source image file to edit.--mask/-m: optional PNG mask for inpainting.
Generation controls:
--quality/-q:low|medium|high(defaultmedium).--size/-s:1024x1024|1024x1536|1536x1024|auto(default1024x1024).--background/-b:transparent|opaque|auto(defaultauto, generation only).
Common:
--model: defaults togpt-image-1.--api-key/-k: overridesOPENAI_API_KEY.
API Key Resolution
Script checks:
--api-keyOPENAI_API_KEY
If neither is set, fail fast with an actionable error.
Output and Filenames
Default filename pattern:
yyyy-mm-dd-hh-mm-ss-short-description.png
Examples:
2026-02-20-16-11-03-japanese-garden.png2026-02-20-16-13-20-logo-mascot.png
Script prints the final saved path. Do not read the image file back unless user explicitly asks.
Script
scripts/generate_image.sh: main implementation.scripts/generate_image.ts: Bun wrapper that forwards args to the shell script.
More from anand-testcompare/scripts-prompts-config
readme-maintainer
Create or update repository README.md files with concise, human-skimmable structure and verified metadata. Use when writing or refreshing README content, adding or correcting badges, documenting stack and deployment/services, and explicitly reporting testing coverage (unit, integration, e2e api, e2e web) plus CI execution status.
13convex-delete-deployments
Bulk deletion workflow for Convex deployments with safe defaults and explicit confirmation. Use when Convex preview environments accumulate, deployment quota is exhausted, or you need to clean up many deployments quickly by type/name filter without deleting prod/dev accidentally.
10acpx
Use acpx for persistent ACP coding-agent sessions. Prefer sessions ensure + prompt -f + polling. Avoid exec unless a true one-shot is explicitly requested.
4workos-agent-access
Provision and authenticate lower-env WorkOS/AuthKit users for this repo. Use when the agent needs its own reusable dev or preview login, must configure WorkOS redirect/CORS/homepage settings, create or update a password user, attach org memberships, or establish browser auth via agent-browser or a direct sealed session cookie.
2