plugins/nanobanana/skills/gemini-api/SKILL.md
Google Gemini 3 Pro Image API reference. Covers text-to-image, editing, reference images, aspect ratios, and error handling.
npx skillsauth add madappgang/magus gemini-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
plugin: nanobanana updated: 2026-01-20
# Set API key
export GEMINI_API_KEY="your-key"
# Generate image
uv run python main.py output.png "A minimal 3D cube"
export GEMINI_API_KEY="your-api-key"
| Model | Resolution | Best For | |-------|------------|----------| | gemini-3-pro-image-preview | Up to 4K | High quality | | gemini-2.5-flash-image | Up to 1K | Quick iterations |
| Ratio | Use Case | |-------|----------| | 1:1 | Social media, icons | | 3:4 | Portrait photos | | 4:3 | Traditional photos | | 4:5 | Instagram portrait | | 5:4 | Landscape photos | | 9:16 | Mobile, stories | | 16:9 | YouTube, desktop | | 21:9 | Cinematic, ultrawide |
| Flag | Description | Example |
|------|-------------|---------|
| --style | Apply style template | --style styles/glass.md |
| --edit | Edit existing image | --edit photo.jpg |
| --ref | Reference image | --ref style.png |
| --aspect | Aspect ratio | --aspect 16:9 |
| --model | Model ID | --model gemini-2.5-flash-image |
| --max-retries | Retry attempts | --max-retries 5 |
| Code | Meaning | Recovery |
|------|---------|----------|
| SUCCESS | Operation completed | N/A |
| API_KEY_MISSING | GEMINI_API_KEY not set | Export the variable |
| FILE_NOT_FOUND | Referenced file missing | Check path |
| INVALID_INPUT | Bad prompt or argument | Fix input |
| RATE_LIMITED | Too many requests | Wait, uses auto-retry |
| NETWORK_ERROR | Connection failed | Check network, auto-retry |
| API_ERROR | Gemini API error | Check logs |
| CONTENT_POLICY | Blocked prompt | Adjust content |
| TIMEOUT | Request timed out | Retry |
| PARTIAL_FAILURE | Some batch items failed | Check individual results |
The script automatically retries on transient errors:
Retry uses exponential backoff: 1s, 2s, 4s, 8s, etc.
Maximum retries configurable with --max-retries (default: 3)
--max-retries for unreliable connectionstesting
A test skill for validation testing. Use when testing skill parsing and validation logic.
tools
--- name: bad-skill description: This skill has invalid YAML in frontmatter allowed-tools: [invalid, array, syntax prerequisites: not-an-array --- # Bad Skill This skill has malformed frontmatter that should fail parsing. The YAML has: - Unclosed array bracket - Wrong type for prerequisites (should be array, not string)
development
Sync model aliases from the curated Firebase database. Fetches default model assignments, short aliases, team compositions, and known model metadata from the claudish API. Run this to get fresh model recommendations.
tools
Release one or more Magus plugins to the distribution repos (magus, magus-alpha, magus-marketing). Handles version inference from git history, marketplace.json updates, tagging, and force-push to lean dist repos. Use whenever the user says "release kanban", "release the dev plugin", "cut a new version of gtd", "bump kanban to 1.7", or hands you a batch like "release kanban and gtd". Also use for multi-plugin releases and for checking what a release would contain before committing.