Agent skill

Generate Image

by ynulihao in ynulihao/AgentSkillOS

Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.

No licenceAuto-check: notesMedia & Creative

Install Generate Image

skills CLI
$ npx skills add ynulihao/AgentSkillOS --skill generate-image -a claude-code

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

GitHub CLI
$ gh skill install ynulihao/AgentSkillOS 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/ynulihao/AgentSkillOS.git skills-src && mkdir -p .claude/skills && cp -r skills-src/data/skill_seeds/generate-image .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
617
Used in
10 other repos
Token cost
~1.7k tokens
SKILL.md length
553 words
Files
2 (incl. scripts)
Skills in repo
26
Repo updated
First seen
Licence
None found

At a glance

Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.

  • Works in 3 steps: Look for a .env file in the project… → Check for OPENROUTER_API_KEY= in the… → If not found, inform the user they need to
  • General-purpose image generation including photos
  • SKILL.md covers When to Use This Skill, Quick Start, API Key Setup and Model Selection, plus 7 more sections
  • Runs Python scripts from its folder; calls python; needs OPENROUTER_API_KEY

What it does

Generate Image is an agent skill from ynulihao/AgentSkillOS. Generate or edit images using AI models (FLUX, Gemini). Use for general-purpose image generation including photos, illustrations, artwork, visual assets, concept art, and any image that isn't a technical diagram or schematic. For flowcharts, circuits, pathways, and technical diagrams, use the scientific-schematics skill instead.

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

It sits in Media & Creative, covering Image generation, Diagrams and Image editing. It works with OpenRouter. The repository describes itself as: Build your agent from 200,000+ skills via skill RETRIEVAL & ORCHESTRATION.

When your agent uses it

  • General-purpose image generation including photos
  • Any image that isnt a technical diagram

Example prompts

  • “/generate-image”

Requirements

  • Python 3
  • A credential in OPENROUTER_API_KEY

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Look for a .env file in the project directory or parent directories
  2. Check for OPENROUTER_API_KEY= in the .env file
  3. If not found, inform the user they need to

What it can do on your machine

Read from SKILL.md and the folder at commit c3cfae1. 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:

    • python

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

  • Network

    Links to these hosts (documentation or services it may open):

    • openrouter.ai

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

  • Credentials

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

    • OPENROUTER_API_KEY

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

Context cost

