agentleFS
getedgehqgetedgehq/skills/generate-image/SKILL.md

generate-image

Skill3 starsChanged 56 days agoApache-2.0View on GitHub

Generate images with OpenAI GPT Image 2 via the Codex CLI, billed through the user's ChatGPT Plus subscription (no OpenAI API key, no per-image API cost). Use when the user asks to create, generate, or make an image, picture, illustration, icon, hero graphic, or concept art from a text prompt.

  • Installs packages

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use edit-image, generate-video and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SamurAIGPTSkill

    edit-image

    Edits an existing image using natural language instructions via MuAPI. Use when the user wants to modify, change, transform, or retouch an existing image.

    Also in 3 projects that use this

  • aslanzubairaevSkill

    generate-video

    Generate background videos using Veo 3 (Google Gemini) or Seedance 2 (PiAPI). Use when creating or regenerating video backgrounds for Reels slides.

    Also in 3 projects that use this

  • ZanderRussSkill

    scientific-slides

    Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.

    Also in 3 projects that use this

  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 4 projects that use this

  • AnthropicSkill

    xlsx

    Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

    Also in 3 projects that use this

  • +1 more from anthropics

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the script with the prompt.

    line 39
  2. Very specific:

    When --out is not given, the script resolves the folder automatically:

    line 45
  3. Very specific:

    If an image is a stakeholder deliverable, pass an explicit --name following the file-naming rule, e.g.

    line 68

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Generate Image

Creates images via OpenAI GPT Image 2. Auth runs through the Codex CLI logged in with a ChatGPT account, so generation is covered by the user's Plus subscription. There is no OpenAI API key and no separate per-image API billing.

Before you start

This Skill does not talk to OpenAI directly. It shells out to the Codex CLI, and that CLI has to already be installed on this machine and already signed in to a ChatGPT account with an active Plus subscription. Check with codex --version and run codex login if it is not signed in. There is no API key to paste, and no separate per-image charge; the images are billed to that subscription.

Without a signed-in Codex CLI nothing here works, and the script fails at the first call rather than producing a file.

Quick start

# from this Skill's own directory, wherever your agent installed it
./scripts/generate-image.sh "a shiba inu wearing sunglasses, studio photo"

Saves to the resolved output folder (see below) as a slugified PNG, e.g. assets/images/a-shiba-inu-wearing-sunglasses-studio-photo.png.

Workflow

  1. Turn the user's request into a strong English prompt. Follow the build order and levers in PROMPTING.md (scene → subject → details → invariants → use). Refine vague requests before calling; do not pass a bare one-liner when the asset matters.
  2. Run the script with the prompt. Optionally pass --out and --name.
  3. Report the saved path back to the user. For changes, iterate in small single-variable steps and restate the invariants (see PROMPTING.md).

Output location

When --out is not given, the script resolves the folder automatically:

ConditionTarget folder
./public/ exists (web/app initiative)./public/images/
otherwise./assets/images/ (created if missing)

This establishes a consistent assets/images/ convention across projects while respecting web projects, where images must live under public/ to be served.

Options

FlagEffect
--out <dir>Write into this directory instead of the resolved default
--out <file>.pngWrite to this exact file path
--name <basename>Use this basename instead of slugifying the prompt

Existing files are never overwritten: the script appends -2, -3, ... instead.

Deliverable naming

These outputs are work assets, so they get short functional names by default. If an image is a stakeholder deliverable, pass an explicit --name following the file-naming rule, e.g. --name "20260612_Hero Banner_v1".

Requirements

  • codex CLI installed (brew install --cask codex)
  • Logged in with a ChatGPT account: codex login (Plus or higher; image generation is not available on Free)

The script checks both and fails with a clear message if either is missing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.