|
| 1 | +# Banana Image Generation Extension for Claude SEO |
| 2 | + |
| 3 | +Generate production-ready SEO images using AI — OG/social previews, blog heroes, |
| 4 | +product photography, infographics, and more. Powered by Google Gemini via the |
| 5 | +banana Creative Director pipeline. |
| 6 | + |
| 7 | +## Prerequisites |
| 8 | + |
| 9 | +- **Claude SEO** installed (`~/.claude/skills/seo/`) |
| 10 | +- **Node.js 18+** with npx |
| 11 | +- **Google AI API key** (free at [aistudio.google.com/apikey](https://aistudio.google.com/apikey)) |
| 12 | +- **ImageMagick** (optional, for post-processing) |
| 13 | + |
| 14 | +## Installation |
| 15 | + |
| 16 | +```bash |
| 17 | +./extensions/banana/install.sh |
| 18 | +``` |
| 19 | + |
| 20 | +The installer will: |
| 21 | +1. Verify Claude SEO is installed |
| 22 | +2. Prompt for your Google AI API key (if nanobanana-mcp not already configured) |
| 23 | +3. Install the `seo-image-gen` skill and agent |
| 24 | +4. Configure the MCP server in `~/.claude/settings.json` |
| 25 | + |
| 26 | +## Commands |
| 27 | + |
| 28 | +| Command | What it does | |
| 29 | +|---------|-------------| |
| 30 | +| `/seo image-gen og <description>` | OG/social preview image (1200x630 feel) | |
| 31 | +| `/seo image-gen hero <description>` | Blog hero image (widescreen, dramatic) | |
| 32 | +| `/seo image-gen product <description>` | Product photography (clean, white BG) | |
| 33 | +| `/seo image-gen infographic <description>` | Infographic visual (vertical, data-heavy) | |
| 34 | +| `/seo image-gen custom <description>` | Custom with full Creative Director pipeline | |
| 35 | +| `/seo image-gen batch <description> [N]` | Generate N variations (default: 3) | |
| 36 | + |
| 37 | +## Use Case Defaults |
| 38 | + |
| 39 | +| Use Case | Aspect Ratio | Resolution | Domain Mode | Cost | |
| 40 | +|----------|-------------|------------|-------------|------| |
| 41 | +| OG/Social Preview | 16:9 | 1K | Product/UI | ~$0.04 | |
| 42 | +| Blog Hero | 16:9 | 2K | Cinema/Editorial | ~$0.08 | |
| 43 | +| Product Photo | 4:3 | 2K | Product | ~$0.08 | |
| 44 | +| Infographic | 2:3 | 4K | Infographic | ~$0.16 | |
| 45 | +| Social Square | 1:1 | 1K | UI/Web | ~$0.04 | |
| 46 | +| Favicon/Icon | 1:1 | 512 | Logo | ~$0.02 | |
| 47 | + |
| 48 | +## How It Works |
| 49 | + |
| 50 | +Claude acts as a **Creative Director** — it never passes raw text to the API. |
| 51 | +Instead, it analyzes your intent, selects the optimal domain mode, and constructs |
| 52 | +an optimized prompt using a proven 6-component Reasoning Brief system: |
| 53 | + |
| 54 | +1. **Subject** (30%) — Physical specificity and micro-details |
| 55 | +2. **Style** (25%) — Camera specs, film stock, brand references |
| 56 | +3. **Context** (15%) — Location, time, weather, supporting elements |
| 57 | +4. **Action** (10%) — Pose, gesture, movement, state |
| 58 | +5. **Composition** (10%) — Shot type, framing, focal length |
| 59 | +6. **Lighting** (10%) — Direction, quality, color temperature |
| 60 | + |
| 61 | +## Post-Generation SEO Checklist |
| 62 | + |
| 63 | +After every generation, Claude provides: |
| 64 | +- Alt text suggestion (keyword-rich, descriptive) |
| 65 | +- SEO-friendly file naming convention |
| 66 | +- WebP conversion command |
| 67 | +- ImageObject schema snippet |
| 68 | +- OG meta tag markup (for social previews) |
| 69 | + |
| 70 | +## Audit Integration |
| 71 | + |
| 72 | +During `/seo audit`, the extension optionally spawns an image analysis agent that: |
| 73 | +- Audits existing OG/social images across the site |
| 74 | +- Identifies missing or low-quality images |
| 75 | +- Creates a prioritized generation plan with prompt suggestions |
| 76 | +- Estimates total cost for the generation plan |
| 77 | + |
| 78 | +The agent never auto-generates images — it produces a plan for your review. |
| 79 | + |
| 80 | +## Uninstallation |
| 81 | + |
| 82 | +```bash |
| 83 | +./extensions/banana/uninstall.sh |
| 84 | +``` |
| 85 | + |
| 86 | +This removes the skill and agent. If you also use the standalone banana skill, |
| 87 | +the MCP server config is preserved. |
| 88 | + |
| 89 | +## Troubleshooting |
| 90 | + |
| 91 | +See [docs/BANANA-SETUP.md](docs/BANANA-SETUP.md) for detailed setup instructions |
| 92 | +and common issues. |
0 commit comments