image-prompt-generator
БесплатноЗапускает вложенные скриптыНе проверенGenerate AI images using Gemini image generation API. Use this skill when content needs images - thumbnails, social posts, blog headers, or creative visuals…
от cdeistopened★ 32 звезды на GitHubОб этом скилле
Image Prompt Generator
Generate professional, non-generic images using Google's Gemini API for image generation.
Prerequisites & Setup
Getting Your Gemini API Key
- Go to Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- Copy the generated key
Configuring the API Key
Option 1: Environment file (recommended)
Create a .env file in your project root:
GEMINI_API_KEY=your_api_key_here
Option 2: Direct environment variable
export GEMINI_API_KEY=your_api_key_here
Install Dependencies
pip install google-generativeai python-dotenv pillow
Available Models
| Model | API Name | Best For |
|---|---|---|
| Flash | gemini-2.5-flash-image |
Speed, drafts, iteration |
| Pro | gemini-3-pro-image-preview |
Final assets, 16:9 aspect ratio, quality |
CRITICAL: Use gemini-3-pro-image-preview for:
- Thumbnails (need 16:9 aspect ratio)
- Final production images
- Any image where aspect_ratio config is needed
Workflow Overview
- Brainstorm Concepts - Generate 4-6 high-level visual ideas
- Select Direction - User picks the concept they like
- Optimize Prompt - Refine into a strong, detailed prompt
- Style Variations - Adapt to 2-3 different visual styles
- Generate Images - Run via Gemini API
Step 1: Brainstorm Concepts
When the user provides a topic or use case, generate 4-6 high-level visual concepts. Each concept should be:
- One sentence describing the visual idea
- Concrete and immediate - you can picture it instantly
- Conceptual but not abstract - a clear object/scene with meaning
- Non-generic - avoid cliches (no lightbulbs for ideas, no handshakes for partnership)
Format:
1. **[Short label]** - One sentence description of the visual concept and why it works.
2. **[Short label]** - One sentence description...
Example for "newsletter about personal productivity":
1. **Compass with coffee stain** - A vintage compass where the needle points toward a coffee ring stain on a map, suggesting direction emerges from daily rituals.
2. **Clock face with seasons** - A clock where the 12 hours show seasonal changes, suggesting time management over long arcs, not just hours.
3. **Empty desk with shadow** - A minimalist desk in morning light, but the shadow shows a cluttered desk - the gap between intention and reality.
4. **Single key on many keychains** - One small key attached to dozens of decorative keychains, suggesting we overcomplicate simple solutions.
Wait for user to select before proceeding.
Step 2: Optimize the Prompt
Once the user selects a concept, develop it into a full prompt. Structure:
Create a [style type] illustration of [subject].
CONCEPT: [Expand the one-sentence idea into a clear visual description]
STYLE: [Artistic approach - load from references/styles/ if brand-specific]
COMPOSITION: [Framing, focal point, negative space, balance]
COLORS: [Palette - describe by name, not hex codes which may render as text]
TEXTURE: [Surface qualities, analog/digital feel]
AVOID: [What should NOT appear - be specific]
FORMAT: [Aspect ratio]
Key principles:
- Natural language, full sentences - no tag soup
- Describe colors by name (burnt orange, sky blue, near-black) not hex codes
- Maximum 2-3 elements - if it feels busy, remove something
- Favor metaphor over literal depiction
Step 3: Style Variations
Default style: Risograph - Use references/styles/risograph.md unless the content calls for something different.
Available styles in references/styles/:
- risograph.md - DEFAULT. Halftone dots, misregistration, indie printmaking aesthetic. Warm, tactile, analog.
- minimalist-ink.md - High-contrast black and white, crosshatching. For craft/mastery posts.
- watercolor-line.md - Ink linework with watercolor washes, warm. For organic topics.
- editorial-conceptual.md - Conceptual, sophisticated, editorial wit. For abstract/philosophical posts.
Present style options to user, recommending risograph as default.
Step 4: Generate via API
Running the Script
# Load key from .env and generate
export $(grep GEMINI_API_KEY .env) && \
python scripts/generate_image.py "prompt here" --model pro --aspect 16:9
# Save to specific folder
python scripts/generate_image.py "prompt" --output "./images" --name "my_image"
Options:
--model flash(faster, cheaper) or--model pro(higher quality)--aspect 16:9,1:1, or9:16(PRO MODEL ONLY - for flash, you MUST include ratio in prompt text)--variations N- generate N versions--output ./path- save location--name prefix- filename prefix
Output location: Save images alongside the content they belong to - not a generic images dump.
Step 5: Iterate
After user reviews generated images:
- 80% good? Request
Установить image-prompt-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл image-prompt-generator?
Generate AI images using Gemini image generation API. Use this skill when content needs images - thumbnails, social posts, blog headers, or creative visuals. Follows an iterative workflow - brainstorm concepts, select direction, generate in multiple styles, then produce via API.
Как установить скилл image-prompt-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл image-prompt-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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