agentleFS
juliandickiejuliandickie/creators-studio/skills/create-image/SKILL.md

create-image

Skill3 starsChanged 8 months agoMITView on GitHub

Use when ANY request involves image creation, editing, visual asset production, slide generation, or creative direction. Triggers on: generate an image, create a photo, edit this picture, design a logo, make a banner, slide deck, social media visuals, and all /create-image commands.

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. juraj-blahunka/skills★ 5same name
    2. sujithq/skills★ 0same 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 repository4 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow this for every generation -- no exceptions:

    line 52
  2. Very specific:

    If user mentions a brand/preset: python3 ${CLAUDE_SKILL_DIR}/scripts/presets.py list.

    line 60
  3. Very specific:

    Example presets: If no presets exist, offer to install examples: ls ${CLAUDE_SKILL_DIR}/presets/ shows 12 pre-built brand guides.

    line 64
  4. Very specific:

    If user mentions a named character, product, or object, check assets: python3 ${CLAUDE_SKILL_DIR}/scripts/assets.py list.

    line 68
  5. Very specific:

    Use the 5-Component Formula: Subject → Action → Location/Context → Composition → Style (includes lighting).

    line 79
  6. Very specific:

    Call set_aspect_ratio BEFORE generating.

    line 91
  7. Very specific:

    If needed, use ImageMagick for cropping, format conversion, background removal.

    line 109
  8. Very specific:

    Never silently accept a copy_fallback result - always communicate what happened.

    line 141
  9. Distinctive:

    Always provide: image path, crafted prompt (educational), settings (model, ratio), suggestions (1-2 refinements).

    line 152
  10. Distinctive:

    Use Progressive Enhancement: Composition → Lighting → Details → Polish

    line 165
  11. Very specific:

    Default: 16:9, 4K. Use --mode background or --mode complete.

    line 180
  12. Very specific:

    Default: gemini-3.1-flash-image-preview.

    line 191
  13. Distinctive:

    After reviewing, prompt user to rate each variation (1-5).

    line 226

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Creators Studio -- Creative Director for AI Image Generation

<!-- MCP package: @ycse/nanobanana-mcp | Version managed in plugin.json --><!-- For video generation, see the /create-video skill (skills/create-video/SKILL.md) --><!-- Conflict note: This skill uses /create-image command. If original creators-studio plugin is also installed, Claude will see duplicate skills. Users must uninstall one. -->

Core Principles

  1. Creative Director -- NEVER pass raw user text to the API. Always interpret, enhance, and construct an optimized prompt.
  2. Edit First -- 90% of refinements should use gemini_edit_image or gemini_chat, not regeneration. Only regenerate when composition or concept is fundamentally wrong.
  3. Start with Intent, Refine with Specs -- Initial generation uses conceptual prompts. Follow-ups add technical specs via the PEEL strategy (Position, Expression, Environment, Lens). See references/prompt-engineering.md → Start with Intent.

Quick Reference

CommandWhat it does
/create-imageInteractive -- detect intent, craft prompt, generate
/create-image generate <idea>Full Creative Director pipeline
/create-image edit <path> <instructions>Intelligent image editing
/create-image chatMulti-turn visual session (character/style consistent)
/create-image slides [plan|prompts|generate]Slide deck pipeline
/create-image inspire [category]Browse prompt database for ideas
/create-image batch <idea> [N]Generate N variations (default: 3)
/create-image social <idea> --platforms <list>Platform-native image generation (87 sizes × 16 platforms, max-quality upload specs, 4K generation + exact-dim crop, text-rendering by default in v4.1.2+)
/create-image brandConversational brand guide builder (learn → refine → preview → save)
/create-image asset [list|show|create|delete]Manage persistent character/product/object references
/create-image reverse <image-path>Analyze image → extract 5-Component Formula prompt to recreate it
/create-image book --preset <name> [--tier quick|standard|comprehensive]Generate visual brand book (markdown + pptx + html)
/create-image setupGuided Google AI API key setup
/create-image setup replicateGuided Replicate token setup (optional fallback)
/create-image statusCheck version, installation, and API key status
/create-image updatePull latest version from GitHub
/create-image preset [list|create|show|delete]Manage brand/style presets
/create-image cost [summary|today|estimate]View cost tracking and estimates
/create-image formats <path> [--formats] [--sizes]Convert image to multiple formats/sizes
/create-image history [list|show|export|sessions]View session generation history and export gallery
/create-image ab-test <idea> [--count N]Generate Literal/Creative/Premium variations and track preferences
/create-image deck --images DIR --output PATHAssemble slide images into editable .pptx with brand styling
/create-image analytics [--format html|json] [--days 30]Usage analytics dashboard (cost trends, domain usage, quota)
/create-image content <idea> --outputs hero,social,emailMulti-modal content pipeline from a single idea
/create-image vectorize <image>v4.1.0 Convert raster image (PNG/JPG/WEBP) to scalable SVG via Recraft Vectorize ($0.01/call)

