Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

generate-image

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when the user asks to "generate an image", "create a banner", "make artwork", "create an illustration", "generate a logo", "make a…

b-open-ioот b-open-io★ 16 звёзд на GitHub

Об этом скилле

Generate Image

Generate images with OpenAI GPT Image 2.6 (gpt-image-2.6-sunburst finals, gpt-image-2.6-flare drafts), Gemini Nano Banana Pro (gemini-3-pro-image), or xAI Grok Imagine (grok-imagine-image-2.0). Auto-pick prefers OpenAI when OPENAI_API_KEY is set; style tiles and negative prompts route to Gemini.

When to Use

Use this skill when the user asks to:

  • Generate an image from a text prompt
  • Create artwork, illustrations, or graphics
  • Generate variations of an existing image (img2img)
  • Create scenes with multiple reference images (character + location + other characters)

Style Selection

If the user hasn't specified a style, present a multi-choice question before proceeding:

How would you like to handle the art style?

  1. Pick a style - Browse 167 styles visually and choose one
  2. Let me choose - I'll suggest a style based on your prompt
  3. What are styles? - Learn how the style system works
  4. No style - Generate without a specific art style

Use the AskUserQuestion tool to present this choice.

If the user picks "Pick a style", launch the style picker (pick mode is the default):

STYLE_JSON=$(bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/browsing-styles/scripts/preview_server.ts)

The picker opens a browser. The user clicks a style, views the detail modal, clicks "Select This Style". STYLE_JSON receives the selection as JSON and the server exits. Parse the id field and pass it via --style <id> to the generate command.

If the user picks "Let me choose", select the most fitting style based on their prompt and explain why. Use the style suggestions in the "Suggest Styles to Users" section below.

If the user picks "What are styles?", explain: there are 167 curated art styles across 10 categories (traditional, digital, illustration, photography, design, retro, technique, decorative, creative, cultural). Each style includes prompt hints and a visual reference tile that gets sent to Gemini for better adherence. Then re-ask the style question.

If the user already specified a style (e.g. "generate in watercolor style"), skip this step entirely and use --style directly.

Gather Design Direction First

Ask clarifying questions before rewriting prompts to understand the user's intent:

  1. Purpose: What is the image for? (banner, logo, social media, product shot, art piece)
  2. Color palette: Any brand colors? Dark/light theme? Specific mood?
  3. Composition constraints: Aspect ratio needs? Text overlay space? Full-bleed vs bordered?
  4. Key elements: What must be included? What should be avoided?

Simple requests like "make a cat image" can proceed with sensible defaults. Complex requests like "create a banner for my app" require clarification to avoid iteration waste.

Prompt Rewriting (Critical)

Before generating any image, always rewrite the user's prompt using the guide in references/prompt-guide.md.

The core principle: "Describe the scene, don't just list keywords."

Rewriting Checklist

Transform simple prompts by adding:

  1. Subject details: Specific appearance, clothing, expression, materials
  2. Environment/Setting: Location, time of day, weather, indoor/outdoor
  3. Lighting: Natural/artificial, direction, quality, color temperature
  4. Composition: Camera angle, distance, framing, focal length
  5. Style/Aesthetic: Photorealistic, illustration style, art movement
  6. Mood/Atmosphere: Emotional tone, color palette mood
  7. Technical specs: Aspect ratio, level of detail, textures

Example Transformation

User says: "banner for my app" Rewritten prompt: "A modern, full-bleed banner for a technology application. Dark gradient background transitioning from deep navy to black. Abstract geometric network visualization with glowing nodes connected by thin lines. Clean sans-serif typography positioned left of center. Professional, tech-forward aesthetic with no visible borders or edges - the design extends seamlessly to all edges. 16:9 aspect ratio."

User says: "a cat" Rewritten prompt: "A fluffy orange tabby cat lounging on a sun-drenched windowsill, soft afternoon light creating a warm glow on its fur. The cat is in a relaxed pose with half-closed eyes, conveying contentment. Shot from a low angle with shallow depth of field, the background showing a blurred garden view. Photorealistic, warm color palette."

Recommended Workflow

Draft → Iterate → Final approach saves time and API costs:

  1. Draft Phase (1K): Generate quickly at default resolution to test prompts
  2. Iteration Phase: Refine prompts incrementally, creating new files each attempt
  3. Final Phase (4K): Only produce high-res output after prompt is validated

Do not read the image back - the script outputs only the file path. This allows efficient iteration without Claude loading large image data.

Usage

bun run --c
Полный SKILL.md на GitHub

Установить generate-image в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.clawnet/unsigned-skill.jsonreferences/prompt-guide.mdscripts/generate.ts

FAQ

Что делает скилл generate-image?

This skill should be used when the user asks to "generate an image", "create a banner", "make artwork", "create an illustration", "generate a logo", "make a graphic", "design a header", "AI art", "img2img", "social share image", "OG image", "open graph image", "Twitter card", "hero image", "cover photo", "profile picture", "social media graphic", or needs AI image generation. Handles prompt rewriting and multi-provider image generation: OpenAI GPT Image 2.6 (default when OPENAI_API_KEY is set), Gemini Nano Banana Pro, and xAI Grok Imagine.

Как установить скилл generate-image?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл generate-image запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить generate-image с