Generate Image loads about 1.7k tokens when it runs. Until then it costs about 86 tokens; SKILL.md has 553 words of instructions outside code blocks.

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

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:46
    1. Look for a `.env` file in the project directory or parent directories
  • NoteMentions a .env fileSKILL.md:47
    k for `OPENROUTER_API_KEY=<key>` in the `.env` file
  • NoteMentions a .env fileSKILL.md:49
    - Create a `.env` file with `OPENROUTER_API_KEY=your-api-key-here`
  • NoteMentions a .env fileSKILL.md:53
    he script will automatically detect the `.env` file and provide clear error messages if the API key is missing.
  • NoteMentions a .env fileSKILL.md:116
    -api-key`: OpenRouter API key (overrides .env file)

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 553 words (~1,712 tokens).

“Generate and edit high-quality images using OpenRouter's image generation models including FLUX.2 Pro and Gemini 3 Pro.”

— opening of SKILL.md by ynulihao
name
generate-image

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (scripts) in data/skill_seeds/generate-image of ynulihao/AgentSkillOS.

  • SKILL.md
  • scripts/generate_image.py

Open the folder on GitHubat commit c3cfae1

Used in 10 other repositories

We found 13 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 10 other GitHub owners. This page covers the copy in ynulihao/AgentSkillOS, which our catalogue first saw on October 7, 2026.

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 skillynulihao/AgentSkillOS61710 repos~1.7kAutomated safety check: NotesNone
Generate ImageK-Dense-AI/claude-scientific-writer2.4k1 repos~3.8kAutomated safety check: NotesMIT
FigureMuuuun/luxas1.2k—~1.2kAutomated safety check: PassMIT
Generate ImageMicrock/ordinary-claude-skills403—~1.2kAutomated safety check: NotesCustom licence
Guizang Material Illustrationop7418/guizang-material-illustration1.2k—~1.6kAutomated safety check: PassNone
AI Image Creatorevolution-foundation/evo-nexus545—~5.1kAutomated safety check: NotesCustom licence

Similar skills

  • Generate Image

    K-Dense-AI/claude-scientific-writer

    Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).

    2.4k GitHub starsUsed in 1 repo~3.8k tokens
    Media & CreativeAuto-check: notes
  • Figure

    Muuuun/luxas

    Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly).

    1.2k GitHub stars~1.2k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Generate Image

    Microck/ordinary-claude-skills

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from Microck/ordinary-claude-skills.

    403 GitHub stars~1.2k tokensUpdated 1 mo ago
    Media & CreativeAuto-check: notes
  • Guizang Material Illustration

    op7418/guizang-material-illustration

    Generate Guizang-style material illustrations, labeled explanatory visuals, material-styled chart illustrations, and data-first editorial images from articles, notes, product concepts, workplace…

    1.2k GitHub stars~1.6k tokensUpdated 3 mo ago
    Media & CreativeAuto-check passed
  • AI Image Creator

    evolution-foundation/evo-nexus

    Generates PNG images through OpenRouter models, with transparent backgrounds and reference-image edits, and describes existing images with multimodal vision.

    545 GitHub stars~5.1k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • Paper Illustration

    AI4Scientist/nano-scientist

    Generate publication-quality AI illustrations for academic papers using Gemini image generation.

    128 GitHub starsUsed in 4 repos~7.2k tokens
    Media & CreativeAuto-check: notes

More from ynulihao/AgentSkillOS

All 26 skills in this repo
  • Data Storytelling

    ynulihao/AgentSkillOS

    Transform data into compelling narratives using visualization, context, and persuasive structure.

    617 GitHub starsUsed in 16 repos~2.8k tokens
    Auto-check passed
  • Prompt Engineering Patterns

    ynulihao/AgentSkillOS

    Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production.

    617 GitHub starsUsed in 15 repos~1.7k tokens
    Auto-check passed
  • Employment Contract Templates

    ynulihao/AgentSkillOS

    Create employment contracts, offer letters, and HR policy documents following legal best practices.

    617 GitHub starsUsed in 12 repos~4.1k tokens
    Auto-check passed
  • SQL Optimization Patterns

    ynulihao/AgentSkillOS

    Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries.

    617 GitHub starsUsed in 11 repos~3.3k tokens
    Auto-check passed
  • Media Processing

    ynulihao/AgentSkillOS

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration), ImageMagick (image manipulation, format conversion, batch processing, effects…

    617 GitHub stars~817 tokensUpdated 7 mo ago
    Auto-check: notes
  • Auth Implementation Patterns

    ynulihao/AgentSkillOS

    Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems.

    617 GitHub starsUsed in 10 repos~4.4k tokens
    Auto-check passed

Works with

Questions about Generate Image

What does Generate Image do?

Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS. Generate Image is an agent skill from ynulihao/AgentSkillOS. Generate or edit images using AI models (FLUX, Gemini).

When should I use Generate Image?

Generate Image fits situations like: general-purpose image generation including photos; any image that isnt a technical diagram.

How do I install Generate Image in Claude Code?

Run `npx skills add ynulihao/AgentSkillOS --skill generate-image -a claude-code`. Or copy the skill folder (data/skill_seeds/generate-image in ynulihao/AgentSkillOS) 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 ynulihao/AgentSkillOS --skill generate-image -a codex`. Or copy the skill folder (data/skill_seeds/generate-image in ynulihao/AgentSkillOS) 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 ynulihao/AgentSkillOS --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 Python for the scripts in its folder, the command-line tools its instructions call (python) and credentials named OPENROUTER_API_KEY. Our summary lists: Python 3; A credential in OPENROUTER_API_KEY.

Does Generate Image access the network?

SKILL.md names 1 domain. As links in the text: openrouter.ai. 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), nothing it rates as a warning. 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 Generate Image use?

No licence was found for Generate Image or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Generate Image use?

About 1.7k tokens (SKILL.md is roughly 6.8k 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: Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars), Figure (Muuuun/luxas, 1.2k stars), Generate Image (Microck/ordinary-claude-skills, 403 stars) and Guizang Material Illustration (op7418/guizang-material-illustration, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Image?

ynulihao (a GitHub user) maintains it in ynulihao/AgentSkillOS, which has 617 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on March 7, 2026.

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