Creative Director Pipeline

Follow this for every generation -- no exceptions:

Step 1: Analyze Intent

Gather the 5-Input Creative Brief: Purpose (where used?), Audience (who for?), Subject (what?), Brand (what vibe?), References (visual examples?). If vague, ASK. See references/prompt-engineering.md → 5-Input System.

Step 2: Check for Presets

If user mentions a brand/preset: python3 ${CLAUDE_SKILL_DIR}/scripts/presets.py list. Load with show NAME. Preset values are defaults -- user instructions override. See references/presets.md for Brand Style Guide fields.

Logo handling: When you want clear space for a logo to be added later (presentation backgrounds, slide plates), never mention "logo" in the prompt AND never give that space a size, height, or boxed area -- describe the background as simply continuing, calm and uncluttered, through that region. Specifying a dimension or reserved zone makes the model render a filled rectangle (usually white) instead of continuing the background. Composite the logo in afterward. Exception: when the deliverable IS a logo (Logo domain mode or the vectorize workflow), naming "logo" or "icon" is correct.

Example presets: If no presets exist, offer to install examples: ls ${CLAUDE_SKILL_DIR}/presets/ shows 12 pre-built brand guides. Copy with: cp ${CLAUDE_SKILL_DIR}/presets/NAME.json ~/.creators-studio/presets/

Step 3: Check for Assets

If user mentions a named character, product, or object, check assets: python3 ${CLAUDE_SKILL_DIR}/scripts/assets.py list. Load with show NAME. Pass reference_images[] as inlineData parts in the API call. Append consistency_notes to the prompt. See references/asset-registry.md.

Step 4: Select Domain Mode

Choose from: Cinema, Product, Portrait, Editorial, UI/Web, Logo, Landscape, Abstract, Infographic, Presentation (Complete), Presentation (Background). See references/prompt-engineering.md → Domain Mode Modifier Libraries.

Step 5: Construct Prompt

Use the 5-Component Formula: Subject → Action → Location/Context → Composition → Style (includes lighting). Write as natural narrative prose, NEVER keyword lists. See references/prompt-engineering.md → Proven Prompt Templates.

Critical rules:

  • Text: Gemini renders text well. For a finished standalone asset (hero, banner, diagram, social post, cover), brief the literal text in with quotes and a described font, e.g. the text "wp-index" in a bold lowercase sans-serif. Suppress text ONLY for background plates meant for later overlay. See references/prompt-engineering.md -> Text Rendering Tips.
  • No negative prompts: Gemini ignores them. Frame exclusions positively ("clean, uncluttered, text-free"), never "NO text". Use ALL CAPS only to stress what TO include.
  • Don't name publications ("Vanity Fair cover," "National Geographic"). Gemini renders a literal magazine cover with masthead and gibberish headlines. Name lighting, lens, and composition instead.
  • Products: say "prominently displayed."

For batch/exploratory requests, offer Literal/Creative/Premium prompt variations.

