generate-images
Skill17 starsChanged 9 months agoMITView on GitHub
Generate and edit images using Nano Banana (Google Gemini image generation). Use whenever Claude Code needs to create new images, edit existing images, generate icons, diagrams, mockups, or any visual content.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ken-guru/skillstheir own version, first seen Sep 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ken-guru/skills★ 1same name
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 repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- manage-skillsSkill
- manage-hooksSkill
- create-meta-promptsSkill
- create-plansSkill
- create-subagentsSkill
- damage-controlSkill
- debug-like-expertSkill
- docs-masterSkill
- file-searchSkill
- generate-prdSkill
- gitSkill
- manage-slash-commandsSkill
- pytest-best-practicesSkill
- ralph-convert-prdSkill
- ralph-orchestratorSkill
- spec-interviewSkill
- sqlalchemy-postgresSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 9 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Create icons, logos, banners, or visual assets
- Distinctive: line 15
Create any visual content
- Distinctive: line 28
Before generating, verify the API key is available:
- Very specific: line 34
If API_KEY_MISSING: inform the user they need to set GEMINI_API_KEY in ~/.claude/settings.json or get one at …
- Distinctive: line 38
Check if the user's request refers to a known reference image.
- Very specific: line 51
If a match is found, use --edit mode with the matched file as source
- Very specific: line 52
If no match and the user clearly references a personal image, ask them to place it in ~/.claude/images/
- Very specific: line 55
Look in assets/, images/, public/, static/, or project root </step>
- Distinctive: line 61
If user specifies a path, use it
- Very specific: line 62
If editing a reference image, save to the current project (not back to ~/.claude/images/)
- Very specific: line 63
If inside a project, use a sensible location (e.g., assets/, images/, public/, or project root)
- Very specific: line 64
Default filename: descriptive kebab-case with .png extension (e.g., hero-banner.png, app-icon.png) </step>
- Distinctive: line 68
Write an effective image prompt.
- Distinctive: line 79
Run the generation script:
- Distinctive: line 105
Read the output image using the Read tool to verify it was created and looks correct
- Distinctive: line 107
If the result doesn't match expectations, refine the prompt and regenerate </step>
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<essential_principles>
This skill generates images using the Nano Banana model via ~/.claude/scripts/generate_image.py.
Always use this skill when the user asks to:
- Generate, create, or make an image
- Create icons, logos, banners, or visual assets
- Edit, modify, or transform an existing image
- Generate mockups, diagrams, or illustrations
- Create any visual content
Prerequisites:
GEMINI_API_KEYmust be set in~/.claude/settings.jsonunderenv- Script:
~/.claude/scripts/generate_image.py(runs viauv run)
Reference images: Users can store named images in ~/.claude/images/ for use as editing sources. Filenames describe the content (e.g., myself.jpg, company-logo.png, office.jpg).
</essential_principles>
<process><step name="1_check_api_key">
Before generating, verify the API key is available:uv run ~/.claude/scripts/generate_image.py --check-keyIf API_KEY_MISSING: inform the user they need to set GEMINI_API_KEY in ~/.claude/settings.json or get one at https://aistudio.google.com/apikey
</step>
<step name="2_match_reference_images">
Check if the user's request refers to a known reference image.List available reference images:
ls ~/.claude/images/ 2>/dev/nullMatching rules:
- Match user mentions to filenames (without extension). Examples:
- "add a hat to myself" → look for
myself.jpg,myself.png, etc. - "put my dog in a park" → look for
my-dog.jpg,dog.jpg, etc. - "update the company logo" → look for
company-logo.png,logo.png, etc.
- "add a hat to myself" → look for
- Match is case-insensitive, try with and without hyphens/underscores
- If a match is found, use
--editmode with the matched file as source - If no match and the user clearly references a personal image, ask them to place it in
~/.claude/images/
Also check the current project for relevant images if the user references project assets:
- Look in
assets/,images/,public/,static/, or project root</step>
<step name="3_determine_output_path">
Choose an appropriate output path based on context:- If user specifies a path, use it
- If editing a reference image, save to the current project (not back to
~/.claude/images/) - If inside a project, use a sensible location (e.g.,
assets/,images/,public/, or project root) - Default filename: descriptive kebab-case with
.pngextension (e.g.,hero-banner.png,app-icon.png)</step>
<step name="4_craft_prompt">
Write an effective image prompt. Good prompts include:- Subject: What to generate (e.g., "a minimalist logo of a rocket")
- Style: Visual style (e.g., "flat design", "photorealistic", "watercolor", "pixel art")
- Details: Specific attributes (colors, lighting, composition, mood)
- Quality: Resolution hints (e.g., "high detail", "4K quality", "professional")
Example prompt structure: [Subject], [style], [details], [quality]
</step>
<step name="5_generate">
Run the generation script:Text-to-image (new image):
uv run ~/.claude/scripts/generate_image.py "prompt here" --output path/to/output.pngImage editing with reference image:
uv run ~/.claude/scripts/generate_image.py "editing instructions" --edit ~/.claude/images/myself.jpg --output path/to/output.pngImage editing with project image:
uv run ~/.claude/scripts/generate_image.py "editing instructions" --edit path/to/source.png --output path/to/output.pngOptions:
--output PATH- Output file path (default:generated_image.png)--edit IMAGE- Source image for editing mode--json- Output metadata as JSON</step>
<step name="6_verify">
After generation:- Read the output image using the Read tool to verify it was created and looks correct
- Report the file path and size to the user
- If the result doesn't match expectations, refine the prompt and regenerate
</step>
</process><prompt_examples>
Icon/Logo: "A minimalist app icon for a task management tool, flat design, blue and white color scheme, clean geometric shapes, centered composition, professional quality"
Banner/Hero: "Wide panoramic banner for a tech blog, abstract gradient background in purple and teal, modern typography space on the left, subtle geometric patterns, professional web design"
Edit with reference image:
User says: "add a clown hat to myself"
→ Match myself.jpg in ~/.claude/images/
→ Run: uv run ~/.claude/scripts/generate_image.py "Add a colorful clown hat to the person in this photo" --edit ~/.claude/images/myself.jpg --output clown-hat-myself.png
Edit with reference image:
User says: "put my dog on a beach"
→ Match dog.jpg or my-dog.jpg in ~/.claude/images/
→ Run: uv run ~/.claude/scripts/generate_image.py "Place the dog on a tropical beach with waves and sunset" --edit ~/.claude/images/dog.jpg --output dog-on-beach.png
</prompt_examples>
<success_criteria> Image generation is complete when:
- API key check passes
- Reference images matched when applicable
- Image is saved to the specified output path
- Output image has been visually verified via Read tool
- User is informed of the file location </success_criteria>
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.

