agentleFS
MakiDevelopMakiDevelop/claude-skills/skills/generate-image/SKILL.md

generate-image

Skill3 starsChanged 8 months agoMITView on GitHub

Generate an image with the Gemini API. Use for image generation, illustrations, or 產圖 requests.

  • Reads credentials

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use edit-image, scientific-slides and 6 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.
  • SamurAIGPTSkill

    edit-image

    Edits an existing image using natural language instructions via MuAPI. Use when the user wants to modify, change, transform, or retouch an existing image.

    Also in 3 projects that use this

  • ZanderRussSkill

    scientific-slides

    Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.

    Also in 3 projects that use this

  • nicepkgSkill

    team

    根据任务快速组建临时 AI Agent 团队协作。自动从 .claude/agents/ 中选择最合适的成员组队。

    Also in 3 projects that use this

  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 5 projects that use this

  • AnthropicSkill

    pdf

    Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

    Also in 4 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 5 projects that use this

  • +1 more from anthropics

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 1

    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. Distinctive:

    Ask only for missing details that materially affect the result.

    line 23
  2. Very specific:

    Check whether GEMINI_API_KEY or the alias GOOGLE_API_KEY is present without printing its value.

    line 25

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

Generate an image

Generate an image from the user's brief and save it locally. This uses Google's external API: the prompt leaves the device and usage may be billed.

Workflow

  1. Take the subject, style, intended use and any requested text from the request. Ask only for missing details that materially affect the result. Preserve the user's language and requested text; do not claim English always works better.
  2. Check whether GEMINI_API_KEY or the alias GOOGLE_API_KEY is present without printing its value. If absent, direct the user to configure an environment variable privately. Never ask them to paste a key into chat or write it into source, shell history, a prompt file or a URL.
  3. Save the final prompt to a UTF-8 text file. Treat it as data, never interpolate it into Python or shell source. Use a new output basename for every request.
  4. Resolve scripts/generate.py relative to this skill's directory, then run:

    python3 "/absolute/path/to/generate-image/scripts/generate.py" --prompt-file "/absolute/path/to/prompt.txt" --output "/absolute/path/to/result"

    The script defaults to gemini-nano-banana-2.1, verified in Google's model lifecycle table on 2026-10-15. GEMINI_IMAGE_MODEL can override it. Model availability and pricing may change; do not silently fall back.

  5. Inspect and display the saved image. Report the actual output path and model. Report a refusal or missing image as a failure, never as a saved image.
  6. Revise only when requested. Stop after two failed attempts at the same error. For 401/403, check account/key permissions; for 404, verify the model; for 429, inspect quota/billing rather than assuming a free tier or a fixed wait.

Quality Gates

  • Prompt and output path are passed as data; no credentials in chat or files.
  • Existing files are never overwritten.
  • The actual MIME type determines the output extension.
  • Image is inspected before claiming success.
  • No promise of free usage, fixed rate limits, or blanket copyright ownership.

References

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.