image-gen
Skill444 starsChanged 9 days agoMITView on GitHub
AI image generation: Gemini and Nano Banana backends; single/series/batch workflows with prompt-to-disk.
- Reads credentials
- Installs packages
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 31 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 31 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 |
Other versions45 projects use a version of this.
Word for word · 1
- notque/vexjoy-agent★ 444100% same
Edited · 0
None found.
Wrote their own version · 44
- ethereum/ethereum-org-website★ 6ksame name
- fastclaw-ai/fastclaw★ 1.4ksame name
- fuyuxiang/echo-agent★ 1.1ksame name
- QuixiAI/agi-memory★ 623same name
- QuixiAI/Hexis★ 617same name
- suitedaces/dorabot★ 247same name
- wpsnote/wpsnote-skills★ 184same name
- Sma1lboy/rove★ 181same name
- microsoft/Huabu★ 168same name
- different-ai-studio/teamclaw★ 128same name
34 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.
Used alongsideProjects with it also use spotify, daily-briefing and 7 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.
QuixiAISkillspotify
Search Spotify, inspect current playback and devices, and control playback with explicit approval
Also in 3 projects that use this
AnthropicSkilldaily-briefing
Morning rundown - today's meetings with account context, opps closing soon with stale flags, waiting customer emails, and the day's top actions. Use when the user says "daily briefing", "daily brief", "morning briefing", "what's my day", "what's on my plate today", "prep my day", "start my day", "morning rundown", or on a schedule.
Also in 4 projects that use this
jacobraskSkillcalendar
Interact with Apple Calendar via AppleScript. Use when the user asks to check calendar, view events, create events, manage schedule, find free time, or list calendars. Triggers include "my calendar", "my schedule", "calendar events", "create event", "add to calendar", "what's on my calendar", "free time", "available slots", "upcoming events", "today's events". Requires macOS with Calendar.app.
Also in 3 projects that use this
QuixiAISkilltrello
List Trello boards, lists, and cards and create or update cards with explicit approval
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
AnthropicSkillweather
The optional standing status report ("the weather"): compile open incidents, build health, merge-queue stats, and deploy lag into one always-current report page, and post to the channel only when a defined event fires. Use when the weather routine fires, or when someone asks to run/update the weather report.
Also in 4 projects that use this
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 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
- game-trailerSkill
- 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
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

