Loading...
Loading...
Compare original and translation side by side
references/gemini-models.mdreferences/prompt-engineering.mdreferences/gemini-models.mdreferences/prompt-engineering.mdreferences/prompt-engineering.mdreferences/prompt-engineering.md| Command | What it does |
|---|---|
| Interactive -- detect intent, craft prompt, generate |
| Generate image with full prompt engineering |
| Edit existing image intelligently |
| Multi-turn visual session (character/style consistent) |
| Browse prompt database for ideas |
| Generate N variations (default: 3) |
| Install MCP server and configure API key |
| Manage brand/style presets |
| View cost tracking and estimates |
| 命令 | 功能 |
|---|---|
| 交互模式 -- 识别意图、制作提示词、生成内容 |
| 采用完整提示词工程流程生成图像 |
| 智能编辑现有图像 |
| 多轮视觉会话(保持角色/风格一致性) |
| 浏览提示词数据库获取灵感 |
| 生成N个变体(默认:3个) |
| 安装MCP服务器并配置API密钥 |
| 管理品牌/风格预设 |
| 查看成本跟踪和预估 |
gemini_generate_imagereferences/gemini-models.mdreferences/prompt-engineering.mdimageSizefinishReason: IMAGE_SAFETYgemini_generate_imagereferences/gemini-models.mdreferences/prompt-engineering.mdimageSizefinishReason: IMAGE_SAFETY~/.banana/presets/python3 ${CLAUDE_SKILL_DIR}/scripts/presets.py listpresets.py show NAME~/.banana/presets/python3 ${CLAUDE_SKILL_DIR}/scripts/presets.py listpresets.py show NAME| Mode | When to use | Prompt emphasis |
|---|---|---|
| Cinema | Dramatic scenes, storytelling, mood pieces | Camera specs, lens, film stock, lighting setup |
| Product | E-commerce, packshots, merchandise | Surface materials, studio lighting, angles, clean BG |
| Portrait | People, characters, headshots, avatars | Facial features, expression, pose, lens choice |
| Editorial | Fashion, magazine, lifestyle | Styling, composition, publication reference |
| UI/Web | Icons, illustrations, app assets | Clean vectors, flat design, brand colors, sizing |
| Logo | Branding, marks, identity | Geometric construction, minimal palette, scalability |
| Landscape | Environments, backgrounds, wallpapers | Atmospheric perspective, depth layers, time of day |
| Abstract | Patterns, textures, generative art | Color theory, mathematical forms, movement |
| Infographic | Data visualization, diagrams, charts | Layout structure, text rendering, hierarchy |
| 模式 | 使用场景 | 提示词侧重点 |
|---|---|---|
| 电影 | 戏剧场景、故事叙事、情绪作品 | 相机参数、镜头、胶片类型、灯光设置 |
| 产品 | 电商、产品展示图、周边商品 | 表面材质、棚拍灯光、角度、干净背景 |
| 人像 | 人物、角色、头像、虚拟形象 | 面部特征、表情、姿势、镜头选择 |
| 社论 | 时尚、杂志、生活方式 | 造型、构图、出版物参考 |
| UI/网页 | 图标、插画、应用素材 | 干净矢量、扁平设计、品牌色、尺寸 |
| Logo | 品牌设计、标识、VI系统 | 几何结构、极简调色板、可扩展性 |
| 风景 | 环境、背景、壁纸 | 大气透视、深度层次、时间点 |
| 抽象 | 图案、纹理、生成艺术 | 色彩理论、数学形态、动感 |
| 信息图 | 数据可视化、示意图、图表 | 布局结构、文字渲染、层级关系 |
references/prompt-engineering.mdimageSize[Subject: age + appearance + expression], wearing [outfit with brand/texture],
[action verb] in [specific location + time]. [Micro-detail about skin/hair/
sweat/texture]. Captured with [camera model], [focal length] lens at [f-stop],
[lighting description]. [Prestigious context: "Vanity Fair editorial" /
"Pulitzer Prize-winning cover photograph"].[Product with brand name] with [dynamic element: condensation/splashes/glow],
[product detail: "logo prominently displayed"], [surface/setting description].
[Supporting visual elements: light rays, particles, reflections].
Commercial photography for an advertising campaign. [Publication reference:
"Bon Appetit feature spread" / "Wallpaper* design editorial"].A [art style] [format] of [subject with character detail], featuring
[distinctive characteristics] with [color palette]. [Line style] and
[shading technique]. Background is [description]. [Mood/atmosphere].A [asset type] with the text "[exact text]" in [descriptive font style],
[placement and sizing]. [Layout structure]. [Color scheme]. [Visual
context and supporting elements].references/prompt-engineering.mdreferences/prompt-engineering.mdimageSize[主体:年龄 + 外貌 + 表情],穿着[带品牌/纹理的服装],
[动作动词]在[具体位置 + 时间]。[皮肤/头发/汗水/纹理的细节描述]。使用[相机型号]拍摄,[焦距]镜头,光圈[f值],
[灯光描述]。[权威背景:"Vanity Fair editorial" /
"Pulitzer Prize-winning cover photograph"]。[带品牌名的产品]带有[动态元素:冷凝水/水花/光晕],
[产品细节:"logo prominently displayed(logo突出展示)"],[表面/场景描述]。
[辅助视觉元素:光线、粒子、反射]。
广告活动的商业摄影。[出版物参考:
"Bon Appetit feature spread" / "Wallpaper* design editorial"]。[艺术风格]的[格式],主体是[带角色细节的主体],包含
[独特特征]和[调色板]。[线条风格]和[阴影技法]。背景是[描述]。[情绪/氛围]。[素材类型],文字为"[精确文本]",使用[描述性字体风格],
[位置和尺寸]。[布局结构]。[配色方案]。[视觉背景和辅助元素]。references/prompt-engineering.mdset_aspect_ratio| Use Case | Ratio | Why |
|---|---|---|
| Social post / avatar | | Square, universal |
| Blog header / YouTube thumb | | Widescreen standard |
| Story / Reel / mobile | | Vertical full-screen |
| Portrait / book cover | | Tall vertical |
| Product shot | | Classic display |
| DSLR print / photo standard | | Classic camera ratio |
| Pinterest pin / poster | | Tall vertical card |
| Instagram portrait | | Social portrait optimized |
| Large format photography | | Landscape fine art |
| Website banner | | Ultra-wide strip |
| Ultrawide / cinematic | | Film-grade (3.1 Flash only) |
set_aspect_ratio| 使用场景 | 比例 | 原因 |
|---|---|---|
| 社交帖子/头像 | | 方形,通用 |
| 博客头图/YouTube缩略图 | | 宽屏标准 |
| 故事/短视频/移动端 | | 垂直全屏 |
| 人像/书籍封面 | | 高竖版 |
| 产品图 | | 经典展示比例 |
| 单反印刷/照片标准 | | 经典相机比例 |
| Pinterest图/海报 | | 高竖版卡片 |
| Instagram人像 | | 社交人像优化 |
| 大画幅摄影 | | 风景艺术 |
| 网站横幅 | | 超宽条 |
| 超宽/电影级 | | 电影级(仅支持3.1 Flash) |
| When to use |
|---|---|
| Quick drafts, rapid iteration |
| Budget-conscious, web thumbnails, social media |
| Default -- quality assets, most use cases |
| Print production, hero images, final deliverables |
imageSize | 使用场景 |
|---|---|
| 快速草稿、快速迭代 |
| 预算有限场景、网页缩略图、社交媒体 |
| 默认 -- 高质量素材,大部分场景适用 |
| 印刷制作、头图、最终交付物 |
imageSize| MCP Tool | When |
|---|---|
| Always call first if ratio differs from 1:1 |
| Only if switching models |
| New image from prompt |
| Modify existing image |
| Multi-turn / iterative refinement |
| Review session history |
| Reset session context |
| MCP工具 | 使用时机 |
|---|---|
| 如果比例不是1:1始终优先调用 |
| 仅切换模型时使用 |
| 根据提示词生成新图像 |
| 修改现有图像 |
| 多轮/迭代优化 |
| 查看会话历史 |
| 重置会话上下文 |
references/post-processing.mdwhich magick || which convert || echo "ImageMagick not installed -- install with: sudo apt install imagemagick"magickconvertundefinedreferences/post-processing.mdwhich magick || which convert || echo "ImageMagick not installed -- install with: sudo apt install imagemagick"magickconvertundefined
Check if `magick` (ImageMagick 7) is available. Fall back to `convert` if not.
检查是否可用`magick`(ImageMagick 7),如果不可用降级为`convert`。/banana edit| User says | Claude crafts |
|---|---|
| "remove background" | Detailed edge-preserving background removal instruction |
| "make it warmer" | Specific color temperature shift with preservation notes |
| "add text" | Font style, size, placement, contrast, readability notes |
| "make it pop" | Increase saturation, add contrast, enhance focal point |
| "extend it" | Outpainting with style-consistent continuation description |
/banana edit| 用户输入 | Claude优化后 |
|---|---|
| "remove background(移除背景)" | 详细的边缘保留背景移除指令 |
| "make it warmer(调暖一点)" | 具体的色温偏移,附带保留细节说明 |
| "add text(添加文字)" | 字体风格、尺寸、位置、对比度、可读性说明 |
| "make it pop(更有冲击力)" | 提高饱和度、增加对比度、增强焦点 |
| "extend it(扩展)" | 风格一致的外画扩展描述 |
/banana chat/banana chatgemini_chatgemini_chat/banana inspire/banana inspireprompt-engineprompt-libraryreferences/prompt-engineering.md--category [name]--model [name]--type image--random--parameters(word:1.5)prompt-engineprompt-libraryreferences/prompt-engineering.md--category [name]--model [name]--type image--random--parameters(word:1.5)/banana batch/banana batch/banana batch <idea> [N]gemini_generate_imagepython3 ${CLAUDE_SKILL_DIR}/scripts/batch.py --csv path/to/file.csv/banana batch <idea> [N]gemini_generate_imagepython3 ${CLAUDE_SKILL_DIR}/scripts/batch.py --csv path/to/file.csv| Scenario | Model | Resolution | Brief Level | When |
|---|---|---|---|---|
| Quick draft | | 512/1K | 3-component (Subject+Context+Style) | Rapid iteration, budget-conscious |
| Standard | | 2K | Full 5-component | Default -- most use cases |
| Quality | | 2K/4K | 5-component + prestigious anchors | Final assets, hero images |
| Text-heavy | | 2K | 5-component, thinking: high | Logos, infographics, text rendering |
| Batch/bulk | Any model via Batch API | 1K | 5-component | Non-urgent bulk -- 50% cost discount |
gemini-3.1-flash-image-previewset_model| 场景 | 模型 | 分辨率 | 简报层级 | 使用时机 |
|---|---|---|---|---|
| 快速草稿 | | 512/1K | 3组件(主体+背景+风格) | 快速迭代、预算有限 |
| 标准 | | 2K | 完整5组件 | 默认 -- 大部分场景 |
| 高质量 | | 2K/4K | 5组件 + 权威锚点 | 最终资产、头图 |
| 文字密集 | | 2K | 5组件,高思考度 | Logo、信息图、文字渲染 |
| 批量/大量 | 任意模型通过批量API | 1K | 5组件 | 非紧急批量 -- 成本优惠50% |
gemini-3.1-flash-image-previewset_model| Error | Resolution |
|---|---|
| MCP not configured | Run |
| API key invalid | New key at https://aistudio.google.com/apikey |
| Rate limited (429) | Wait 60s, retry with exponential backoff. Free tier: ~5-15 RPM / ~20-500 RPD |
| Output blocked -- analyze prompt for triggers, suggest 2-3 rephrased alternatives. See |
| Topic is blocked (violence, NSFW, real public figures). Non-retryable -- explain why and suggest alternative concepts. |
| Safety filter false positive | Filters are overly cautious. Rephrase using abstraction, artistic framing, or metaphor. Common: "dog" blocked → try "a friendly golden retriever in a sunny park". See |
| MCP unavailable | Fall back to direct API: |
| Vague request | Ask clarifying questions before generating |
| Poor result quality | Review Reasoning Brief -- likely too abstract. Load |
| 错误 | 解决方案 |
|---|---|
| MCP未配置 | 运行 |
| API密钥无效 | 到https://aistudio.google.com/apikey获取新密钥 |
| 速率限制(429) | 等待60秒,指数退避重试。免费层:~5-15 RPM / ~20-500 RPD |
| 输出被阻止 -- 分析提示词触发点,建议2-3个重写后的替代方案。查看 |
| 主题被阻止(暴力、NSFW、真实公众人物)。不可重试 -- 解释原因并建议替代概念。 |
| 安全过滤器误判 | 过滤器过于谨慎。使用抽象、艺术框架或隐喻重写。常见案例:"dog"被阻止 → 尝试"a friendly golden retriever in a sunny park(阳光公园里的友好金毛寻回犬)"。查看 |
| MCP不可用 | 降级为直接API: |
| 需求模糊 | 生成前询问澄清问题 |
| 结果质量差 | 检查推理简报 -- 很可能太抽象。加载 |
python3 ${CLAUDE_SKILL_DIR}/scripts/cost_tracker.py log --model MODEL --resolution RES --prompt "brief description"cost_tracker.py summarypython3 ${CLAUDE_SKILL_DIR}/scripts/cost_tracker.py log --model MODEL --resolution RES --prompt "brief description"cost_tracker.py summaryreferences/prompt-engineering.mdreferences/gemini-models.mdreferences/mcp-tools.mdreferences/post-processing.mdreferences/cost-tracking.mdreferences/presets.mdreferences/prompt-engineering.mdreferences/gemini-models.mdreferences/mcp-tools.mdreferences/post-processing.mdreferences/cost-tracking.mdreferences/presets.mdpython3 scripts/setup_mcp.pypython3 scripts/validate_setup.pypython3 scripts/setup_mcp.pypython3 scripts/validate_setup.py