image_generation
AI图像生成与编辑能力,基于 Nano Banana (Gemini Image) 实现文生图、图生图、图像编辑。适用于创意设计、营销素材、社交媒体内容、演示文稿配图等场景。支持多种风格、高分辨率输出(最高4K)、文字渲染、角色一致性保持。
npx skills add majiayu000/claude-skill-registry --skill image-generation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## 能力概述 AI图像生成能力让你能够: - **文生图**:根据文字描述生成图像 - **图生图**:基于参考图像生成新图像 - **图像编辑**:修改现有图像的特定部分 - **风格转换**:改变图像风格(写实、动漫、油画等) - **文字渲染**:在图像中生成清晰可读的文字 底层基于 Google Gemini 的 Nano Banana / Nano Banana Pro 模型。 ## 工作流程 ### Phase 1: 需求理解 1. 理解用户的图像需求(主题、风格、用途) 2. 确认输出格式(尺寸、分辨率、数量) 3. 如有参考图,确认编辑意图 ### Phase 2: Prompt 构建 1. 将用户意图转化为英文 Prompt(效果更好) 2. 遵循 Prompt 公式:`<subject> <action> <scene> <style> <quality>` 3. 补充必要的细节描述 ### Phase 3: 图像生成 1. 调用 `generate_image` 工具 2. 如需编辑,调用 `edit_image` 工具 3. 生成多个候选(如用户需要选择) ### Phase 4: 交付 1. 展示生成结果 2. 询问是否需要调整 3. 保存到用户指定位置 ## 工具使用 ### generate_image - **用途**:根据文字描述生成图像 - **参数**: - `prompt`: 图像描述(英文效果更佳) - `style`: 风格预设(realistic, anime, oil_painting, watercolor, minimal, cinematic) - `aspect_ratio`: 宽高比(1:1, 16:9, 9:16, 4:3, 3:4) - `resolution`: 分辨率(1K, 2K, 4K) - `num_images`: 生成数量(1-4) - **示例**: ```python generate_image( prompt="A majestic horse galloping through cherry blossoms, golden hour lighting, Chinese New Year festive atmosphere", style="realistic", aspect_ratio="16:9", resolution="2K", num_images=2 ) ``` ### edit_image - **用途**:编辑现有图像 - **参数**: - `image_path`: 原图路径或URL - `prompt`: 编辑指令(如:"将背景改为夜景") - `preserve_subject`: 是否保持主体不变(默认True) - **示例**: ```p
- 能力概述
- 工作流程
- Phase 1: 需求理解
- Phase 2: Prompt 构建
- Phase 3: 图像生成
- Phase 4: 交付
- 工具使用
- generateimage
- editimage
- Prompt 最佳实践
- 基础公式
- 风格关键词
- 质量增强词
- 避免事项
What does the image_generation skill do?
AI图像生成与编辑能力,基于 Nano Banana (Gemini Image) 实现文生图、图生图、图像编辑。适用于创意设计、营销素材、社交媒体内容、演示文稿配图等场景。支持多种风格、高分辨率输出(最高4K)、文字渲染、角色一致性保持。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill image-generation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
