Official agent skill

Generate Image

by github in github/awesome-copilot

Generate images using AI. An agent skill from github/awesome-copilot.

OfficialMITAuto-check passedMedia & Creative

Install Generate Image

skills CLI
$ npx skills add github/awesome-copilot --skill generate-image -a claude-code

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

GitHub CLI
$ gh skill install github/awesome-copilot 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/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/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
40k
Token cost
~958 tokens
SKILL.md length
371 words
Files
1
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

Generate images using AI. An agent skill from github/awesome-copilot.

  • Works in 6 steps: Check for API keys — check whether… → If one key is set — use that provider.… → If both are set — pick based on context… → …
  • Asked to generate
  • SKILL.md covers Workflow, Onboarding, API Reference: OpenAI and API Reference: Google Gemini…, plus 1 more section
  • Reaches api.openai.com and generativelanguage.googleapis.com; needs SKILL_IMAGE_GEN_OPENAI_KEY and SKILL_IMAGE_GEN_GEMINI_KEY

What it does

Generate Image is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Generate images using AI. Use when asked to generate, create, or make images, textures, icons, sprites, artwork, visual assets, or mockups. Supports OpenAI (gpt-image-2) and Google Gemini (Nano Banana). Requires an API key for the chosen provider.

Its SKILL.md is about 960 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Image generation. It works with Google Gemini and OpenAI. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.

When your agent uses it

  • Asked to generate
  • Tasks that involve Image generation

Example prompts

  • “/generate-image”

Requirements

  • A credential in SKILL_IMAGE_GEN_OPENAI_KEY
  • A credential in SKILL_IMAGE_GEN_GEMINI_KEY

Workflow steps

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

  1. Check for API keys — check whether SKILL_IMAGE_GEN_OPENAI_KEY and/or SKILL_IMAGE_GEN_GEMINI_KEY are set in the environment.
  2. If one key is set — use that provider. No need to ask.
  3. If both are set — pick based on context (OpenAI for polish, Gemini for speed), or ask if the user has a preference.
  4. If no keys are set — run the Onboarding section.
  5. Generate the image using the appropriate API reference.
  6. Tell the user where the image was saved.

What it can do on your machine

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.openai.com
    • generativelanguage.googleapis.com

    Also links to:

    • platform.openai.com
    • aistudio.google.com

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

  • Credentials

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

    • SKILL_IMAGE_GEN_OPENAI_KEY
    • SKILL_IMAGE_GEN_GEMINI_KEY

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

Context cost

Generate Image loads about 958 tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 371 words of instructions outside code blocks.

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

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 371 words, ~958 tokens.

Download SKILL.mdSave it as .claude/skills/generate-image/SKILL.md (or your agent's skills folder).
name
generate-image
description
Generate images using AI. Use when asked to generate, create, or make images, textures, icons, sprites, artwork, visual assets, or mockups. Supports OpenAI (gpt-image-2) and Google Gemini (Nano Banana). Requires an API key for the chosen provider.
argument-hint
[description of the image to generate]
license
MIT
metadata.version
2.1.0
metadata.providers
openai, gemini

Generate Image

You are an image generation assistant. When invoked, follow the workflow below.

Workflow

  1. Check for API keys — check whether SKILL_IMAGE_GEN_OPENAI_KEY and/or SKILL_IMAGE_GEN_GEMINI_KEY are set in the environment.
  2. If one key is set — use that provider. No need to ask.
  3. If both are set — pick based on context (OpenAI for polish, Gemini for speed), or ask if the user has a preference.
  4. If no keys are set — run the Onboarding section.
  5. Generate the image using the appropriate API reference.
  6. Tell the user where the image was saved.

Onboarding

Only run this if no keys are set. Guide the user conversationally.

  1. Ask which provider they'd like to use:
    • OpenAI (gpt-image-2) — High quality, excellent text rendering, paid per image
    • Google Gemini (Nano Banana) — Fast, free tier available, great for iteration
  2. Direct them to get an API key:
  3. Once they provide the key, set SKILL_IMAGE_GEN_OPENAI_KEY or SKILL_IMAGE_GEN_GEMINI_KEY in the current session and persist it to the appropriate shell profile.
  4. Proceed to generate the image they originally asked for.

API Reference: OpenAI

Method: POST URL: https://api.openai.com/v1/images/generations

Headers:

  • Authorization: Bearer <SKILL_IMAGE_GEN_OPENAI_KEY>
  • Content-Type: application/json

Body (JSON):

json
{
  "model": "gpt-image-2",
  "prompt": "<user prompt>",
  "n": 1,
  "size": "1024x1024",
  "quality": "medium"
}
FieldDefaultOptions
modelgpt-image-2gpt-image-2, gpt-image-1
size1024x10241024x1024, 1024x1536, 1536x1024, auto
qualitymediumlow, medium, high

Response: data[0].b64_json contains the base64-encoded image. Decode it and save to the output path. If data[0].url is present instead, download the image from that URL.

Show full SKILL.md (133 more words)Show less

API Reference: Google Gemini (Nano Banana)

Method: POST URL: https://generativelanguage.googleapis.com/v1beta/models/<model>:generateContent

Headers:

  • x-goog-api-key: <SKILL_IMAGE_GEN_GEMINI_KEY>
  • Content-Type: application/json

Body (JSON):

json
{
  "contents": [{"parts": [{"text": "Generate an image: <user prompt>"}]}],
  "generationConfig": {"responseModalities": ["TEXT", "IMAGE"]}
}
FieldDefaultOptions
model (in URL)gemini-2.0-flash-expgemini-2.0-flash-exp, gemini-2.5-flash-image

Response: Find candidates[0].content.parts[] — look for a part with inlineData.data (base64 image) and inlineData.mimeType. Decode and save.

Error cases: error key (API error), promptFeedback.blockReason (safety block), finishReason: "SAFETY" (filtered).

Agent Guidelines

  • Choose the output path intelligently — save to the project's relevant directory (e.g., assets/, images/, or the current directory).
  • For game textures, enrich prompts with "seamless", "tileable", "game asset".
  • For batch generation, make multiple API calls in parallel.
  • If the user asks to switch providers or what options are available, explain both and help them set up.
  • Always create the output directory before saving.
  • Ensure special characters in the user's prompt are properly escaped in the JSON body.

© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/generate-image of github/awesome-copilot.

Open the folder on GitHubat commit 727ff2e

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 skillgithub/awesome-copilot40k—~958Automated safety check: PassMIT
Nano Banana Pro Prompts Recommend SkillYouMind-OpenLab/nano-banana-pro-prompts-recommend-skill1.9k1 repos~4.1kAutomated safety check: PassNone
AI Image Creatorcentminmod/my-claude-code-setup2.7k—~8kAutomated safety check: NotesMIT
Chatgpt Image Adkrusemediallc/arcads-claude-code1.6k—~2.7kAutomated safety check: NotesMIT
Zy Cinematic Realismpopopo-99/zy-cinematic-realism557—~4.6kAutomated safety check: PassCC-BY-NC-4.0
Image GenerationNegai-ai/AgentClaw343—~1.9kAutomated safety check: NotesApache-2.0

Similar skills

  • Nano Banana Pro Prompts Recommend Skill

    YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill

    Recommend suitable prompts from 10,000+ Nano Banana Pro image generation prompts based on user needs.

    1.9k GitHub starsUsed in 1 repo~4.1k tokens
    Media & CreativeAuto-check passed
  • AI Image Creator

    centminmod/my-claude-code-setup

    Generate, edit-from-reference, or analyze images with AI via OpenRouter (Gemini, GPT Image, Seedream, Qwen, MAI, Grok, FLUX.2, Recraft, Muse, Riverflow; Cloudflare AI Gateway BYOK).

    2.7k GitHub stars~8k tokensUpdated 9 days ago
    Media & CreativeAuto-check: notes
  • Chatgpt Image Ad

    krusemediallc/arcads-claude-code

    Generate one or more standalone Meta image-ad creatives via ChatGPT Image 2 (gpt-image-2) through the Arcads external API.

    1.6k GitHub stars~2.7k tokensUpdated 15 days ago
    Media & CreativeAuto-check: notes
  • Zy Cinematic Realism

    popopo-99/zy-cinematic-realism

    Develop supplied scripts, short stories, or synopses into scene understanding, director-facing art concepts, and motivated narrative keyframes; compile scene ideas, visual references, or existing…

    557 GitHub stars~4.6k tokensUpdated 4 days ago
    Media & CreativeAuto-check passed
  • Image Generation

    Negai-ai/AgentClaw

    Generate, edit, and iterate raster images from text prompts or reference images with GPT Image, Nano Banana, or Seedream.

    343 GitHub stars~1.9k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • Image

    Nexus-JPF/note-companion

    When the user wants to create, generate, edit, or optimize images for marketing — blog heroes, social graphics, product mockups, profile banners, listing visuals, or brand assets.

    869 GitHub starsUsed in 2 repos~3.9k tokens
    Media & CreativeAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Questions about Generate Image

What does Generate Image do?

Generate images using AI. An agent skill from github/awesome-copilot. Generate Image is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Generate images using AI.

When should I use Generate Image?

Generate Image fits situations like: asked to generate; tasks that involve Image generation.

How do I install Generate Image in Claude Code?

Run `npx skills add github/awesome-copilot --skill generate-image -a claude-code`. Or copy the skill folder (skills/generate-image in github/awesome-copilot) 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 github/awesome-copilot --skill generate-image -a codex`. Or copy the skill folder (skills/generate-image in github/awesome-copilot) 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 github/awesome-copilot --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 credentials named SKILL_IMAGE_GEN_OPENAI_KEY and SKILL_IMAGE_GEN_GEMINI_KEY. Our summary lists: A credential in SKILL_IMAGE_GEN_OPENAI_KEY; A credential in SKILL_IMAGE_GEN_GEMINI_KEY.

Does Generate Image access the network?

SKILL.md names 4 domains. In commands or code: api.openai.com and generativelanguage.googleapis.com; the agent is likely to contact these when it follows the instructions. As links in the text: platform.openai.com and aistudio.google.com. This is read from the text; nothing was executed.

Is Generate Image 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. Review the folder before installing.

What licence does Generate Image use?

Generate Image is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Image use?

About 958 tokens (SKILL.md is roughly 3.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: Nano Banana Pro Prompts Recommend Skill (YouMind-OpenLab/nano-banana-pro-prompts-recommend-skill, 1.9k stars), AI Image Creator (centminmod/my-claude-code-setup, 2.7k stars), Chatgpt Image Ad (krusemediallc/arcads-claude-code, 1.6k stars) and Zy Cinematic Realism (popopo-99/zy-cinematic-realism, 557 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Image?

github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.

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