本文へ移動
cccskills
無料GitHub で公開日本語紹介

nano-banana-image-ad

ArcadsのAPIとNano Banana系モデルを使い、Meta広告向けの静止画を新規生成・編集します。参照画像や構図の安全域を考慮した指示文を整え、生成画像を確認して保存先を案内します。

原文原文の説明を見る

Generate one or more standalone Meta image-ad creatives via Nano Banana 2 / Nano Banana Pro (Gemini Flash Image family) through the Arcads external API. Locks the model family, auto-strips platform chrome, enforces edge-safe layouts. Use when the user asks for a "Nano Banana ad", "Gemini image ad", "nano-banana-2 ad creative", "make a static image ad with Gemini", or anchors on a need for photoreal / lifestyle / multi-reference / handheld-object / clay-texture ad creatives (sticky-note flatlays, held-whiteboard signs, lifestyle portraits, ingredient collages, OOH photography). Does NOT trigger on ChatGPT Image cues — use chatgpt-image-ad for those.

mrpaidsocial/arcads-claude-code-mrpaidsocialスター 1,634(GitHub 1,634 + cccskills 0)
連携ツールGemini

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • Nano Bananaで広告画像を作りたいとき
  • 商品写真を使った広告案を生成したいとき
  • 既存の広告画像を編集したいとき

日本語での紹介

できること

Arcadsの画像生成APIを使い、Nano Banana系モデルでMeta広告向けの静止画を新規作成したり、既存画像を編集したりします。商品の参照画像やスタイル画像を使ったフォトリアルな商品写真、ライフスタイル画像、粘土風の質感などを想定し、テンプレートやモデル別ガイドに沿ってプロンプトを整えます。出力には画面UI風の余計な枠を避ける指示や、文字・要素が端で切れにくい配置への配慮が加わります。生成後は画像を目視で確認し、文字の崩れや手指、ロゴ、人物の一貫性などを点検して、結果のファイルパスを渡します。

こんなときに便利

Gemini系のNano Bananaで広告画像を作りたい場合や、商品の写真をもとに複数案を用意したい場合に向いています。既存画像の背景や色を変える編集にも使えます。Metaへの入稿や広告文の作成ではなく、画像素材の生成と引き渡しを扱います。

使い方の例

  • 「商品写真を使って、ライフスタイル広告画像を3案作って」
  • 「この画像の背景を差し替えた広告素材を作って」
  • 「粘土風の質感で商品広告を生成して」

注意点

Arcadsの認証情報を.envに設定する必要があります。利用可能な縦横比は1:1、16:9、9:16で、参照画像は最大14枚です。生成前にクレジット費用の見積もりと利用者の確認が必要です。Metaへのアップロードは対象外です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(2)

  • SKILL.md9.9 KB
  • scripts/generate_image.py20.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

nano-banana-image-ad (Arcads)

Generate one or more standalone Meta ad image creatives via Arcads' POST /v2/images/generate with the Nano Banana model family (default nano-banana-2). Hands the image paths off to your Meta-ad-builder skill — this skill does not upload to Meta itself.

Read order

  1. This file — Arcads-specific endpoint, auth, presigned upload flow, workflow phases.
  2. shared/skills/nano-banana-image-ad/prompting/guide.md — model-specific prompting (what Nano Banana is good/bad at, when to switch to gpt-image-2).
  3. shared/skills/image-ad-prompting/prompting/prompt-library.md — 30+ validated templates with per-model notes.
  4. shared/skills/image-ad-prompting/prompting/safety-suffixes.md — the 3 always-on guards.
  5. scripts/generate_image.py — the helper script (Python stdlib only).

Hard rules — never relax

  1. Model is in the Nano Banana family. The script accepts nano-banana-2 (default), nano-banana-pro (Gemini 3 Pro Image, higher cost / locked identity), nano-banana-edit (inpaint-focused), or nano-banana (legacy). Anything else is refused. If the user asks for gpt-image-2, point them at chatgpt-image-ad.
  2. No platform/screenshot chrome in output. NO_CHROME_SUFFIX is always on (override only with --allow-chrome).
  3. Edge-safe + glyph-safety suffixes always on unless --no-safe-zone is explicit.
  4. Max 14 reference images. Hard Arcads cap for Nano Banana. Script enforces.
  5. No Meta upload from this skill. Image generation only. The user has a separate ad-builder skill in their stack — hand off via filesystem paths.
  6. Always present a credit-cost estimate before generating. Each Nano Banana call is one image; multiply by --n. nano-banana-pro costs more than nano-banana-2 — surface the per-model rate from logs/arcads-api.jsonl.

