{"success":true,"name":"seo-image-gen","description":"AI image generation for SEO assets: OG/social preview images, blog hero images, schema images, product photography, infographics. Powered by Gemini via nanobanana-mcp. Requires banana extension installed. Use when user says \\\"generate image\\\", \\\"OG image\\\", \\\"social preview\\\", \\\"hero image\\\", \\\"blog image\\\", \\\"product photo\\\", \\\"infographic\\\", \\\"seo image\\\", \\\"create visual\\\", \\\"image-gen\\\", \\\"fav","category":"unitary","path":"unitary/seo-image-gen/SKILL.md","file":"SKILL.md","content":"---\nname: seo-image-gen\ndescription: \"AI image generation for SEO assets: OG/social preview images, blog hero images, schema images, product photography, infographics. Powered by Gemini via nanobanana-mcp. Requires banana extension installed. Use when user says \\\"generate image\\\", \\\"OG image\\\", \\\"social preview\\\", \\\"hero image\\\", \\\"blog image\\\", \\\"product photo\\\", \\\"infographic\\\", \\\"seo image\\\", \\\"create visual\\\", \\\"image-gen\\\", \\\"favicon\\\", \\\"schema image\\\", \\\"pinterest pin\\\", \\\"generate visual\\\", \\\"banner\\\", or \\\"thumbnail\\\".\"\nargument-hint: \"[og|hero|product|infographic|custom|batch] <description>\"\nuser-invocable: true\nlicense: MIT\ncompatibility: \"Requires nanobanana MCP server\"\nmetadata:\n  author: AgriciDaniel\n  version: \"2.3.1\"\n  category: seo\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/artisto/skills-off/claude-seo-rest/seo-image-gen`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# SEO Image Gen: AI Image Generation for SEO Assets (Extension)\n\nGenerate production-ready images for SEO use cases using Gemini's image generation\nvia the banana Creative Director pipeline. Maps SEO needs to optimized domain modes,\naspect ratios, and resolution defaults.\n\n## Architecture Note\n\nThis extension is built on [Claude Banana](https://github.com/AgriciDaniel/banana-claude),\nthe standalone AI image generation skill for Claude Code.\n\nThis skill has two components with distinct roles:\n- **SKILL.md** (this file): Handles interactive `/seo image-gen` commands for generating images\n- **Agent** (`agents/seo-image-gen.md`): Audit-only analyst spawned during `/seo audit` to assess existing OG/social images and produce a generation plan (never auto-generates)\n\n## Prerequisites\n\nThis skill requires the banana extension to be installed:\n```bash\n./extensions/banana/install.sh\n```\n\n**Check availability:** Before using any image generation tool, verify the MCP server\nis connected by checking if `gemini_generate_image` or `set_aspect_ratio` tools are\navailable. If tools are not available, inform the user the extension is not installed\nand provide install instructions.\n\n## Quick Reference\n\n| Command | What it does |\n|---------|-------------|\n| `/seo image-gen og <description>` | Generate OG/social preview image (1200x630 feel) |\n| `/seo image-gen hero <description>` | Blog hero image (widescreen, dramatic) |\n| `/seo image-gen product <description>` | Product photography (clean, white BG) |\n| `/seo image-gen infographic <description>` | Infographic visual (vertical, data-heavy) |\n| `/seo image-gen custom <description>` | Custom image with full Creative Director pipeline |\n| `/seo image-gen batch <description> [N]` | Generate N variations (default: 3) |\n\n## SEO Image Use Cases\n\nEach use case maps to pre-configured banana parameters:\n\n| Use Case | Aspect Ratio | Resolution | Domain Mode | Notes |\n|----------|-------------|------------|-------------|-------|\n| **OG/Social Preview** | `16:9` | `1K` | Product or UI/Web | Clean, professional, text-friendly |\n| **Blog Hero** | `16:9` | `2K` | Cinema or Editorial | Dramatic, atmospheric, editorial quality |\n| **Schema Image** | `4:3` | `1K` | Product | Clean, descriptive, schema ImageObject |\n| **Social Square** | `1:1` | `1K` | UI/Web | Platform-optimized square |\n| **Product Photo** | `4:3` | `2K` | Product | White background, studio lighting |\n| **Infographic** | `2:3` | `4K` | Infographic | Data-heavy, vertical layout |\n| **Favicon/Icon** | `1:1` | `512` | Logo | Minimal, scalable, recognizable |\n| **Pinterest Pin** | `2:3` | `2K` | Editorial | Tall vertical card |\n\n## Generation Pipeline\n\nFor every generation request:\n\n1. **Identify use case** from command or context (og, hero, product, etc.)\n2. **Apply SEO defaults** from the use cases table above\n3. **Set aspect ratio** via `set_aspect_ratio` MCP tool\n4. **Construct Reasoning Brief** using the banana Creative Director pipeline:\n   - Load `references/prompt-engineering.md` for the 6-component system\n   - Apply domain mode emphasis (Subject 30%, Style 25%, Context 15%, etc.)\n   - Be SPECIFIC and VISCERAL: describe what the camera sees\n5. **Generate** via `gemini_generate_image` MCP tool\n6. **Post-generation SEO checklist** (see below)\n\n### Check for Presets\n\nIf the user mentions a brand or has SEO presets configured:\n```bash\n# Use the installed Banana MCP/tool configuration to list presets.\n```\nLoad matching preset and apply as defaults. Also check `references/seo-image-presets.md`\nfor SEO-specific preset templates.\n\n## Post-Generation SEO Checklist\n\nAfter every successful generation, guide the user on:\n\n1. **Alt text**:Write descriptive, keyword-rich alt text for the generated image\n2. **File naming**:Rename to SEO-friendly format: `keyword-description-widthxheight.webp`\n3. **WebP conversion**:Convert to WebP for optimal page speed:\n   ```bash\n   magick output.png -quality 85 output.webp\n   ```\n4. **File size**:Target under 200KB for hero images, under 100KB for thumbnails\n5. **Schema markup**:Suggest `ImageObject` schema for the generated image:\n   ```json\n   {\n     \"@type\": \"ImageObject\",\n     \"url\": \"https://example.com/images/keyword-description.webp\",\n     \"width\": 1200,\n     \"height\": 630,\n     \"caption\": \"Descriptive caption with target keyword\"\n   }\n   ```\n6. **OG meta tags**:For social preview images, remind about:\n   ```html\n   <meta property=\"og:image\" content=\"https://example.com/images/og-image.webp\" />\n   <meta property=\"og:image:width\" content=\"1200\" />\n   <meta property=\"og:image:height\" content=\"630\" />\n   <meta property=\"og:image:alt\" content=\"Descriptive alt text\" />\n   ```\n\n## Cost Awareness\n\nImage generation costs money. Be transparent:\n- Show estimated cost before generating (especially for batch)\n- Log every generation in the installed Banana MCP/tool ledger when available\n- Use the installed Banana MCP/tool usage summary if user asks about usage\n\nApproximate costs:\n- Verify current pricing in the installed MCP/tool configuration before quoting\n\n## Model Routing\n\n| Scenario | Model | Why |\n|----------|-------|-----|\n| OG images, social previews | Installed MCP/tool default @ 1K | Fast, cost-effective |\n| Hero images, product photos | Installed MCP/tool quality model @ 2K | Quality + detail |\n| Infographics with text | Installed MCP/tool text-capable model @ 2K, thinking: high if supported | Better text rendering |\n| Quick drafts | Installed MCP/tool draft model @ 512 | Rapid iteration |\n\n## Error Handling\n\n| Error | Resolution |\n|-------|-----------|\n| MCP not configured | Run `./extensions/banana/install.sh` |\n| API key invalid | New key at https://aistudio.google.com/apikey |\n| Rate limited (429) | Wait 60s, retry. Free tier: ~10 RPM / ~500 RPD |\n| `IMAGE_SAFETY` | Rephrase prompt - see `references/prompt-engineering.md` Safety section |\n| MCP unavailable | Configure MCP with `./extensions/banana/install.sh`; claude-seo does not vendor a local generation fallback script |\n| Extension not installed | Show install instructions: `./extensions/banana/install.sh` |\n\n## Cross-Skill Integration\n\n- **seo-images** (analysis) feeds into **seo-image-gen** (generation): audit results from `/seo images` identify missing or low-quality images; use those findings to drive `/seo image-gen` commands\n- **seo-audit** spawns the seo-image-gen **agent** (not this skill) to analyze OG/social images across the site and produce a prioritized generation plan\n- **seo-schema** can consume generated images: after generation, suggest `ImageObject` schema markup pointing to the new assets\n\n## Reference Documentation\n\nLoad on-demand. Do NOT load all at startup:\n- `references/prompt-engineering.md`:6-component system, domain modes, templates\n- `references/gemini-models.md`:Model specs, rate limits, capabilities\n- `references/mcp-tools.md`:MCP tool parameters and responses\n- `references/post-processing.md`:ImageMagick/FFmpeg pipeline recipes\n- `references/cost-tracking.md`:Pricing, usage tracking\n- `references/presets.md`:Brand preset management\n- `references/seo-image-presets.md`:SEO-specific preset templates\n\n## Response Format\n\nAfter generating, always provide:\n1. **Image path**:where it was saved\n2. **Crafted prompt**:show what was sent to the API (educational)\n3. **Settings**:model, aspect ratio, resolution\n4. **SEO checklist**:alt text suggestion, file naming, WebP conversion\n5. **Schema snippet**:ImageObject or og:image markup if applicable\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}