Token导航 LogoToken导航TokenDH.com
待分类敏感数据github未标认证来源可访问许可证需确认审计通过

ads-generate广告生成

Agent Skill

ads-generate 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,532

周安装

317

GitHub Stars

3,734

下载量

2,637
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ads-generate(广告生成)
来源仓库:https://github.com/agricidaniel/claude-ads
仓库路径:skills/ads-generate
安装命令:
npx skills add https://github.com/agricidaniel/claude-ads --skill ads-generate
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/agricidaniel/claude-ads --skill ads-generate

简介

ads-generate 根据 campaign brief 和 brand profile 生成平台适配的广告图片素材。

  • 专为多平台(如 Meta、Google)广告设计图像内容,支持自定义提示词与画布比例。
  • 依赖 banana-claude 作为图像生成后端,需预先配置 API 密钥与 MCP 服务。
  • 若 banana 不可用,将显示设置指引并停止运行,不会静默降级处理。
  • 使用前请确认图像生成服务可用性,避免因环境未就绪导致任务中断。

SKILL.md

Ads Generate: AI Ad Image Generator

Generates platform-sized ad creative images from your campaign brief and brand profile. Uses banana-claude as the image generation provider.

Quick Reference

CommandWhat it does
/ads generateGenerate all images from campaign-brief.md
/ads generate --platform metaGenerate Meta assets only
/ads generate --prompt "text" --ratio 9:16Standalone generation without brief

Environment Setup

Required before running:

  • Requires banana-claude (v1.4.1+) with nanobanana-mcp configured
  • Run /banana setup to configure API key and MCP
  • Fallback: if banana is not available, use scripts/generate_image.py (deprecated)

If banana-claude is not installed, this skill will display setup instructions and stop. It will never fail silently.

If banana-claude is unavailable, alternatives include: OpenAI gpt-image-1 ($0.040/image), Stability SD 3.5 ($0.065), or Replicate FLUX.1 Pro ($0.055). Configure via ADS_IMAGE_PROVIDER env var.

Process

Step 1: Verify banana-claude

Verify banana-claude is installed (run /banana setup to check). If not installed, display setup instructions and exit.

Step 2: Locate Source Files

Check for:

  • campaign-brief.md → primary source for prompts and dimensions
  • brand-profile.json → brand color/style injection (optional but recommended)

If campaign-brief.md is found: Use ## Image Generation Briefs section as the generation job list.

If no campaign-brief.md: Enter standalone mode (Step 2b).

Step 2b: Standalone Mode

Ask the user:

  1. Generation prompt (what should the image show?)
  2. Target platform (to set correct dimensions)
  3. Output filename (optional)

Then skip to Step 5.

Step 3: Read Provider Config

Load ~/.claude/skills/ads/references/image-providers.md to confirm:

  • Active provider pricing (show user the cost estimate)
  • Rate limits for current tier
  • Batch API availability

Step 4: Read Platform Specs

For each platform in the campaign brief, load the relevant spec reference:

  • ~/.claude/skills/ads/references/meta-creative-specs.md
  • ~/.claude/skills/ads/references/google-creative-specs.md
  • ~/.claude/skills/ads/references/tiktok-creative-specs.md
  • ~/.claude/skills/ads/references/linkedin-creative-specs.md
  • ~/.claude/skills/ads/references/youtube-creative-specs.md
  • ~/.claude/skills/ads/references/microsoft-creative-specs.md

Step 5: Prepare banana Configuration

Create banana brand preset from brand-profile.json if one does not already exist at ~/.banana/presets/{brand-slug}.json.

Select banana domain mode based on campaign brief content:

  • Product: e-commerce, packshots
  • Editorial: brand awareness, lifestyle
  • Cinema: video thumbnails, dramatic
  • UI/Web: app install, SaaS
  • Portrait: testimonials, people

Step 6: Spawn Visual Designer Agent

Spawn the visual-designer agent using the Task tool with context: fork, passing the selected domain mode and preset name.

The agent will:

  • Parse the image generation briefs from campaign-brief.md
  • Inject brand colors and mood from brand-profile.json
  • Use banana-claude with the configured domain mode for each asset
  • Save to ./ad-assets/[platform]/[concept]/ directory structure
  • Write generation-manifest.json

Step 7: Validate with Format Adapter

After the visual-designer completes, spawn the format-adapter agent with context: fork to validate dimensions and report missing formats.

Step 8: Quality Gate

Use Claude vision to assess each generated image against the brief (score 1 to 10 on brand alignment, composition, platform fit). If any image scores below 6, regenerate once with an adjusted prompt.

Quality Gate Rubric:

  • 9-10: Professional quality, brand-aligned, platform-optimized, no issues
  • 7-8: Good quality, minor composition or brand alignment improvements possible
  • 5-6: Acceptable but needs regeneration. Text readability issues, poor composition, or brand mismatch
  • Below 5: Reject. Regenerate with adjusted prompt

Step 9: Aggregate Costs

Read banana cost data from ~/.banana/costs.json and include total creative spend in generation-manifest.json.

Step 10: Report Results

Present a summary:

Generation complete:

  Generated assets:
    ✓ ./ad-assets/meta/concept-1/feed-1080x1350.png
    ✓ ./ad-assets/tiktok/concept-1/vertical-1080x1920.png
    ✗ ./ad-assets/google/concept-1/landscape-1200x628.png [error reason]

  Format validation: See format-report.md

  Cost: $[N] total creative spend (from ~/.banana/costs.json)

  Next steps:
    1. Review assets in ./ad-assets/
    2. Check format-report.md for any missing formats
    3. Upload to your ad platform managers

Cost Transparency

Before generating, estimate and show the cost:

  • Count the number of image briefs in campaign-brief.md
  • Show estimated cost based on banana pricing tiers
  • If >$1.00, ask for confirmation before proceeding

Standalone Mode (No campaign-brief.md)

When running without a campaign brief:

Platform target → dimensions used:
  meta-feed     → 1080×1350 (4:5)
  meta-reels    → 1080×1920 (9:16)
  tiktok        → 1080×1920 (9:16)
  google-pmax   → 1200×628 (1.91:1)
  linkedin      → 1080×1080 (1:1)
  youtube       → 1280×720 (16:9)
  youtube-short → 1080×1920 (9:16)

Use /banana generate directly with the specified prompt and aspect ratio.

Reference Files

  • ~/.claude/skills/ads/references/image-providers.md: provider config, pricing, limits
  • ~/.claude/skills/ads/references/[platform]-creative-specs.md: per-platform specs
  • ~/.claude/skills/ads/references/brand-dna-template.md: brand injection schema

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.37%
按下载量换算906

Claude

30.45%
按下载量换算803

Cursor

20.63%
按下载量换算544

Gemini CLI

8.71%
按下载量换算230

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills