Agent skill

Generate Image

by OpenClaudia in OpenClaudia/openclaudia-skills

Generate images using AI (OpenAI GPT Image or Stability AI).

MITAuto-check: notesMedia & Creative

Install Generate Image

skills CLI
$ npx skills add OpenClaudia/openclaudia-skills --skill generate-image -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenClaudia/openclaudia-skills generate-image --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenClaudia/openclaudia-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ai-image-gen .claude/skills/generate-image && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generate-image
GitHub stars
713
Token cost
~1.1k tokens
SKILL.md length
341 words
Files
1
Skills in repo
74
Repo updated
First seen
Licence
MIT

At a glance

Generate images using AI (OpenAI GPT Image or Stability AI).

  • The user asks to generate an image
  • SKILL.md covers Tool Location, Available OpenAI image models…, Quick Usage and CLI Options, plus 3 more sections
  • Calls python and pip; needs OPENAI_API_KEY and STABILITY_API_KEY
  • Create an AI image

What it does

Generate Image is an agent skill from OpenClaudia/openclaudia-skills. Generate images using AI (OpenAI GPT Image or Stability AI). Use when the user asks to generate an image, create an AI image, make an illustration, or produce artwork from a text prompt.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Image generation. It works with OpenAI and Stable Diffusion. The repository describes itself as: 77 open-source marketing skills for Claude Code, Codex, and other AI coding agents. SEO, content, email, ads, analytics, and growth. The licence is MIT.

When your agent uses it

  • The user asks to generate an image
  • Create an AI image
  • Make an illustration
  • Produce artwork from a text prompt

Example prompts

  • “/generate-image”

Requirements

  • Python 3
  • A credential in OPENAI_API_KEY
  • A credential in STABILITY_API_KEY
  • Pre-approved tools (allowed-tools): Bash(*), Read, Write

What it can do on your machine

Read from SKILL.md and the folder at commit 28bf209. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(*)
    • Read
    • Write

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY
    • STABILITY_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Generate Image loads about 1.1k tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 341 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:15
    - Env file: `~/.agents/tools/.env` (contains `OPENAI_API_KEY` and `STABILITY_API_KEY`)
  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash(*), Read, Write

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from OpenClaudia/openclaudia-skills at commit 28bf209, republished under its MIT licence (© OpenClaudia). 341 words, ~1,138 tokens.

Download SKILL.mdSave it as .claude/skills/generate-image/SKILL.md (or your agent's skills folder).
name
generate-image
description
Generate images using AI (OpenAI GPT Image or Stability AI). Use when the user asks to generate an image, create an AI image, make an illustration, or produce artwork from a text prompt.
allowed-tools
Bash(*), Read, Write
argument-hint
prompt description

AI Image Generation

Generate images from text prompts using OpenAI GPT Image (gpt-image-2 / gpt-image-1 / variants) or Stability AI (SD 3.5 Large).

Tool Location

  • Script: ~/.agents/tools/generate-image.py
  • Env file: ~/.agents/tools/.env (contains OPENAI_API_KEY and STABILITY_API_KEY)

Available OpenAI image models (verified live via /v1/models 2026-05-15)

Model IDNotes
gpt-image-2Flagship. Released 2026-04-21. Best prompt adherence, best photorealism. Default when image quality matters.
gpt-image-2-2026-04-21Pinned dated variant of gpt-image-2
gpt-image-1.5Intermediate release between 1 and 2
gpt-image-1-miniSmaller/cheaper gpt-image-1 variant — use for batch/draft generation where cost matters
gpt-image-1Original gpt-image. Still works; superseded by gpt-image-2.
chatgpt-image-latestAlways-current alias of the model ChatGPT.com uses (currently gpt-image-2-class). Use when you want "whatever ChatGPT uses today"
dall-e-3Legacy fallback. Different quality semantics (standard/hd, not low/medium/high).

Pass any of these to --model. The script branches on gpt-image* for the quality/format handling, so all gpt-image-* variants work out of the box.

Default in the script is now gpt-image-2 (the flagship) — pass --model gpt-image-1-mini for cheap batch/draft work.

Quick Usage

Generate with OpenAI gpt-image-2 (flagship)
bash
python ~/.agents/tools/generate-image.py \
  --prompt "a sunset over mountains, oil painting style" \
  --output ./sunset.png \
  --model gpt-image-2 \
  --quality high
Generate with default (gpt-image-2)
bash
python ~/.agents/tools/generate-image.py \
  --prompt "a sunset over mountains, oil painting style" \
  --output ./sunset.png
High quality
bash
python ~/.agents/tools/generate-image.py \
  --prompt "modern logo design for a tech company" \
  --output ./logo.png \
  --size 1024x1024 \
  --quality high
Wide format (good for blog covers, banners)
bash
python ~/.agents/tools/generate-image.py \
  --prompt "abstract digital art with blue tones" \
  --output ./banner.png \
  --size 1536x1024
Tall format (good for mobile, stories)
bash
python ~/.agents/tools/generate-image.py \
  --prompt "portrait of a futuristic city" \
  --output ./city.png \
  --size 1024x1536
Transparent background (icons, logos)
bash
python ~/.agents/tools/generate-image.py \
  --prompt "a minimalist cat icon, flat design" \
  --output ./icon.png \
  --background transparent
Generate with Stability AI (SD 3.5 Large)
bash
python ~/.agents/tools/generate-image.py \
  --prompt "watercolor painting of a garden" \
  --output ./garden.png \
  --provider stability

CLI Options

OptionDescription
--prompt, -p(Required) Text prompt describing the desired image
--output, -o(Required) Output file path
--provideropenai (default) or stability
--sizeImage size for OpenAI: 1024x1024 (default), 1536x1024 (wide), 1024x1536 (tall)
--qualityOpenAI quality: low, medium (default), or high
--backgroundOpenAI background: auto (default), transparent, or opaque
--modelOverride model (default: gpt-image-2 for OpenAI, sd3.5-large for Stability)

Provider Comparison

FeatureOpenAI gpt-image-2OpenAI gpt-image-1Stability AI SD 3.5
Released2026-04-212025—
Prompt adherenceBestExcellentGood
Size options1024x1024, 1536x1024, 1024x15361024x1024, 1536x1024, 1024x15361024x1024
Quality optionslow, medium, highlow, medium, highN/A
Transparent bgYesYesNo
StylePhotorealistic + artisticPhotorealistic + artisticArtistic + photorealistic
Cost per image (high)Higher than 1BaselineN/A

Dependencies

  • requests (for API calls)

Install if needed:

bash
pip install requests

Output

The script prints:

  • The provider and model used
  • The prompt (and revised prompt if applicable)
  • The saved file path

© OpenClaudia, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/ai-image-gen of OpenClaudia/openclaudia-skills.

Open the folder on GitHubat commit 28bf209

Compare with similar skills

Generate Image next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generate Image compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Image this skillOpenClaudia/openclaudia-skills713—~1.1kAutomated safety check: NotesMIT
Nano Banana Pro Prompts Recommend SkillYouMind-OpenLab/nano-banana-pro-prompts-recommend-skill1.9k1 repos~4.1kAutomated safety check: PassNone
ImageNexus-JPF/note-companion8703 repos~3.9kAutomated safety check: PassMIT
Keirouter Imagemydisha/keirouter147—~691Automated safety check: PassMIT
Glmv Prompt Genzai-org/GLM-skills476—~1.8kAutomated safety check: PassApache-2.0
AI Image Generationaiskillstore/marketplace4302 repos~1.1kAutomated safety check: PassNone

Similar skills

  • Nano Banana Pro Prompts Recommend Skill

    YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill

    Recommend suitable prompts from 10,000+ Nano Banana Pro image generation prompts based on user needs.

    1.9k GitHub starsUsed in 1 repo~4.1k tokens
    Media & CreativeAuto-check passed
  • Image

    Nexus-JPF/note-companion

    When the user wants to create, generate, edit, or optimize images for marketing — blog heroes, social graphics, product mockups, profile banners, listing visuals, or brand assets.

    870 GitHub starsUsed in 3 repos~3.9k tokens
    Media & CreativeAuto-check passed
  • Keirouter Image

    mydisha/keirouter

    Generate images via KeiRouter /v1/images/generations using OpenAI DALL-E / Gemini Imagen / FLUX / MiniMax / Stability AI / Fal.ai models.

    147 GitHub stars~691 tokensUpdated 28 days ago
    Media & CreativeAuto-check passed
  • Glmv Prompt Gen

    zai-org/GLM-skills

    Analyze images/videos and generate professional prompts for text-to-image and text-to-video AI tools (Midjourney, Stable Diffusion, DALL-E, Sora, Runway, Kling, Pika).

    476 GitHub stars~1.8k tokensUpdated 5 mo ago
    Media & CreativeAuto-check passed
  • AI Image Generation

    aiskillstore/marketplace

    Generate AI images with FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI.

    430 GitHub starsUsed in 2 repos~1.1k tokens
    Media & CreativeAuto-check passed
  • AI Image Prompts Skill

    LeoYeAI/openclaw-master-skills

    Recommend curated prompts from a 10,000+ real-world image generation prompt library.

    2.2k GitHub stars~4.3k tokensUpdated 2 mo ago
    Media & CreativeAuto-check passed

More from OpenClaudia/openclaudia-skills

All 74 skills in this repo
  • Competitor Traffic Report

    OpenClaudia/openclaudia-skills

    Build an interactive competitive-traffic report for any company and its rivals — monthly visits (SimilarWeb), organic search traffic and Domain Rating (Ahrefs) — as one self-contained HTML page with…

    713 GitHub stars~1.2k tokensUpdated 21 days ago
    Auto-check passed
  • Geo Difficulty

    OpenClaudia/openclaudia-skills

    Score how hard a keyword is to rank for in the AI-search era — page-level URL Rating of real competitors (not just domain DR), Ahrefs keyword difficulty, and whether a given site already ranks or is…

    713 GitHub stars~694 tokensUpdated 21 days ago
    Auto-check passed
  • Gsc Portfolio Audit

    OpenClaudia/openclaudia-skills

    Audit EVERY Google Search Console property at once — rank all sites by clicks and impressions with period-over-period deltas, then diff keywords per site to surface what is newly ranking, rising…

    713 GitHub stars~1k tokensUpdated 21 days ago
    Auto-check passed
  • Similarweb Traffic

    OpenClaudia/openclaudia-skills

    Fetch website traffic estimates (monthly visits, traffic sources, top countries, keywords, engagement, ranks) for any domain from SimilarWeb.

    713 GitHub stars~882 tokensUpdated 21 days ago
    Auto-check passed
  • Ahrefs Python

    OpenClaudia/openclaudia-skills

    Manages Ahrefs API usage in Python using ahrefs-python library.

    713 GitHub stars~1.9k tokensUpdated 21 days ago
    Auto-check passed
  • Ab Test Setup

    OpenClaudia/openclaudia-skills

    Design, plan, and analyze A/B tests with statistical rigor. An agent skill from OpenClaudia/openclaudia-skills.

    713 GitHub stars~1.7k tokensUpdated 21 days ago
    Auto-check passed

Questions about Generate Image

What does Generate Image do?

Generate images using AI (OpenAI GPT Image or Stability AI). Generate Image is an agent skill from OpenClaudia/openclaudia-skills. Generate images using AI (OpenAI GPT Image or Stability AI).

When should I use Generate Image?

Generate Image fits situations like: the user asks to generate an image; create an AI image; make an illustration; produce artwork from a text prompt.

How do I install Generate Image in Claude Code?

Run `npx skills add OpenClaudia/openclaudia-skills --skill generate-image -a claude-code`. Or copy the skill folder (skills/ai-image-gen in OpenClaudia/openclaudia-skills) into .claude/skills/generate-image in your project. Claude Code loads it when a task matches its description.

How do I install Generate Image in Codex?

Run `npx skills add OpenClaudia/openclaudia-skills --skill generate-image -a codex`. Or copy the skill folder (skills/ai-image-gen in OpenClaudia/openclaudia-skills) into .agents/skills/generate-image in your project. Codex loads it when a task matches its description.

Can I use Generate Image in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenClaudia/openclaudia-skills --skill generate-image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-image, .gemini/skills/generate-image, .github/skills/generate-image and .opencode/skills/generate-image in your project.

What does Generate Image need to run?

Going by SKILL.md and its folder, Generate Image needs the command-line tools its instructions call (python and pip) and credentials named OPENAI_API_KEY and STABILITY_API_KEY. Our summary lists: Python 3; A credential in OPENAI_API_KEY; A credential in STABILITY_API_KEY. Its frontmatter pre-approves these tools: Bash(*), Read, Write.

Does Generate Image access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Generate Image safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file; pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Generate Image use?

Generate Image is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Image use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Generate Image?

Skills that share tags, products or a category with Generate Image: Nano Banana Pro Prompts Recommend Skill (YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill, 1.9k stars), Image (Nexus-JPF/note-companion, 870 stars), Keirouter Image (mydisha/keirouter, 147 stars) and Glmv Prompt Gen (zai-org/GLM-skills, 476 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Image?

OpenClaudia (a GitHub organization) maintains it in OpenClaudia/openclaudia-skills, which has 713 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on September 18, 2026.

Source: OpenClaudia/openclaudia-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.