seo-image-gen
它能做什么
这项技能帮助你的智能体制作用于搜索和社交分享的图片,例如预览卡片、博客头图和信息图。适合需要为页面准备视觉素材的网站所有者和营销人员。
适用场景
- ✓当你需要一张页面的 Open Graph 图片,用于在社交媒体分享时显示的时候。
- ✓当你想为一篇新文章制作博客头图的时候。
- ✓当你想为网页生成信息图或产品图片的时候。
技能链接
https://github.com/AgriciDaniel/claude-seo/blob/main/extensions/banana/skills/seo-image-gen/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我关于健康早餐的新博客文章制作一张 1200 乘 630 的社交预览图。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能为 SEO 用途选择合适的图片尺寸和风格,然后通过 banana 扩展把请求发送给 Gemini 图像工具。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
SEO Image Gen: AI Image Generation for SEO Assets (Extension)
Generate production-ready images for SEO use cases using Gemini's image generation via the banana Creative Director pipeline. Maps SEO needs to optimized domain modes, aspect ratios, and resolution defaults.
Architecture Note
This extension is built on Claude Banana, the standalone AI image generation skill for Claude Code.
This skill has two components with distinct roles:
- SKILL.md (this file): Handles interactive
/seo image-gencommands for generating images - Agent (
agents/seo-image-gen.md): Audit-only analyst spawned during/seo auditto assess existing OG/social images and produce a generation plan (never auto-generates)
Prerequisites
This skill requires the banana extension to be installed:
./extensions/banana/install.sh
Check availability: Before using any image generation tool, verify the MCP server
is connected by checking if gemini_generate_image or set_aspect_ratio tools are
available. If tools are not available, inform the user the extension is not installed
and provide install instructions.
Quick Reference
| Command | What it does |
|---|---|
/seo image-gen og <description> |
Generate OG/social preview image (1200x630 feel) |
/seo image-gen hero <description> |
Blog hero image (widescreen, dramatic) |
/seo image-gen product <description> |
Product photography (clean, white BG) |
/seo image-gen infographic <description> |
Infographic visual (vertical, data-heavy) |
/seo image-gen custom <description> |
Custom image with full Creative Director pipeline |
/seo image-gen batch <description> [N] |
Generate N variations (default: 3) |
SEO Image Use Cases
Each use case maps to pre-configured banana parameters:
| Use Case | Aspect Ratio | Resolution | Domain Mode | Notes |
|---|---|---|---|---|
| OG/Social Preview | 16:9 |
1K |
Product or UI/Web | Clean, professional, text-friendly |
| Blog Hero | 16:9 |
2K |
Cinema or Editorial | Dramatic, atmospheric, editorial quality |
| Schema Image | 4:3 |
1K |
Product | Clean, descriptive, schema ImageObject |
| Social Square | 1:1 |
1K |
UI/Web | Platform-optimized square |
| Product Photo | 4:3 |
2K |
Product | White background, studio lighting |
| Infographic | 2:3 |
4K |
Infographic | Data-heavy, vertical layout |
| Favicon/Icon | 1:1 |
512 |
Logo | Minimal, scalable, recognizable |
| Pinterest Pin | 2:3 |
2K |
Editorial | Tall vertical card |
Generation Pipeline
For every generation request:
- Identify use case from command or context (og, hero, product, etc.)
- Apply SEO defaults from the use cases table above
- Set aspect ratio via
set_aspect_ratioMCP tool - Construct Reasoning Brief using the banana Creative Director pipeline:
- Use
${CLAUDE_SKILL_DIR}as the installed skill root - Load
${CLAUDE_SKILL_DIR}/references/prompt-engineering.mdfor the 6-component system - Apply domain mode emphasis (Subject 30%, Style 25%, Context 15%, etc.)
- Be SPECIFIC and VISCERAL: describe what the camera sees
- Use
- Generate via
gemini_generate_imageMCP tool - Post-generation SEO checklist (see below)
Check for Presets
If the user mentions a brand or has SEO presets configured:
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run --extension banana presets.py list
Load matching preset and apply as defaults. Also check ${CLAUDE_SKILL_DIR}/references/seo-image-presets.md
for SEO-specific preset templates.
Post-Generation SEO Checklist
After every successful generation, guide the user on:
- Alt text: Write descriptive alt text that names the subject of the generated image
- File naming: Rename to SEO-friendly format:
keyword-description-widthxheight.webp - WebP conversion: Convert to WebP for optimal page speed:
magick output.png -quality 85 output.webp - File size: Target under 200KB for hero images, under 100KB for thumbnails
- Schema markup: Suggest
ImageObjectschema for the generated image:{ "@type": "ImageObject", "url": "https://example.com/images/keyword-description.webp", "width": 1200, "height": 630, "caption": "Descriptive caption with target keyword" } - OG meta tags: For social previe
常见问题
我需要先安装什么吗?
需要。必须安装 banana 扩展;如果其图像工具不可用,该技能会告诉你如何安装。
它也能检查现有的社交图片吗?
只能在审计步骤中。一个单独的分析助手会审查现有图片并制定计划,但不会自动生成它们。
它能制作哪些类型的图片?
它能制作 OG 和社交预览图、博客头图、结构化数据图片、产品照片和信息图。
详情
作者的原始描述
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 the user wants an SEO asset and says \"OG image\", \"social preview\", \"hero image\", \"blog image\", \"product photo\", \"infographic\", \"seo image\", \"image-gen\", \"favicon\", \"schema image\", or \"pinterest pin\". Not for general artwork, banners, or thumbnails unrelated to SEO.
repo: AgriciDaniel/claude-seo
热度
- GitHub 星标
- 26k
- 排名
- #9990
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
seo-ahrefs
26k让你的智能体获取网站的实时 Ahrefs 数据,包括反向链接、引荐域名、自然关键词和内容创意。需要 Ahrefs API 令牌。
seo-bing
26k帮你的智能体检查 Bing Webmaster Tools 数据,并通过 IndexNow 提交新页面网址,帮助 Bing 发现你的页面。
seo-dataforseo
26k让你的智能体从 DataForSEO 获取实时 SEO 数据,例如搜索结果、关键词搜索量、反向链接和 AI 提及情况。每次调用都会由服务商计费。
seo-firecrawl
26k让你的智能体使用 Firecrawl 抓取整个网站、列出页面,或抓取单个页面,包括由 JavaScript 加载的内容。需先安装扩展。