mcpField
A
ads-photoshoot

ads-photoshoot

github.com/hainrixz创意与媒体10262 次安装2 天前更新
代码仓库

关于 ads-photoshoot

ads-photoshoot 是用于生成广告产品摄影图的技能,适合需要为产品制作创意素材的团队。它根据产品图片或描述生成五种风格,并可输出方形和竖版尺寸。

主要功能

  1. 01支持五种产品摄影风格
  2. 02接受图片、链接或文字描述
  3. 03生成方形与竖版图片
  4. 04可注入品牌资料
  5. 05按平台和风格组织输出

适用场景

  1. 01为社交广告制作产品图片
  2. 02为 TikTok 和 Reels 制作竖版素材
  3. 03按品牌配色生成创意图

MCP 相关

依赖 nanobanana-mcp,通过 banana MCP 设置宽高比,并调用图像生成流程创建图片。

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/hainrixz/claude-ads --skill ads-photoshoot

安装后在 Claude Code 中输入/ads-photoshoot确认已加载。

详细介绍

广告拍摄:AI 产品摄影

将产品图片或描述转换为专业、可用于广告的摄影作品,共提供 5 种不同的视觉风格。每种风格生成两种尺寸:1:1(Meta/LinkedIn)和 9:16(TikTok/Reels/Stories)。

快速参考

命令功能
/ads photoshoot交互式操作:询问产品和风格
/ads photoshoot --styles studio floating仅生成选定的风格
/ads photoshoot --product shoe.jpg从产品图片文件开始
/ads photoshoot --all-platforms为每种风格生成全部 5 种尺寸

环境设置

需要已配置 nanobanana-mcp 的 banana-claude(v1.4.1+)。 运行 /banana setup 配置 API 密钥和 MCP。

流程

第 1 步:收集产品信息

询问(合并为一条消息):

  1. 产品图片:产品图片文件的路径(本地)、产品 URL 或文字描述

    “请提供产品图片路径(例如 ./product.jpg)、URL,或描述您的产品”

  2. 产品描述:这是什么产品?有哪些值得重点展示的特点?(有助于提升提示词质量)
  3. 要生成的风格:选择 5 种风格中的哪些?(默认:全部 5 种)
    • Studio、Floating、Ingredient、In Use、Lifestyle
  4. 目标平台:这些图片将用于哪些平台?
    • 用于确定输出尺寸(默认:Meta + TikTok → 1:1 + 9:16)
第 2 步:加载品牌资料(可选)

检查当前目录中是否存在 brand-profile.json。

如果存在,提取以下内容用于风格注入:

  • colors.primary → 注入背景和强调元素
  • aesthetic.mood_keywords → 注入作为氛围描述词
  • target_audience → 用于 Lifestyle 和 In Use 场景
  • imagery.forbidden → 从所有提示词中排除

如果不存在,则使用标准风格模板。

第 3 步:验证 banana-claude

验证是否已安装 banana-claude(运行 /banana setup 进行检查)。如果未安装, 显示设置说明并退出。

第 4 步:为每种风格构建提示词

对每种选定的风格,使用模板 + 产品描述 + 品牌 DNA 构建提示词。

风格 1:Studio

简洁的电商风格产品照。

基础模板:

"[product description], professional product photography, clean white seamless
background, even studio lighting, soft drop shadow, high detail product focus,
ecommerce style, [brand.colors.primary] subtle accent reflections if applicable,
top-down or 3/4 angle, no distractions, catalog quality"

**构图:**居中,采用轻微的 3/4 角度或平铺拍摄。 **输出尺寸:**1080×1080、1080×1920

风格 2:Floating

戏剧性的悬浮效果。

基础模板:

"[product description] floating in mid-air, dramatic floating product shot,
[brand.colors.primary or brand.aesthetic.mood_keywords[0]] gradient background,
atmospheric shadow below product, levitation effect, product defying gravity,
clean modern aesthetic, high contrast, striking visual"

**构图:**产品垂直居中,上下留出充足空间。 **输出尺寸:**1080×1080、1080×1920

风格 3:Ingredient

包含产品成分的平铺拍摄。

基础模板:

"[product description] centered flat lay, surrounded by its key ingredients
or materials artfully arranged, top-down overhead view, clean light background,
natural texture surface, product as hero element, ingredients scattered with
intentional negative space, editorial food photography style"

**构图:**俯拍,产品居中,成分向四周展开。 **输出尺寸:**1080×1080(此风格的最佳尺寸)。同时生成 9:16 竖版图片,用于 TikTok/Reels/Stories 展示。

