generate-images
БесплатноБез исполняемых скриптовНе проверенGenerate and edit images using Nano Banana (Google Gemini image generation). Use whenever Claude Code needs to create new images, edit existing images…
от cfircoo★ 17 звёзд на GitHubОб этом скилле
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).
uv run ~/.claude/scripts/generate_image.py --check-key
If 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
List available reference images:
ls ~/.claude/images/ 2>/dev/null
Matching 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
- 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)
- 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]
Text-to-image (new image):
uv run ~/.claude/scripts/generate_image.py "prompt here" --output path/to/output.png
Image editing with reference image:
uv run ~/.claude/scripts/generate_image.py "editing instructions" --edit ~/.claude/images/myself.jpg --output path/to/output.png
Image editing with project image:
uv run ~/.claude/scripts/generate_image.py "editing instructions" --edit path/to/source.png --output path/to/output.png
Options:
--output PATH- Output file path (default:generated_image.png)--edit IMAGE- Source image for editing mode--json- Output metadata as JSON
- 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
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
- API key check passes
- Reference ima
Установить generate-images в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл generate-images?
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.
Как установить скилл generate-images?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл generate-images запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic