image-generation
Turns any request for an AI-generated image into precise, generation-ready prompt specs and — when the FAL.ai automation is configured — the generated files…
от sanky369★ 40 звёзд на GitHub
Установить image-generation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Image Generation
Convert a fuzzy image request into prompt specs precise enough that any competent
image model — and specifically fal-ai/nano-banana-pro on FAL.ai, the one model
this repo's automation uses — renders what the user actually pictured. The prompt
spec is the deliverable; generated files are the bonus when the automation is
configured. Prime rule: never generate from a vague prompt. A weak prompt
costs a generation credit and teaches you nothing; a sharp spec is reusable
forever.
When to use / when not to
Use for general-purpose images: hero images, illustrations, thumbnails, infographics, textures, concept art, any one-off visual. Hand off instead when the request is really:
- Product shots for commerce/marketing →
skills/creative/product-photography - Platform-sized social content →
skills/creative/social-graphics - Logos, icons, patterns, brand marks →
skills/creative/brand-asset - No visual direction exists yet and consistency matters → run
skills/creative/creative-strategistfirst and consume its style block - A whole multi-asset campaign →
skills/creative/orchestratorroutes it
Intake
Ask in one batch, only what's missing:
- Subject — what exactly is in the image? (object, scene, people, text?)
- Use — where does it go? (this decides aspect ratio and resolution)
- Style anchor — existing style guide / creative-strategist style block, reference images, or 3 adjectives for the mood?
- Automation — is
FAL_API_KEYset so you can generate, or deliver specs only?
Infer, don't ask: aspect ratio from the stated destination (thumbnail → 16:9,
story → 9:16, feed → 1:1 or 4:5); resolution from stakes (2K default,
4K hero/print, 1K drafts). Don't stall: if subject and use are clear,
state your assumptions for the rest and proceed.
Workflow
Check for a style block. If the user has run
skills/creative/creative-strategist, reuse its style block verbatim in every prompt. If not, and this is a one-off, derive a minimal one (style + palette + mood) from context and label it an assumption.Draft the prompt with the 5-part formula. Every prompt contains, in order: subject (the main thing, specific: "a luxury leather watch with gold accents", never "a watch") → descriptive detail (materials, colors, text to render) → style ("professional product photography", "flat modern illustration", "photorealistic") → technical treatment (lighting, composition, focus, "4K, highly detailed") → mood ("warm and inviting"). Add negative constraints as plain prohibitions ("no text overlay", "no watermark", "no busy background").
Decide variant strategy. If it's a throwaway draft → 1 image at
1K. If it's a keeper asset → propose 3–4 genuinely distinct prompt specs (different composition or style angle, not synonym swaps), generate 1 of each ornum_images3–4 of the winner, and have the user pick. Never present one option for a hero asset.Generate or deliver. If
FAL_API_KEY(orFAL_KEY) is set:python docs/creative_cli.py custom \ --category "<category>" --name "<asset-name>" \ --prompt "<full prompt>" \ --aspect-ratio 16:9 --resolution 2K --num-images 3Use
--web-searchonly when the image must reflect current real-world data (e.g. "2026 trends infographic"). If no key is set, deliver the prompt-spec blocks and the exact command the user can run later — do not fake results or claim images were generated.Review and iterate. Compare output to the spec's mood/style/negative constraints. Fix misses by editing the prompt (more specific subject, explicit lighting, stronger prohibitions) — there are no other model knobs. One iteration round maximum before checking in with the user.
Read references/automation.md before writing any generation command — it has
the full, verified parameter set, CLI flags, Python helpers, and output layout.
Required output format
Deliver one block per asset (this exact structure, whether or not you generate):
## Prompt Spec — [asset name]
- **Use / destination:** [where it will live]
- **Subject:** [the main thing, concretely]
- **Style:** [artistic treatment]
- **Composition:** [framing — centered / rule of thirds / negative space / overhead]
- **Lighting:** [studio / natural golden hour / dramatic rim / high-key]
- **Mood:** [2–3 adjectives]
- **Aspect ratio:** [one of 21:9 16:9 3:2 4:3 5:4 1:1 4:5 3:4 2:3 9:16] · **Resolution:** [1K/2K/4K] · **Format:** [png/jpeg/webp]
- **Negative constraints:** [what must NOT appear]
- **Prompt (final, paste-ready):**
> [single flowing prompt assembled from the fields above]
- **Variants:** [n] — [what varies between them]
- **File naming:** assets/<category>/<asset-name>/<asset_name>_<n>_<timestamp>.png (automation default)
- **Generate with:** `python docs/creative_cli.py custom --cat
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/automation.md
FAQ
Что делает скилл image-generation?
Turns any request for an AI-generated image into precise, generation-ready prompt specs and — when the FAL.ai automation is configured — the generated files themselves, using the single model fal-ai/nano-banana-pro. Use whenever the user asks to 'generate an image', 'make a picture of X', 'create a thumbnail / hero image / illustration / infographic', 'write me a prompt for this image', or any visual that isn't specifically product photography, a social-platform graphic, or a brand mark (hand those to the sibling skills). Produces one prompt-spec block per asset (subject, style, composition, lighting, mood, aspect ratio, negative constraints) plus file-naming and variant conventions, and runs docs/creative_cli.py to generate when a FAL_API_KEY is available.
Как установить скилл image-generation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл image-generation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop 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…
internal-comms
AnthropicA 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…
skill-development
AnthropicThis 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…