image-gen
Skill424 starsChanged 2 months agoMITView on GitHub
AI image generation: Gemini and Nano Banana backends; single/series/batch workflows with prompt-to-disk.
- Reads credentials
- Installs packages
26 other projects use a version of this.
Adopted by
Most recently taken up by
- t0ddharris/compound-marketingtheir own version, first seen Oct 5, 2026
- Sma1lboy/rovetheir own version, first seen Oct 4, 2026
- tymoshenko-dmytro/marketing-agent-kittheir own version, first seen Oct 1, 2026
- suitedaces/dorabottheir own version, first seen Sep 22, 2026
- ksprashu/agent-skill-forgetheir own version, first seen Sep 10, 2026
- LocalSymmetry/lofntheir own version, first seen Aug 30, 2026
Used with
Projects with it also use video-gen, paid-ads and 2 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.
buildoakSkillvideo-gen
Video generation via fal.ai -- from quick one-off clips to multi-scene productions with keyframes, state tracking, and assembly. 10+ models including Kling 3.0, Veo 3.1, Sora 2, LTX-2.3. Two modes: light (fire-and-forget) and project (structured pipeline with gates).
Also in 3 projects that use this
silvainfmSkillpaid-ads
When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.
Also in 3 projects that use this
seedprodSkillsummarize
Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).
Also in 3 projects that use this
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 4 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- peterkrueck/Claude-Code-Development-Kit★ 1.4ksame name
- suitedaces/dorabot★ 245same name
- wpsnote/wpsnote-skills★ 179same name
- Sma1lboy/rove★ 147same name
- bozhouDev/bozhou-skills★ 78same name
- marswaveai/skills★ 78same name
- LocalSymmetry/lofn★ 23same name
- crealwork/ai-marketing-kit★ 18same name
- buildoak/fieldwork-skills★ 15same name
- claude-world/claude-agent★ 4same name
16 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 repository62 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- assessmentSkill
- dataSkill
- business-opsSkill
- code-qualitySkill
- comment-qualitySkill
- condenseSkill
- joy-checkSkill
- content-engineSkill
- contentSkill
- headlinesSkill
- image-to-videoSkill
- series-plannerSkill
- topic-brainstormerSkill
- video-editingSkill
- writingSkill
- domainSkill
- cli-designSkill
- frontendSkill
- frontend-slidesSkill
- jev-designSkill
- webgl-card-effectsSkill
- game-asset-generatorSkill
- game-devSkill
- motion-pipelineSkill
- browser-jev-automationSkill
- cve-source-checkSkill
- deploySkill
- endpoint-validatorSkill
- headless-cron-creatorSkill
- kubernetesSkill
- githubSkill
- accountsSkill
- auto-dreamSkill
- building-with-jevSkill
- codexSkill
- docs-sync-checkerSkill
- doSkill
- dSkill
- grill-jevSkill
- toolkitSkill
- workflow-helpSkill
- debuggingSkill
- plant-seedSkill
- processSkill
- pr-workflowSkill
- quickSkill
- testingSkill
- with-anti-rationalizationSkill
- workflowSkill
- worktree-agentSkill
- programmingSkill
- architecture-deepeningSkill
- codebase-analyzerSkill
- markdown-converterSkill
- news-collectionSkill
- researchSkill
- roastSkill
- video-transcriptSkill
- integration-checkerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
Write all prompts to disk before any API call.
- Distinctive: line 80
Gate: all prompt files written and reviewed.
- Distinctive: line 117
Use absolute paths for output files.
- Very specific: line 128
Use output of image 1 as --reference for image 2.
- Distinctive: line 137
Read the generated image to verify:
- Distinctive: line 139
No unwanted watermarks or artifacts
- Distinctive: line 141
No excessive padding or dark borders
- Distinctive: line 143
If inspection fails: regenerate with adjusted prompt.
“Common” is measured: kept by at least 6 in 10 of the 18 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
image-gen
Backend-agnostic image generation: single images, series with anchor-chain consistency, batch pipelines. Two backends: Gemini (API) and Nano Banana (local scripts with post-processing).
Deep References
| Signal | Load | Content |
| Gemini backend selected | references/backends/gemini.md | Models, env vars, flag table, examples, error codes |
| Nano Banana needed (post-processing, series, JSON batch, style-match) | references/backends/nano-banana.md | Subcommands, flags, aspect ratios, prompt patterns by asset type |
Phase 1: Detect Backend
python3 skills/content/image-gen/scripts/detect-backend.pygemini-- loadreferences/backends/gemini.mdask-- no key found; ask the user to setGEMINI_API_KEY
Gate: backend confirmed.
Phase 2: Write Prompt Files
Write all prompts to disk before any API call. Prompt files are the generation record and anchor-chain input for series.
File naming: single prompts/YYYY-MM-DD-{slug}.md, series prompts/{series-name}-01.md through -NN.md.
---
model: gemini-3-pro-image-preview
aspect-ratio: 1:1
flags: []
---
Full prompt text. Be explicit about subject, style, background, constraints.mkdir -p promptsFor series: write ALL prompt files before calling any generation script.
Gate: all prompt files written and reviewed.
Phase 3: Select Script
| Use case | Script | Subcommand |
| Single image, Gemini | scripts/generate_image.py | --prompt |
| Batch from text file, Gemini | scripts/generate_image.py | --batch |
| Single with post-processing | scripts/nano-banana-generate.py | generate |
| Style match from reference | scripts/nano-banana-generate.py | with-reference |
| Batch from JSON manifest | scripts/nano-banana-generate.py | batch |
| Series (anchor chain) | scripts/nano-banana-generate.py | generate then with-reference |
| Post-processing only | scripts/nano-banana-process.py | crop / remove-bg / pipeline |
Model selection:
| Scenario | Model |
| Draft, testing, batch, cost-sensitive | gemini-2.5-flash-image (2-5s) |
| Final asset, character art, typography | gemini-3-pro-image-preview (~30s) |
Aspect ratio by use case:
| Asset type | Ratio |
| Sprites, characters, icons | 1:1 |
| Card art, landscape | 16:9 |
| Vertical maps, portrait bg | 9:16 |
| Portrait cards | 3:4 |
| Wide banners | 21:9 |
Generate at the target ratio. Generating 1:1 and cropping to 16:9 loses 56% of pixels.
Gate: script and subcommand identified.
Phase 4: Generate
Use absolute paths for output files. Show full script output.
Anchor-Chain Algorithm (Series)
Character drift occurs when images are generated independently. Prevent it by passing the previous output as --reference:
image-01.png (no ref) -> image-02.png (ref=01) -> image-03.png (ref=02) -> ...- Generate image 1 with no reference.
- Use output of image 1 as
--referencefor image 2. - Continue: each image N references image N-1.
Save originals with --save-original for any batch or expensive generation. Re-processing a saved original is free; re-generating costs quota and may break the chain.
Gate: script exits 0.
Phase 5: Verify and Report
Read the generated image to verify:
- Subject matches prompt
- No unwanted watermarks or artifacts
- Aspect ratio and framing correct
- No excessive padding or dark borders
If inspection fails: regenerate with adjusted prompt. Report the issue before retrying.
Report: output file path (absolute), dimensions, model, post-processing applied, verification result. Report only what was requested.
Error Handling
| Error | Cause | Resolution |
GEMINI_API_KEY not set | Missing env var | export GEMINI_API_KEY=your_key |
No image in response | Safety filter or text-only response | Adjust prompt; remove policy-adjacent content |
Missing dependency: google-genai | Package absent | pip install google-genai pillow |
Rate limit exceeded (429) | Too many requests | Increase --delay; script retries automatically |
Content policy violation (400) | Restricted content | Rephrase using neutral language |
| Model not found | Wrong model string | Use exact strings: gemini-2.5-flash-image or gemini-3-pro-image-preview |
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.