Prerequisites

  • .env containing ARCADS_BASIC_AUTH (preferred) OR ARCADS_API_KEY
  • Optional: PRODUCT_ID, PROJECT_ID in .env for session-folder organization
  • Reference images on local disk. The script handles the Arcads presigned-upload flow internally.

Configuration

  • Base URL: https://external-api.arcads.ai (or ARCADS_BASE_URL).
  • Auth: HTTP Basic. The script prefers a pre-encoded ARCADS_BASIC_AUTH; falls back to encoding ARCADS_API_KEY.
  • Endpoint: POST /v2/images/generate; poll GET /v1/assets/{id} until status: generated.
  • Reference uploads: POST /v1/file-upload/get-presigned-url returns {presignedUrl, filePath}; PUT bytes to presignedUrl; pass the filePath in referenceImages. Single-use — re-uploaded fresh per variant by the script.

Generation modes

ModeWhen to useRequiredOptional
image (default)Brand-new ad image.--prompt, --aspect-ratio--image-ref (up to 14)
image_editModify a --source image.--prompt, --source--image-ref (up to 14)

Supported aspect ratios

1:1, 16:9, 9:16. Only these three are accepted by Arcads' /v2/images/generate endpoint (the same endpoint serves gpt-image-2 and Nano Banana — same ratio constraints). Templates in the shared library that use 2:3, 4:5, 3:2, etc. won't render at their native ratio on this backend — fall back to 1:1 and post-crop, or use the KIE nano-banana-image-ad sibling which supports the full Meta ratio set natively via the /jobs/createTask endpoint.

Model variants (--model)

  • nano-banana-2 (default) — Gemini 2.5 Flash Image. The standard. Use for most templates.
  • nano-banana-pro — Gemini 3 Pro Image. Use for hero stills, character continuity across runs, material-realism critical shots (claymation, Pixar, premium product photography). Costs more credits.
  • nano-banana-edit — inpaint-focused. Use only with --mode image_edit for tight masked edits (swap background, change object color).
  • nano-banana — legacy. Use only if the user explicitly asks; new work should use nano-banana-2.

Ask the user which variant they want before the first generation in a session if the value isn't already set in MASTER_CONTEXT.md. Default to nano-banana-2.

Workflow

Phase 1: Preflight

  1. .env exists with credentials.
  2. (Optional) arcads-external-api session folder set up.
  3. Health-check: curl -sf -H "$AUTH" "$BASE_URL/v1/products" returns 200.

Phase 2: Gather inputs

Collect: seed prompt, mode, source (if edit), reference paths (up to 14), variant count, aspect ratio, model variant.

Phase 3: Prompt rewrite

Read shared/skills/image-ad-prompting/prompting/prompt-library.md. If the user's brief matches a template, check the Model notes block — only proceed if nano-banana is marked clean, preferred, or strong. If gpt-image-2 is preferred, suggest switching skills.

Fill {placeholders} and show the user the rewritten prompt. Ask for approval before generating.

For fresh prompts (no template match), follow the structure in shared/skills/nano-banana-image-ad/prompting/guide.md § Phase 3b — lean on Nano Banana strengths (named reference roles, lighting specifics, material specifics).

Phase 4: Credit cost confirmation (MANDATORY)

Present the estimated credit cost (read from logs/arcads-api.jsonl for matching past calls). Surface the model variant prominently: nano-banana-pro costs more than nano-banana-2. Wait for explicit confirmation.

Phase 5: Generate

~/.claude/skills/nano-banana-image-ad/scripts/generate_image.py \
  --prompt "<rewritten>" \
  --aspect-ratio <ratio> \
  --n <N> \
  --image-ref <product.png> \
  [--image-ref <character.png>] \
  [--image-ref <style.png>] \
  --out ./generated \
  --env-file .env

# For higher-stakes hero shots:
~/.claude/skills/nano-banana-image-ad/scripts/generate_image.py \
  --model nano-banana-pro \
  --prompt "<rewritten>" \
  --aspect-ratio <ratio> \
  --n <N> \
  --image-ref <product.png> \
  --out ./generated \
  --env-file .env

# For an edit run (inpaint):
~/.claude/skills/nano-banana-image-ad/scripts/generate_image.py \
  --mode image_edit \
  --model nano-banana-edit \
  --prompt "<edit-instruction>" \
  --source <existing.png> \
  [--image-ref <guidance.png>] \
  --n <N> \
  --out ./generated \
  --env-file .env

Each line on stdout is one JSON variant (variant, path, asset_id, width, height, prompt, mode, aspect_ratio, model).

Log each call to logs/arcads-api.jsonl with the model variant, ref count, and returned asset_ids.

