Agent skill

Openai Image Gen

by trpc-group in trpc-group/trpc-agent-go

Batch-generate images via OpenAI Images API. An agent skill from trpc-group/trpc-agent-go.

Apache-2.0Auto-check passedMedia & Creative

Install Openai Image Gen

skills CLI
$ npx skills add trpc-group/trpc-agent-go --skill openai-image-gen -a claude-code

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

GitHub CLI
$ gh skill install trpc-group/trpc-agent-go openai-image-gen --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/trpc-group/trpc-agent-go.git skills-src && mkdir -p .claude/skills && cp -r skills-src/openclaw/skills/openai-image-gen .claude/skills/openai-image-gen && 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
openai-image-gen
GitHub stars
1.9k
Used in
12 other repos
Token cost
~843 tokens
SKILL.md length
216 words
Files
2 (incl. scripts)
Skills in repo
47
Repo updated
First seen
Licence
Apache-2.0

At a glance

Batch-generate images via OpenAI Images API. An agent skill from trpc-group/trpc-agent-go.

  • Tasks that involve Image generation
  • SKILL.md covers Run, Model-Specific Parameters and Output
  • Runs Python scripts from its folder; calls python3

What it does

Openai Image Gen is an agent skill from trpc-group/trpc-agent-go. Batch-generate images via OpenAI Images API. Random prompt sampler + index.html gallery.

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/gen.py`).

It sits in Media & Creative, covering Image generation. It works with OpenAI. The repository describes itself as: A Go framework for building production agent systems with graph workflows, tools, memory, A2A, AG-UI, MCP, evaluation, and observability. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Image generation

Example prompts

  • “/openai-image-gen”

Requirements

  • Python 3
  • A credential in OPENAI_API_KEY

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

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

  • Network

    No URLs in SKILL.md.

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Openai Image Gen loads about 843 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 216 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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); the scripts in this folder are not scanned.

SKILL.md

The full file from trpc-group/trpc-agent-go at commit 5344490, republished under its Apache-2.0 licence (© trpc-group). 216 words, ~843 tokens.

Download SKILL.mdSave it as .claude/skills/openai-image-gen/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
openai-image-gen
description
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
homepage
https://platform.openai.com/docs/api-reference/images

OpenAI Image Gen

Generate a handful of “random but structured” prompts and render them via the OpenAI Images API.

Run

Note: Image generation can take longer than common host tool timeouts (for example 30 seconds). When invoking this skill via OpenClaw's exec_command, set a higher timeout_sec to avoid premature termination or retries (for example timeout_sec=300).

bash
python3 {baseDir}/scripts/gen.py
open ~/Projects/tmp/openai-image-gen-*/index.html  # if ~/Projects/tmp exists; else ./tmp/...

Useful flags:

bash
# GPT image models with various options
python3 {baseDir}/scripts/gen.py --count 16 --model gpt-image-1
python3 {baseDir}/scripts/gen.py --prompt "ultra-detailed studio photo of a lobster astronaut" --count 4
python3 {baseDir}/scripts/gen.py --size 1536x1024 --quality high --out-dir ./out/images
python3 {baseDir}/scripts/gen.py --model gpt-image-1.5 --background transparent --output-format webp

# DALL-E 3 (note: count is automatically limited to 1)
python3 {baseDir}/scripts/gen.py --model dall-e-3 --quality hd --size 1792x1024 --style vivid
python3 {baseDir}/scripts/gen.py --model dall-e-3 --style natural --prompt "serene mountain landscape"

# DALL-E 2
python3 {baseDir}/scripts/gen.py --model dall-e-2 --size 512x512 --count 4

Model-Specific Parameters

Different models support different parameter values. The script automatically selects appropriate defaults based on the model.

Size
  • GPT image models (gpt-image-1, gpt-image-1-mini, gpt-image-1.5): 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto
    • Default: 1024x1024
  • dall-e-3: 1024x1024, 1792x1024, or 1024x1792
    • Default: 1024x1024
  • dall-e-2: 256x256, 512x512, or 1024x1024
    • Default: 1024x1024
Quality
  • GPT image models: auto, high, medium, or low
    • Default: high
  • dall-e-3: hd or standard
    • Default: standard
  • dall-e-2: standard only
    • Default: standard
Other Notable Differences
  • dall-e-3 only supports generating 1 image at a time (n=1). The script automatically limits count to 1 when using this model.
  • GPT image models support additional parameters:
    • --background: transparent, opaque, or auto (default)
    • --output-format: png (default), jpeg, or webp
    • Note: stream and moderation are available via API but not yet implemented in this script
  • dall-e-3 has a --style parameter: vivid (hyper-real, dramatic) or natural (more natural looking)

Output

  • *.png, *.jpeg, or *.webp images (output format depends on model + --output-format)
  • prompts.json (prompt → file mapping)
  • index.html (thumbnail gallery)

© trpc-group, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in openclaw/skills/openai-image-gen of trpc-group/trpc-agent-go.

  • SKILL.md
  • scripts/gen.py

Open the folder on GitHubat commit 5344490

Used in 12 other repositories

We found 14 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 12 other GitHub owners. This page covers the copy in trpc-group/trpc-agent-go, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Openai Image Gen 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.

Openai Image Gen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openai Image Gen this skilltrpc-group/trpc-agent-go1.9k12 repos~843Automated safety check: PassApache-2.0
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT
Imagegentheowenyoung/home1154 repos~4.8kAutomated safety check: PassApache-2.0
Image Generationonyx-dot-app/onyx32k1 repos~1.7kAutomated safety check: PassCustom licence
BlockRun Image GenerationBlockRunAI/ClawRouter6.6k—~2.1kAutomated safety check: PassMIT

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • GPT Image Generation CLI

    wuyoscar/GPT-Image2-Skill

    Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.

    5.7k GitHub stars~2.5k tokensUpdated 10 days ago
    Media & CreativeAuto-check: notes
  • Imagegen

    theowenyoung/home

    Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts.

    115 GitHub starsUsed in 4 repos~4.8k tokens
    Media & CreativeAuto-check passed
  • Image Generation

    onyx-dot-app/onyx

    Generate or edit raster images (photos, illustrations, textures, sprites, mockups, logos, infographics) using the workspace's configured image-generation provider via onyx-cli image.

    32k GitHub starsUsed in 1 repo~1.7k tokens
    Media & CreativeAuto-check passed
  • BlockRun Image Generation

    BlockRunAI/ClawRouter

    Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.

    6.6k GitHub stars~2.1k tokensUpdated 5 days ago
    Media & CreativeAuto-check passed
  • Image to Prompt Reverse Engineering

    wuyoscar/GPT-Image2-Skill

    Analyzes a reference image and writes a prompt that could recreate it in an AI image generator, focusing on the visual traits that most affect similarity.

    5.7k GitHub stars~1.8k tokensUpdated 10 days ago
    Media & CreativeAuto-check passed

More from trpc-group/trpc-agent-go

All 47 skills in this repo
  • Model Usage

    trpc-group/trpc-agent-go

    Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown.

    1.9k GitHub starsUsed in 16 repos~563 tokens
    Auto-check passed
  • 1password

    trpc-group/trpc-agent-go

    Set up and use 1Password CLI (op). An agent skill from trpc-group/trpc-agent-go.

    1.9k GitHub starsUsed in 14 repos~656 tokens
    Auto-check passed
  • Tmux

    trpc-group/trpc-agent-go

    Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

    1.9k GitHub starsUsed in 23 repos~868 tokens
    Auto-check passed
  • GitHub

    trpc-group/trpc-agent-go

    GitHub operations via gh CLI: issues, PRs, CI runs, code review, API queries.

    1.9k GitHub starsUsed in 9 repos~1k tokens
    Auto-check passed
  • Weather

    trpc-group/trpc-agent-go

    Get current weather and forecasts via wttr.in or Open-Meteo.

    1.9k GitHub starsUsed in 8 repos~591 tokens
    Auto-check passed
  • Bluebubbles

    trpc-group/trpc-agent-go

    A skill your agent uses when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration).

    1.9k GitHub starsUsed in 5 repos~768 tokens
    Auto-check passed

Works with

Questions about Openai Image Gen

What does Openai Image Gen do?

Batch-generate images via OpenAI Images API. An agent skill from trpc-group/trpc-agent-go. Openai Image Gen is an agent skill from trpc-group/trpc-agent-go. Batch-generate images via OpenAI Images API.

When should I use Openai Image Gen?

Openai Image Gen fits situations like: tasks that involve Image generation.

How do I install Openai Image Gen in Claude Code?

Run `npx skills add trpc-group/trpc-agent-go --skill openai-image-gen -a claude-code`. Or copy the skill folder (openclaw/skills/openai-image-gen in trpc-group/trpc-agent-go) into .claude/skills/openai-image-gen in your project. Claude Code loads it when a task matches its description.

How do I install Openai Image Gen in Codex?

Run `npx skills add trpc-group/trpc-agent-go --skill openai-image-gen -a codex`. Or copy the skill folder (openclaw/skills/openai-image-gen in trpc-group/trpc-agent-go) into .agents/skills/openai-image-gen in your project. Codex loads it when a task matches its description.

Can I use Openai Image Gen 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 trpc-group/trpc-agent-go --skill openai-image-gen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openai-image-gen, .gemini/skills/openai-image-gen, .github/skills/openai-image-gen and .opencode/skills/openai-image-gen in your project.

What does Openai Image Gen need to run?

Going by SKILL.md and its folder, Openai Image Gen needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3; A credential in OPENAI_API_KEY.

Does Openai Image Gen access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Openai Image Gen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Openai Image Gen use?

Openai Image Gen is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Openai Image Gen use?

About 843 tokens (SKILL.md is roughly 3.4k 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 Openai Image Gen?

Skills that share tags, products or a category with Openai Image Gen: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars), Imagegen (theowenyoung/home, 115 stars) and Image Generation (onyx-dot-app/onyx, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Openai Image Gen?

trpc-group (a GitHub organization) maintains it in trpc-group/trpc-agent-go, which has 1,857 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on October 10, 2026.

Source: trpc-group/trpc-agent-go on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.