风格 4:In Use

真实的使用场景。

基础模板:

"person's hands using [product description] in natural context, lifestyle
photography, focus on product-hand interaction, shallow depth of field,
warm natural window light, authentic not staged, [brand.target_audience.profession]
implied context, [brand.aesthetic.mood_keywords] atmosphere"

**构图:**突出双手,清晰呈现产品,背景采用柔焦效果。 **注意:**仅展示双手,不展示完整面部(避免模特授权方面的复杂问题)。 **输出尺寸:**1080×1080、1080×1920

风格 5:Lifestyle

充满向往感的完整场景拍摄。

基础模板:

"[product description] in aspirational lifestyle scene, [brand.target_audience.age_range]
demographic implied environment, [brand.target_audience.profession] context,
[brand.aesthetic.mood_keywords] atmosphere, golden hour or clean natural lighting,
editorial photography style, [brand.aesthetic.negative_space] composition,
product clearly visible and prominent"

**构图:**呈现环境场景,让产品成为场景中的视觉焦点。 **输出尺寸:**1080×1080、1080×1920

迭代优化

如果初次生成的效果不符合品牌预期,可在重新生成前通过指定光线方向、色温、背景纹理或产品角度来调整提示词。

第 5 步:生成图片

按风格选择领域模式:

  • Studio、Floating 和 Ingredient 风格使用 banana Product 模式
  • In Use 和 Lifestyle 风格使用 banana Editorial 模式
  • 所有生成任务的分辨率都设为 2K(默认值)

设置宽高比: 每次生成前,使用 banana MCP set_aspect_ratio:

  • 对于 1080x1080:将比例设为 1:1
  • 对于 1080x1920:将比例设为 9:16

针对每种风格与尺寸的组合,使用 /banana generate,并传入构造好的 提示词、选定的领域模式和正确的宽高比。将输出保存到 ./product-photos/[style]/[product-slug]-[style]-[WxH].png。

跟踪结果。如果生成失败,使用简化后的提示词重试一次。

第 6 步:整理并报告

输出目录结构:

./product-photos/
  studio/
    product-studio-1080x1080.png
    product-studio-1080x1920.png
  floating/
    product-floating-1080x1080.png
    product-floating-1080x1920.png
  ingredient/
    product-ingredient-1080x1080.png
    product-ingredient-1080x1920.png
  in-use/
    product-in-use-1080x1080.png
    product-in-use-1080x1920.png
  lifestyle/
    product-lifestyle-1080x1080.png
    product-lifestyle-1080x1920.png

摘要:

✓ Product photos generated: [N] images

  Studio:     ./product-photos/studio/ (2 sizes)
  Floating:   ./product-photos/floating/ (2 sizes)
  Ingredient: ./product-photos/ingredient/ (2 sizes)
  In Use:     ./product-photos/in-use/ (2 sizes)
  Lifestyle:  ./product-photos/lifestyle/ (2 sizes)

  Cost: see ~/.banana/costs.json for total spend

  Best for:
  • Meta Feed → Studio (4:5) or Lifestyle (4:5)
  • TikTok/Reels → Floating (9:16) or In Use (9:16)
  • LinkedIn → Studio (1:1) or Lifestyle (1:1)
  • Google PMax → Studio (1:1); crop to 1.91:1 after

  Run `/ads generate` to use these in a full campaign.

成本估算

生成前,请显示:

  • 所选风格数量 x 2 种尺寸 = 图片总数
  • 根据 banana 定价档位估算的费用
  • 如果费用 >$0.50,请征求确认

平台建议

风格最佳平台理由
StudioMeta Feed、LinkedIn、Google PMax通用、简洁,符合平台规范
FloatingMeta Reels、TikTok、Stories在竖屏版位中视觉冲击力强
IngredientMeta Feed、Pinterest最适合方形版式;讲述产品故事
In UseTikTok、Meta Reels、Stories内容真实自然,原生感强
Lifestyle所有平台富有向往感,吸引广泛受众

参考文件

  • ~/.claude/skills/ads/references/image-providers.md:API 设置和定价
  • ~/.claude/skills/ads/references/brand-dna-template.md:品牌注入规范
  • ~/.claude/skills/ads/references/meta-creative-specs.md:9:16 安全区域
  • ~/.claude/skills/ads/references/tiktok-creative-specs.md:安全区域限制

评论

支持 Markdown