Phase 6: Visual QA (MANDATORY)

For each completed variant, read the image and inspect for:

  • Garbled small text (the main Nano Banana weakness)
  • Extra fingers / wrong limb count (common Gemini-family failure)
  • Wordmark drift (always pass brand wordmarks as --image-ref to mitigate)
  • Character identity drift across variants (use nano-banana-pro to lock identity if it matters)

If defects: regenerate with a revised prompt that explicitly corrects the issue (see shared/skills/nano-banana-image-ad/prompting/guide.md § Retry mode). Cap at 2 retries per variant.

Phase 7: Confirm and hand off

Show all paths to the user. Ask "Use all / use these specific ones / regenerate / cancel."

Selected variants are ready for your Meta-ad-builder skill. Print the paths.

Optionally, write the selected paths to ./generated/run-<ts>.jsonl for downstream consumption.

Out of scope — fail clearly

  • Meta upload — different skill in your stack.
  • ChatGPT Image 2 / gpt-image-2 generation — use chatgpt-image-ad.
  • Video, carousel, DCO ads — image only.
  • Ad copy writing — different skill.
  • Editing the shared prompt library — use image-ad-clone (asks which backend at Phase 1).

Common errors

  • 401/403 → fix .env.
  • 422 validation/moderation → tighten prompt; check aspectRatio is in supported set; check --n ≤ 5.
  • 500 UNKNOWN_ERROR → usually a stale presigned filePath. The script re-uploads per variant; if persistent, file an issue with the asset_id.

Files this skill owns

  • ~/.claude/skills/nano-banana-image-ad/SKILL.md — this file
  • ~/.claude/skills/nano-banana-image-ad/scripts/generate_image.py — Arcads Nano Banana caller

See also

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

analyze-video

無料概要あり

参考動画の構成やテンポ、カメラ、編集、話し方を分析し、Seedance 2.0で別の題材にも応用できる動画生成用テンプレートにまとめます。

  • 参考動画のスタイルを型にしたいとき
  • 動画の構成やカメラワークを分析したいとき
  • 長い動画の雰囲気を短尺にまとめたいとき
mrpaidsocial/arcads-claude-code-mrpaidsocial1,6342026年10月20日 更新

arcads-external-api

無料概要あり

Arcadsの外部APIを通じて、複数のAIモデルによる動画・画像、B-roll、シーン、台本やアクター素材の生成と取得を進めるための手順を参照できます。

  • Arcadsで商品紹介動画を生成したいとき
  • 広告用の画像やB-rollを作りたいとき
  • 生成した素材の状態を確認したいとき
mrpaidsocial/arcads-claude-code-mrpaidsocial1,6342026年10月20日 更新

chatgpt-image-ad

無料概要あり

ArcadsのChatGPT Image 2を使ってMeta広告向け静止画を生成・編集します。文字量の多い広告やチャット画面風などの表現に向けて指示文を整え、生成画像を確認して受け渡します。

  • 会話画面風の広告画像を作りたいとき
  • 比較表や検索画面の広告を作りたいとき
  • 文字の多い静止画広告を編集したいとき
mrpaidsocial/arcads-claude-code-mrpaidsocial1,6342026年10月20日 更新

clone-ad

無料概要あり

参考広告の映像やセリフ、テンポを分析し、商品やブランドに合わせたSeedance 2.0の動画広告を生成する一連の作業を支援します。

  • 参考広告を別の商品向けに作り替えたいとき
  • 広告のテンポやカメラ表現を再現したいとき
  • 商品画像から短い動画広告を作りたいとき
mrpaidsocial/arcads-claude-code-mrpaidsocial1,6342026年10月20日 更新

generate-youtube-thumbnail

無料概要あり

動画のテーマや人物、ブランド素材に合わせたYouTubeサムネイルを生成し、表情や構図の異なる案をまとめて比較できるようにします。

  • YouTube動画のサムネイルを作りたいとき
  • サムネイルのA/Bテスト案を作りたいとき
  • 顔写真やロゴを使った案を作りたいとき
mrpaidsocial/arcads-claude-code-mrpaidsocial1,6342026年10月20日 更新

image-ad-clone

無料概要あり

既存の画像広告を分析し、ブランド固有の要素を差し替えられる再利用可能なプロンプトテンプレートにして、生成画像で検証・記録します。

  • 参考広告を再利用可能にしたいとき
  • 別ブランド向けに広告構成を応用したいとき
  • 生成モデルごとの再現性を比べたいとき
mrpaidsocial/arcads-claude-code-mrpaidsocial1,6342026年10月20日 更新

mrpaidsocial のスキルをすべて見る

このスキルの問題を報告する