agentleFS
PederHPPederHP/image-gen-cli/image-gen/SKILL.md

image-gen

Skill1 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

54 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ahrefs, spotify and 10 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.
  • vojtoSkill

    ahrefs

    Fetch keyword data from Ahrefs using Chrome browser automation. Use when the user needs keyword difficulty, search volume, or CPC data and API credits are exhausted.

    Also in 3 projects that use this

  • QuixiAISkill

    spotify

    Search Spotify, inspect current playback and devices, and control playback with explicit approval

    Also in 3 projects that use this

  • QuixiAISkill

    trello

    List Trello boards, lists, and cards and create or update cards with explicit approval

    Also in 3 projects that use this

  • AnthropicSkill

    daily-briefing

    Morning rundown - today's meetings with account context, opps closing soon with stale flags, waiting customer emails, and the day's top actions. Use when the user says "daily briefing", "daily brief", "morning briefing", "what's my day", "what's on my plate today", "prep my day", "start my day", "morning rundown", or on a schedule.

    Also in 3 projects that use this

  • silvainfmSkill

    paid-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

  • AnthropicSkill

    weather

    The optional standing status report ("the weather"): compile open incidents, build health, merge-queue stats, and deploy lag into one always-current report page, and post to the channel only when a defined event fires. Use when the weather routine fires, or when someone asks to run/update the weather report.

    Also in 3 projects that use this

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 43 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
  1. Very specific:

    When output is close but needs changes, edit with -i <previous-output> to preserve composition instead of regenerating from scratch.

    line 112

“Common” is measured: kept by at least 6 in 10 of the 43 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

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 ImageGenCli

At 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]
OptionShortDefaultDescription
--provider-pgeminiProvider: gemini, openai, bfl, or poe
--model-mautoModel name (use --list-models to see options)
--images-inoneReference image paths for editing (can specify multiple)
--aspect-ratio-a1:11:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
--resolution-r1K1K, 2K, 4K (Gemini Pro/3.1 Flash, BFL, some Poe); WxH or aspect ratio for OpenAI GPT Image 2 and 2.5
--quality-qnonelow, medium, high (OpenAI, Poe); xhigh, max, auto (OpenAI GPT Image 2.5)
--temperature-t1.0Generation temperature 0.0-2.0 (Gemini only)
--system-prompt-snoneSystem instruction (Gemini only)
--samples-n1Number of images (1-4 Gemini, 1-10 others)
--output-ocurrent dirOutput directory for generated images
--api-key-kenv varOverride 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 parameter
  • gemini-3.1-flash-lite-image - Fastest and cheapest, 1K only
  • gemini-3-pro-image - Highest quality, supports resolution parameter
  • gemini-2.5-flash-image - Previous generation, 1K only

OpenAI:

  • gpt-image-2.5-flare - Fast generation and editing, supports resolution and xhigh/max quality
  • gpt-image-2.5-sunburst (default) - Precision generation and editing, supports resolution and xhigh/max quality
  • gpt-image-2 - Previous generation, supports resolution parameter
  • gpt-image-1.5 - Previous generation
  • gpt-image-1 - Earlier generation
  • gpt-image-1-mini - Lightweight model

BFL (FLUX):

  • flux-2-pro (default) - Fast, production-ready
  • flux-2-flex - Adjustable controls, best typography
  • flux-2-max - Highest quality, web grounding
  • flux-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:

FeatureGeminiOpenAIBFLPoe
System promptSupportedErrorErrorError
TemperatureSupported (0.0-2.0)ErrorErrorError
ResolutionPro & 3.1 FlashGPT Image 2 and 2.5SupportedModel-dependent
QualityErrorSupportedErrorSupported
Max samples4101010
Reference imagesSupportedSupportedUp to 8Supported

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.

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.