generate-image
Skill16 starsChanged 5 months agoMITView on GitHub
Generate images using Gemini 3 Image (Nano Banana). Use for thumbnails, carousels, infographics, social graphics, product photos.
21 other projects use a version of this.
Adopted by
Most recently taken up by
- getedgehq/skillstheir own version, first seen Oct 4, 2026
- K-Dense-AI/claude-scientific-writertheir own version, first seen Sep 29, 2026
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- maxedapps/agent-skillstheir own version, first seen Sep 24, 2026
- github/awesome-copilottheir own version, first seen Sep 23, 2026
- nc9/skillstheir own version, first seen Sep 19, 2026
Used with
Projects with it also use edit-image, scientific-slides and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SamurAIGPTSkilledit-image
Edits an existing image using natural language instructions via MuAPI. Use when the user wants to modify, change, transform, or retouch an existing image.
Also in 3 projects that use this
ZanderRussSkillscientific-slides
Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.
Also in 3 projects that use this
AnthropicSkillpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.
Also in 4 projects that use this
AnthropicSkillxlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
Also in 3 projects that use this
- +1 more from anthropics
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- github/awesome-copilot★ 40ksame name
- K-Dense-AI/claude-scientific-writer★ 2.4ksame name
- LeonChaoX/qinyan-academic-skills★ 932same name
- OpenClaudia/openclaudia-skills★ 706same name
- Sateezg/codex-bridge★ 247same name
- qinyan-ai/qinyan-academic-skills★ 80same name
- maxedapps/agent-skills★ 60same name
- echoleesong/claude-skills-plugin★ 4same name
- hxhx-win/zhuanli-flow★ 4same name
- nc9/skills★ 4same name
11 more not listed
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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyze-videoSkill
- content-preflightSkill
- content-reviewSkill
- cost-guardSkill
- create-workflowSkill
- generate-brand-assetsSkill
- generate-musicSkill
- generate-videoSkill
- generate-voiceoverSkill
- localize-contentSkill
- onboard-brandSkill
- package-contentSkill
- plan-contentSkill
- preview-pickSkill
- produce-contentSkill
- qa-reviewSkill
- repurpose-contentSkill
- revise-contentSkill
- write-copySkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 63
Do you have a character reference image in assets?
- Distinctive: line 64
Should we generate a character keyframe first?
- Very specific: line 68
Don't guess from filenames: Read the project's asset registry — it records every reusable character/product with validated paths.
- Distinctive: line 114
Solution: Use the SAME character reference image for ALL images.
- Distinctive: line 180
Never generate the product itself from text.
- Distinctive: line 295
Use character reference for image generation
- Distinctive: line 382
EVERY retry with a one-line RESULT note.
- Very specific: line 410
Never ask the image model to render typography for final slides.
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate Image
⚠️ STOP: COMPLETE THIS CHECKLIST BEFORE WRITING ANY CODE
You MUST complete ALL steps below and SHOW output to user before generating.
□ Step 0: RUN content-preflight (classify topic/visual mode, resolve required assets)
□ Step 1: ASK user "Does this image include a person/character?"
□ Step 2: Look up the character/product in the asset registry (resolveAsset) — SHOW result
□ Step 3: If a locked character asset exists → TELL user you will reuse its ref files
□ Step 4: READ project.md and brand.md templates
□ Step 5: ASK user to confirm workflow selection
□ Step 6: THEN generate using workflow functionDO NOT skip to code. DO NOT assume. SHOW each step.
CRITICAL: CALL THE WORKFLOW CLI — DO NOT WRITE A SCRIPT
DO NOT write raw API calls. DO NOT author a .cjs/.ts file that imports these
functions. RUN the workflow as a CLI command:
node workflows/cli.cjs <command> '<json-args>' # or @args.json for long promptsImage commands: generateSingleImage, generateImageVariation, generateCarousel,
generateCarouselFromRef, generateImageOptions, finalizeImage, generateStoryboard,
generateCharacterSheet, analyzeImage. Example:
node workflows/cli.cjs generateSingleImage \
'{"prompt":"...","outputPath":"projects/{name}/output-contents/thumb.png","aspectRatio":"9:16"}'For each command's argument shape: Read workflows/WORKFLOWS.md.
Expensive image (thumbnail, hero, ad, 2K/4K)? Offer the user cheap options first:
generateImageOptions()(512px) → they pick →finalizeImage()at 2K. See thepreview-pickskill. Don't blind-spend on a single high-res gen.
MANDATORY STEPS BEFORE GENERATING (DO NOT SKIP)
Step 1: Ask About Person/Character (REQUIRED)
ALWAYS ask the user:
- Does this image include a person/character?
- Yes → Need character reference OR will generate one
- No → Product-only or abstract image
- If yes, ask:
- Do you have a character reference image in assets?
- Should we generate a character keyframe first?
Step 2: Look Up Assets in the Registry (REQUIRED) - SHOW RESULTS TO USER
Don't guess from filenames. Read the project's asset registry — it records every
reusable character/product with validated paths. (Pre-flight usually populated it already;
see skills/content-preflight/SKILL.md.)
node workflows/cli.cjs loadAssetConfig '["{name}"]'
node workflows/cli.cjs resolveAsset '["{name}","char-main"]' # character id from the content plan
node workflows/cli.cjs resolveAsset '["{name}","prod-main"]'
# → { "ok": true, "existing": ["..."], "missing": [] }Then TELL the user what you found:
Asset registry (projects/{name}/config/assets.yaml):
✓ character char-main → 3 refs, locked (will reuse for consistency)
✓ product prod-main → 2 refs
Reusing char-main's reference images — not regenerating the character.char.ok === true→ passchar.existing[...]as the reference image(s). Do not re-describe or regenerate a locked character.char.ok === false→ resolve via pre-flight's provide/generate flow, thenregisterAsset(...)so it's saved for next time.- Priority: character reference > product reference when the image has a person.
Step 3: Read Project Templates (REQUIRED)
cat projects/{name}/templates/project.md
cat projects/{name}/templates/brand.mdStep 4: Read Workflow Documentation (REQUIRED)
cat workflows/WORKFLOWS.mdCHARACTER CONSISTENCY (CRITICAL)
Problem: Each image generation creates a NEW random person.
Solution: Use the SAME character reference image for ALL images.
Workflow for Character Consistency (registry-driven):
- Resolve the character from the registry:
node workflows/cli.cjs loadAssetConfig '["{name}"]' node workflows/cli.cjs resolveAsset '["{name}","char-main"]' # → { "ok": true, "existing": ["..."], "missing": [] } - If
char.ok→ reuse the SAME ref file (its validated, on-disk path):# referenceImagePath = the resolved char.existing[0] path node workflows/cli.cjs generateImageVariation '{"referenceImagePath":"projects/{name}/assets/characters/char-main-front.png","prompt":"Same person in office setting","outputPath":"projects/{name}/output-contents/image.png"}' - If not (no asset yet) → generate ONCE, then register it:
# Step 1: Generate the character keyframe one time node workflows/cli.cjs generateSingleImage '{"prompt":"Woman in her 30s, dark hair, professional attire, neutral expression, facing camera","outputPath":"projects/{name}/assets/characters/char-main-front.png","aspectRatio":"1:1","imageSize":"1K"}' # Step 2: Save to the registry so every future image/carousel reuses it node workflows/cli.cjs registerAsset '["{name}","characters",{"id":"char-main","label":"Main character","source":"generated","status":"ready","locked":true,"files":{"front":"assets/characters/char-main-front.png"}},{"date":"<today ISO>"}]' # Step 3: Use it as the reference node workflows/cli.cjs generateImageVariation '{"referenceImagePath":"projects/{name}/assets/characters/char-main-front.png","prompt":"Same person in different setting...","outputPath":"projects/{name}/output-contents/variation.png"}' - For carousels with consistent character — resolve once, pass the ref to every slide:
node workflows/cli.cjs resolveAsset '["{name}","char-main"]' # ref = char.existing[0] node workflows/cli.cjs generateCarouselFromRef '{"referenceImagePath":"projects/{name}/assets/characters/char-main-front.png","slides":[{"prompt":"Same person in scene 1"},{"prompt":"Same person in scene 2"},{"prompt":"Same person in scene 3"}],"outputDir":"projects/{name}/output-contents/carousel"}'
PRODUCT CONSISTENCY (same pattern as characters)
Products are registry assets too — resolve before generating, and register a generated product shot/mockup so it's reused (don't re-mockup the same product each time).
# Reuse an existing product reference — if ok, pass existing[0] as referenceImagePath
node workflows/cli.cjs resolveAsset '["{name}","prod-main"]' # → { "ok": true, "existing": ["..."], "missing": [] }
# After generating a NEW product image/mockup, save it for reuse:
# source: "generated" | "provided" | "mockup" (pre-launch)
node workflows/cli.cjs registerAsset '["{name}","products",{"id":"prod-main","label":"Hero product","source":"generated","status":"ready","files":["assets/products/prod-main-front.png"],"key_features":["feature 1","feature 2"]},{"date":"<today ISO>"}]'A real product you can photograph should be provided, not mockup-generated — ask for a photo first. Only
source: mockupa pre-launch product with no photo.
PRODUCT SHOTS (e-commerce) → use the preset library
For "product photo", "packshot", "listing image", "lifestyle shot", "seasonal
version", "ad variations from this photo": read
workflows/PRODUCT-SHOT-GUIDE.md first. 26 tested presets ship as the
productShot field on generateImageVariation.
The flow:
- Get the real product photo — resolve
prod-*from the registry (or ask the user for one). A messy supplier/phone photo is a fine base. Never generate the product itself from text. - Ask which channel — marketplace listing / own-site PDP / paid ads /
email-banner / Instagram. Propose the preset set from the guide's
channel table (e.g. marketplace →
pure-white-packshot+multi-angle+texture-closeup+in-hand-scale). - Draft cheap → approve → finalize sharp: iterate with
"imageModel":"lite"($0.0336), then regenerate the approved direction at"imageSize":"2K".
node workflows/cli.cjs generateImageVariation '{"referenceImagePath":"<prod-main existing[0]>","productShot":"pure-white-packshot","prompt":"The ceramic honey jar with the gold lid.","outputPath":"…/packshot-white.png","aspectRatio":"1:1","imageSize":"2K"}'The preset supplies scene + lighting + a fidelity clause (exact
shape/branding/label preserved — appended automatically); your prompt
carries only the specifics (product name, props, surface/light swaps).
QA every shot vs the reference with reviewOutput — label text and
proportions must match; marketplaces treat the image as the trust signal.
Presets involving people (model-usage, hands-*, in-hand-scale) need
"personGeneration":"allow".
REQUIRED QUESTIONS
Always ask these questions:
- Does this image include a person/character?
- Yes → Check for character reference in assets
- No → Product or abstract image
- What type of image?
- Single image →
generateSingleImage()orgenerateImageVariation() - Carousel →
generateCarousel()orgenerateCarouselFromRef()
- Single image →
- Platform? (determines aspect ratio)
- Reference images? Two kinds — resolve BOTH before writing any prompt:
- Identity refs (character/product/logo) →
resolveAssetfrom the registry; never re-describe a registered subject. - Style refs (the LOOK: past thumbnails/posts, an aesthetic the user likes) →
check
style_referencesin the registry; if none, ask once: "Any existing images/thumbnails whose style I should match?" Pass them viareferenceImagePathswith their role stated ("style only, not subject") and mirror their palette/layout in the prompt. Save + register new ones for reuse.
- Identity refs (character/product/logo) →
- For carousels: How many slides? (style refs apply to EVERY slide — one look across the set)
- Part of a series/campaign? (product-shot campaign, film keyframes, episode
art) → the project should have a locked
templates/style-block.md— prepend it verbatim to EVERY image prompt of the series. If it doesn't exist yet, create it with the user fromtemplates/style-block.template.md(variant C for product campaigns) before generating. One-off image → brand.md aesthetic is enough.
WORKFLOW SELECTION
| User Wants | Has Person? | Has Reference? | Use Workflow |
| Single image (no person) | No | No | generateSingleImage() |
| Product image | No | YES | generateImageVariation() |
| Image with person | YES | No | generateSingleImage() (generate keyframe first) |
| Image with person | YES | YES | generateImageVariation() |
| Carousel (no person) | No | No | generateCarousel() |
| Carousel with person | YES | YES | generateCarouselFromRef() |
RULE: If image has person AND character image exists → ALWAYS use character image as reference.
WORKFLOW EXAMPLES
1. Single Image (no person)
node workflows/cli.cjs generateSingleImage '{"prompt":"Smartwatch on marble surface, soft studio lighting, product photography","outputPath":"projects/my-project/output-contents/product.png","aspectRatio":"1:1","imageSize":"1K"}'2. Image Variation with Product Reference
node workflows/cli.cjs generateImageVariation '{"referenceImagePath":"projects/my-project/assets/product-watch.png","prompt":"Same product on wooden desk, morning light, minimalist setting","outputPath":"projects/my-project/output-contents/variation.png","aspectRatio":"1:1","imageSize":"1K"}'3. Image with Character Reference (RECOMMENDED for consistency)
# Use character image from assets for consistency
node workflows/cli.cjs generateImageVariation '{"referenceImagePath":"projects/my-project/assets/characters/char-main-front.png","prompt":"Same person in modern office, checking smartwatch, professional lighting","outputPath":"projects/my-project/output-contents/lifestyle.png","aspectRatio":"9:16","imageSize":"1K"}'4. Generating Character Keyframe First
# Step 1: Generate character keyframe and save to assets
node workflows/cli.cjs generateSingleImage '{"prompt":"Professional woman in her 30s, dark hair, neutral expression, business casual attire, facing camera, clean background","outputPath":"projects/my-project/assets/characters/char-main-front.png","aspectRatio":"1:1","imageSize":"1K","personGeneration":"allow"}'
# Step 2: Use keyframe for all subsequent images
node workflows/cli.cjs generateImageVariation '{"referenceImagePath":"projects/my-project/assets/characters/char-main-front.png","prompt":"Same person smiling while checking smartwatch in gym","outputPath":"projects/my-project/output-contents/gym-scene.png"}'5. Carousel with Consistent Character
# All slides use same character reference
node workflows/cli.cjs generateCarouselFromRef '{"referenceImagePath":"projects/my-project/assets/characters/char-main-front.png","slides":[{"prompt":"Same person waking up, checking watch"},{"prompt":"Same person at gym, mid-workout"},{"prompt":"Same person at office, productive"},{"prompt":"Same person relaxing at home, peaceful"}],"outputDir":"projects/my-project/output-contents/lifestyle-carousel","aspectRatio":"1:1","imageSize":"1K"}'REFERENCE IMAGE PRIORITY
When multiple assets exist, prioritize:
- Character image (if image has person) → Use for character consistency
- Product image (if product-focused) → Use for product consistency
NOTE: API supports ONE reference image per request. If you need both character AND product:
- Use character reference for image generation
- Describe product in the prompt
- Or generate separate product shots
CRITICAL: NO TEXT IN IMAGE PROMPTS (for carousels)
❌ NEVER include:
- "Text says..."
- "Caption reads..."
- "Title: 5 Tips"
✅ Only describe visuals:
- Subject and action
- Environment/setting
- Lighting and mood
- Camera angle
Text is added via design tools in post-production.
IMAGE PROMPT STRUCTURE
[SUBJECT] in [ENVIRONMENT], [LIGHTING],
[COMPOSITION/ANGLE], [STYLE], [MOOD]Example:
Professional woman checking Apple Watch in modern minimalist office,
soft natural window light, medium close-up shot,
lifestyle photography style, confident and productive moodPrompt Templates by Type
Product Shot:
[Product] in [context/setting], [lighting style],
[camera angle], professional product photography,
[aesthetic] styleLifestyle Image with Person:
[Person from reference] [using/with product] in [environment],
[natural/studio lighting], authentic [mood],
lifestyle photography, relatableThumbnail:
[Subject with expression], [background],
bold high contrast, eye-catching,
[platform] thumbnail style, 16:9COST REFERENCE
| Resolution | Cost/image |
| 1K | $0.067 |
| 2K | $0.10 |
| 4K | $0.15 |
Example: 10-slide carousel at 1K = ~$0.67
Check the budget cap BEFORE generating (the CLI hard-stops at BUDGET_EXCEEDED):
node workflows/cli.cjs checkBudget '["{name}", 0.67]' # project name + estimated costPIPELINE-FIRST + AUDIT TRAIL (MANDATORY)
- Author the pipeline before generating — even for a single image: save
<content-id>.pipeline.jsonIN the content folder (nodes = CLI commands,{{node.data.field}}refs wire outputs to inputs), thennode workflows/cli.cjs runPipeline @<file>. Seeworkflows/pipelines/README.md. - prompts.txt in every content folder — the exact image prompt(s); update on EVERY retry with a one-line RESULT note.
- Manifest — log each generation via the
createGenerationManifest/addManifestEntryCLI commands (AGENT-GUIDE Step 5).
OUTPUT
Save to: projects/{name}/output-contents/{date}/
- Single:
image.pngorthumbnail.png - Carousel:
slide-01.png,slide-02.png, etc. - Character keyframes:
projects/{name}/assets/characters/char-main-front.png
PLATFORM SPECS
| Platform | Ratio | Resolution |
| Instagram feed | 1:1 | 1080x1080 |
| Instagram portrait | 4:5 | 1080x1350 |
| Instagram story | 9:16 | 1080x1920 |
| YouTube thumbnail | 16:9 | 1280x720 |
| 1:1 | 1080x1080 | |
| 16:9 | 1200x630 |
Text on images → renderSlideStill (Remotion, $0)
Never ask the image model to render typography for final slides. Generate the
background text-free, then:
node workflows/cli.cjs renderSlideStill '{"backgroundPath":"…","headline":"…","sub":"…","footer":"…","logoPath":"…","scrim":true,"outputPath":"…"}'
(real Sora/Inter fonts, frosted scrim for busy backgrounds — see WORKFLOWS.md § Remotion).
Baked-in text → imageModel "pro" (Nano Banana Pro, 2026-07-05)
For images that must CONTAIN typography (quote cards, posters, stat cards):
generateSingleImage {..., "imageModel":"pro"} — Gemini 3 Pro Image, $0.134,
state-of-the-art text rendering. Prompt with the exact text in quotes + font
style + color + position. ALWAYS QA spelling afterward (reviewOutput). Remotion
remains the $0 option and guarantees fonts; pro wins when you want the type
integrated INTO the art (texture, perspective, lighting).
Bulk / previews → imageModel "lite" (Nano Banana 2 Lite, 2026-07-05)
For at-scale generation and cheap previews before committing to flash/pro:
generateSingleImage {..., "imageModel":"lite"} — Gemini 3.1 Flash Lite Image
(gemini-3.1-flash-lite-image), $0.0336/image flat at any size — half the cost
of flash 1K. Quality is below flash; don't use it for final hero images or
anything with typography. Ideal for /preview-pick option rounds and background
plates.
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
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.

