image-gen
Skill2 starsChanged 11 months agoMITView on GitHub
Generate and edit images using AI models (Gemini, OpenAI, BFL FLUX, or Poe). Use this skill when you need to create images from text prompts, edit existing images, or generate variations. Supports multiple providers with automatic API key detection from environment variables.
- Reads credentials
26 other projects use a version of this.
Adopted by
Most recently taken up by
- t0ddharris/compound-marketingtheir own version, first seen Oct 5, 2026
- Sma1lboy/rovetheir own version, first seen Oct 4, 2026
- tymoshenko-dmytro/marketing-agent-kittheir own version, first seen Oct 1, 2026
- notque/vexjoy-agenttheir own version, first seen Sep 26, 2026
- suitedaces/dorabottheir own version, first seen Sep 22, 2026
- ksprashu/agent-skill-forgetheir own version, first seen Sep 10, 2026
Used with
Projects with it also use video-gen, paid-ads and 2 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.
buildoakSkillvideo-gen
Video generation via fal.ai -- from quick one-off clips to multi-scene productions with keyframes, state tracking, and assembly. 10+ models including Kling 3.0, Veo 3.1, Sora 2, LTX-2.3. Two modes: light (fire-and-forget) and project (structured pipeline with gates).
Also in 3 projects that use this
silvainfmSkillpaid-ads
When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.
Also in 3 projects that use this
seedprodSkillsummarize
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
Also in 3 projects that use this
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 4 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- peterkrueck/Claude-Code-Development-Kit★ 1.4ksame name
- notque/vexjoy-agent★ 424same name
- suitedaces/dorabot★ 245same name
- wpsnote/wpsnote-skills★ 179same name
- Sma1lboy/rove★ 147same name
- bozhouDev/bozhou-skills★ 78same name
- marswaveai/skills★ 78same name
- LocalSymmetry/lofn★ 23same name
- crealwork/ai-marketing-kit★ 18same name
- buildoak/fieldwork-skills★ 15same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 112
When output is close but needs changes, edit with -i <previous-output> to preserve composition instead of regenerating from scratch.
“Common” is measured: kept by at least 6 in 10 of the 18 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.
Files
Image Generation Skill
Generate images from text prompts or edit existing images using Gemini, OpenAI, BFL (FLUX), or Poe image models.
For detailed model information, see MODELS.md or run image-gen --list-models -p <provider>.
Prerequisites
The image-gen command must be installed:
dotnet tool install --global ImageGenCliAt least one API key must be set as an environment variable: GEMINI_API_KEY (default provider), OPENAI_API_KEY, BFL_API_KEY, or POE_API_KEY.
Command Reference
image-gen "<prompt>" [options]| Option | Short | Default | Description |
--provider | -p | gemini | Provider: gemini, openai, bfl, or poe |
--model | -m | auto | Model name (use --list-models to see options) |
--images | -i | none | Reference image paths for editing (can specify multiple) |
--aspect-ratio | -a | 1:1 | 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 |
--resolution | -r | 1K | 1K, 2K, 4K (Gemini Pro/3.1 Flash, BFL, some Poe); WxH or aspect ratio for OpenAI GPT Image 2 and 2.5 |
--quality | -q | none | low, medium, high (OpenAI, Poe); xhigh, max, auto (OpenAI GPT Image 2.5) |
--temperature | -t | 1.0 | Generation temperature 0.0-2.0 (Gemini only) |
--system-prompt | -s | none | System instruction (Gemini only) |
--samples | -n | 1 | Number of images (1-4 Gemini, 1-10 others) |
--output | -o | current dir | Output directory for generated images |
--api-key | -k | env var | Override API key |
--list-models | -l | - | List available models for the provider |
Provider Models
Gemini (default):
gemini-3.1-flash-image(default) - Nano Banana 2, versatile workhorse, supports resolution parametergemini-3.1-flash-lite-image- Fastest and cheapest, 1K onlygemini-3-pro-image- Highest quality, supports resolution parametergemini-2.5-flash-image- Previous generation, 1K only
OpenAI:
gpt-image-2.5-flare- Fast generation and editing, supports resolution and xhigh/max qualitygpt-image-2.5-sunburst(default) - Precision generation and editing, supports resolution and xhigh/max qualitygpt-image-2- Previous generation, supports resolution parametergpt-image-1.5- Previous generationgpt-image-1- Earlier generationgpt-image-1-mini- Lightweight model
BFL (FLUX):
flux-2-pro(default) - Fast, production-readyflux-2-flex- Adjustable controls, best typographyflux-2-max- Highest quality, web groundingflux-2-klein-9b/flux-2-klein-4b- Lightweight open-weight models, sub-second inference
Poe:
Access to many models via single API. Use --list-models -p poe for full list.
Popular: GPT-Image-1, FLUX-2-Pro, Imagen-4, Seedream-4.0. Model names are case-sensitive.
Provider Differences
Provider-specific parameters cause hard errors if used with incompatible providers — use only supported options:
| Feature | Gemini | OpenAI | BFL | Poe |
| System prompt | Supported | Error | Error | Error |
| Temperature | Supported (0.0-2.0) | Error | Error | Error |
| Resolution | Pro & 3.1 Flash | GPT Image 2 and 2.5 | Supported | Model-dependent |
| Quality | Error | Supported | Error | Supported |
| Max samples | 4 | 10 | 10 | 10 |
| Reference images | Supported | Supported | Up to 8 | Supported |
Examples
# Basic generation (Gemini by default)
image-gen "A sunset over mountains with a lake reflection"
# Other providers and models
image-gen -p openai "A futuristic city skyline at night"
image-gen -p poe -m Seedream-4.0 "A poster with bold typography saying 'HELLO WORLD'"
# Aspect ratio, multiple images, output directory
image-gen -a 16:9 -n 4 -o ./generated "Rolling hills with wildflowers"
# Edit an existing image / use reference images
image-gen -i photo.jpg "Remove the background and replace with a beach scene"
image-gen -i style.png -i content.jpg "Apply the style from the first image to the second"
# High resolution
image-gen -m gemini-3-pro-image -r 2K "Detailed architectural blueprint"Output
Images are saved to the output directory as {provider}-{timestamp}.{ext} (single) or {provider}-{timestamp}-{n}.{ext} (multiple); each saved path is printed to stdout. Exit code 0 indicates success; errors (invalid parameters, missing API key, API or network failures) are written to stderr with a non-zero exit code.
Usage Notes
- Generation costs API credits. Start with 1-2 images to validate direction before generating more; when working with a user, check their budget tolerance for larger explorations.
- When output is close but needs changes, edit with
-i <previous-output>to preserve composition instead of regenerating from scratch.
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
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.