Step 6: Set Aspect Ratio + Resolution

Call set_aspect_ratio BEFORE generating. Match ratio to use case. Default: 2K. Presentation: 16:9, 4K. See references/gemini-models.md → Aspect Ratios + Resolution Tiers.

Step 7: Call the MCP

ToolWhen
set_aspect_ratioAlways call first if ratio differs from 1:1
gemini_generate_imageNew image from prompt
gemini_edit_imageModify existing image
gemini_chatMulti-turn / iterative refinement

Fallback chain (if MCP unavailable):

  1. Direct Gemini API: python3 ${CLAUDE_SKILL_DIR}/scripts/generate.py --prompt "..."
  2. Replicate API: python3 ${CLAUDE_SKILL_DIR}/scripts/replicate_generate.py --prompt "..." For editing: use edit.py or replicate_edit.py respectively.

Step 8: Post-Processing

If needed, use ImageMagick for cropping, format conversion, background removal. See references/post-processing.md. Check tool availability first: which magick || which convert.

Step 9: Handle Errors

ErrorAction
IMAGE_SAFETYRephrase prompt (see references/prompt-engineering.md → Safety Rephrase). Max 3 attempts with user approval.
HTTP 429Wait 2s, exponential backoff, max 3 retries
HTTP 400 FAILED_PRECONDITIONBilling not enabled -- inform user
HTTP 5xxServer error -- wait 5s, retry with backoff, max 3 retries. Common during model rollouts.
Invalid API keyInform user, suggest running /create-image setup to reconfigure
MCP unavailableUse fallback chain (Step 7)
Vague requestAsk clarifying questions

Step 9.5: Handle missing-tool warnings (v4.1.0+)

Scripts may return results with method: "copy_fallback" or a top-level warning field pointing at a missing optional tool (ImageMagick, ffmpeg, cwebp, etc.). These are NOT hard errors - the API call succeeded - but they signal feature degradation.

Before running a command that will degrade, OR after seeing a copy_fallback result, present the user with a 3-option choice:

"This feature works best with <tool> installed. Without it, <describe the degradation, e.g. "output keeps the generated dimensions instead of the platform's exact pixel spec">. You have three options:

1. Install it now (~2 min): brew install <tool> 2. Proceed anyway with reduced quality 3. Cancel and revisit later

Which would you prefer?"

When to check proactively (before the call): /create-image social with platforms that have aggressive ratio shifts (9:16, 21:9, 4:1, etc.) - without ImageMagick, the dimensions won't be exact. Shell out to which magick first; if missing, prompt before generating.

When to check reactively (after the call): when a script's JSON result includes method: "copy_fallback" or warning is non-null. Surface the warning verbatim and then present the choice.

Never silently accept a copy_fallback result - always communicate what happened. See scripts/validate_setup.py for the canonical list of optional tools and what each unlocks.

Step 10: Log Cost + History

python3 ${CLAUDE_SKILL_DIR}/scripts/cost_tracker.py log --model MODEL --resolution RES --prompt "brief"
python3 ${CLAUDE_SKILL_DIR}/scripts/history.py log --prompt "full prompt" --image-path PATH --model MODEL --ratio RATIO --resolution RES --session-id SESSION_ID

Step 11: Return Results

Always provide: image path, crafted prompt (educational), settings (model, ratio), suggestions (1-2 refinements).

Quality check (internal): resolution correct, no artifacts, all elements present, text legible, mood matches brief, brand guidelines satisfied.

Editing Workflows

For /create-image edit, enhance the instruction -- don't pass raw text. "Remove background" becomes "Remove the existing background entirely, replacing with clean transparent or solid white. Preserve all edge detail and fine features like hair strands." See references/prompt-engineering.md for edit transformation patterns.

Multi-turn Chat (/create-image chat)

  1. Generate initial concept with full prompt
  2. Refine with specific, targeted changes (not full re-descriptions)
  3. Session maintains character/style consistency across turns
  4. Use Progressive Enhancement: Composition → Lighting → Details → Polish

Slide Deck Pipeline (/create-image slides)

Three-step pipeline for generating slide images from content:

Step 1 -- Plan (/create-image slides plan): Read content, divide into slides, write detailed design brief (markdown) with timestamps, transcript references, background styles, visual concepts.

Step 2 -- Prompts (/create-image slides prompts): Convert plan to Creators Studio prompts using Presentation mode + brand preset.

Step 3 -- Generate (/create-image slides generate):

python3 ${CLAUDE_SKILL_DIR}/scripts/slides.py generate --prompts slide-prompts.md --output ~/slides/
python3 ${CLAUDE_SKILL_DIR}/scripts/slides.py estimate --prompts slide-prompts.md

Default: 16:9, 4K. Use --mode background or --mode complete.

Model Routing

ScenarioModelResolution
Quick draftgemini-2.5-flash-image512/1K
Standardgemini-3.1-flash-image-preview2K
Quality/Printgemini-3.1-flash-image-preview4K
Text-heavygemini-3.1-flash-image-preview2K, thinking: high

Default: gemini-3.1-flash-image-preview. See references/gemini-models.md for full specs.

/create-image reverse

Analyze an image and extract the prompt that would recreate it. See references/reverse-prompt.md for the full 5-Component decomposition methodology.

/create-image social

Generate platform-native images at correct ratios for 87 sizes across 16 platforms (Instagram, Facebook, YouTube, LinkedIn, Twitter/X, TikTok, Pinterest, Threads, Snapchat, Google Ads, Spotify, Telegram, Signal, WhatsApp, ManyChat, BlueSky) - at max-quality upload specs, not platform minimums (v4.1.2+). See references/social-platforms.md for the full spec table. Script: python3 ${CLAUDE_SKILL_DIR}/scripts/social.py generate --prompt "..." --platforms ig-feed,yt-thumb

Default mode is --mode complete (v4.1.2+) - text-rendering is allowed. Prompts that imply text (social posts with CTAs, ads, slide titles) will render it naturally. Pass --mode image-only only when the user explicitly wants a text-free background plate - that flag appends an explicit text-suppression clause to the prompt.

For cross-channel campaigns, use group shorthands: instagram, facebook, all-feeds, all-stories, all-ads, all-profiles, all-messaging (Telegram+Signal+WhatsApp+ManyChat).

/create-image brand

Guided brand creation: gather sources → auto-extract → refine → preview → save. See references/brand-builder.md.

/create-image inspire

Browse prompt ideas by category. Load references/prompt-engineering.md → Proven Prompt Templates section. Present 3-5 templates from the requested category (or random if none specified). Show the template prompt and suggest how to customize it.

/create-image book

Generate a complete visual brand book from a preset in three formats. See references/brand-book.md for tier details and options.

python3 ${CLAUDE_SKILL_DIR}/scripts/brandbook.py generate --preset NAME --output ~/brand-book/ --tier standard

/create-image ab-test

Generate Literal/Creative/Premium prompt variations from the same brief, then rate to track preferences.

python3 ${CLAUDE_SKILL_DIR}/scripts/abtester.py generate --idea "coffee shop hero" --count 3

After reviewing, prompt user to rate each variation (1-5). Log ratings with:

python3 ${CLAUDE_SKILL_DIR}/scripts/abtester.py rate --test-id ID --ratings "1:4,2:5,3:3"

See references/ab-testing.md for variation styles and preferences tracking.

/create-image deck

Assemble generated slide images into an editable .pptx with text layers and brand styling.

python3 ${CLAUDE_SKILL_DIR}/scripts/deckbuilder.py build --images ~/slides/ --preset NAME --output deck.pptx

See references/deck-builder.md for layouts (fullbleed, standard, split) and preset integration.

/create-image analytics

Generate a self-contained HTML analytics dashboard with cost trends, model/domain usage, and quota monitoring.

python3 ${CLAUDE_SKILL_DIR}/scripts/analytics.py report --format html --output ~/analytics.html

See references/analytics.md for dashboard sections and data sources.

/create-image content

One idea → complete content package: hero image, social pack, email header, format variants.

python3 ${CLAUDE_SKILL_DIR}/scripts/content_pipeline.py plan --idea "product launch" --outputs hero,social,email,formats --preset NAME
python3 ${CLAUDE_SKILL_DIR}/scripts/content_pipeline.py generate --plan PATH

See references/content-pipeline.md for output types, dependencies, and cost estimation.

/create-image formats

Convert any generated image to multiple formats and sizes. Generate once, convert many times.

python3 ${CLAUDE_SKILL_DIR}/scripts/multiformat.py convert --input PATH --formats png,webp,jpeg --sizes 4k,2k,1k

See references/multi-format.md for size tables, format specs, and prerequisites.

/create-image vectorize

v4.1.0+. Convert a raster image (PNG/JPG/WEBP) to a scalable SVG vector via Recraft Vectorize. Closes the gap where AI-generated logos distort when scaled up.

python3 ${CLAUDE_SKILL_DIR}/scripts/vectorize.py --image ~/Documents/creators_generated/logo.png

Best-practice prompts for vectorization (apply these when user asks for a logo that will be vectorized):

  • Isolated subject on pure white or pure black background
  • Flat design, minimal gradients, limited color palette (1-5 distinct colors)
  • Explicit "logo" or "icon" language in the prompt
  • Request 1:1 aspect ratio for square logo bounds

Recraft accepts PNG/JPG/WEBP up to 5 MB, 256-4096 px per side, 16 MP max. Pricing is flat $0.01 per output image, regardless of input dimensions. Output SVG typically 50 KB to 1 MB, 128-500 vector paths.

See references/vectorize.md for the full workflow, prompt tuning, and troubleshooting.

/create-image history

View and export session generation history. Each generation is automatically logged in Step 10.

python3 ${CLAUDE_SKILL_DIR}/scripts/history.py list
python3 ${CLAUDE_SKILL_DIR}/scripts/history.py export --format md --output ~/gallery.md

See references/session-history.md for session ID management and export formats.

Setup, Status & Update

See references/setup.md for guided flows. When user runs /create-image setup, /create-image status, or /create-image update, load that reference and follow its instructions.

Reference Documentation

Load on-demand -- do NOT load all at startup:

  • references/prompt-engineering.md -- 5-Component Formula, 11 domain modes, templates, PEEL strategy, character consistency, multilingual, brand guide integration
  • references/gemini-models.md -- Model specs, resolution tables, input limits, rate limits, pricing
  • references/mcp-tools.md -- MCP tool parameters, error taxonomy
  • references/replicate.md -- Replicate backend API reference
  • references/post-processing.md -- ImageMagick/FFmpeg pipelines, green screen
  • references/cost-tracking.md -- Pricing table, usage guide
  • references/presets.md -- Brand Style Guide schema (17 fields)
  • references/social-platforms.md -- 87 image placement specs across 16 platforms (see doc for full list), max-quality upload dimensions, safe zones, non-standard ratio mappings
  • references/brand-builder.md -- Guided brand creation flow (learn → refine → preview → save)
  • references/asset-registry.md -- Persistent asset registry (characters, products, objects, environments)
  • references/reverse-prompt.md -- Image analysis → 5-Component Formula prompt extraction
  • references/brand-book.md -- Brand book generator (tiers, formats, color specs)
  • references/setup.md -- Guided API key configuration flow
  • references/multi-format.md -- Multi-format conversion (sizes, formats, ImageMagick)
  • references/session-history.md -- Session history tracking, gallery export
  • references/ab-testing.md -- A/B variation styles, rating system, preferences
  • references/deck-builder.md -- Deck assembly, layouts, preset integration, logo handling
  • references/analytics.md -- Analytics dashboard sections, data sources, chart types
  • references/content-pipeline.md -- Content pipeline output types, dependencies, cost estimation

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.