Skip to content
media-generator logo

Media Generator サブエージェント

media-generator

バナー/図表/スライド/画像の生成・編集を行うサブエージェント。 Gemini Image Generation APIを使用して各種メディアを生成する。 「バナーを作って」「図表を生成」「スライドを作成」「画像を生成」等のリクエストで発動。

SKILL.md

Full skill instructions

Media Generator サブエージェント

バナー/図表/スライド/画像の生成・編集を専用コンテキストで実行するサブエージェント。

目的

メディア生成処理をメインエージェントのコンテキストから分離し:

  • 複数の参照画像を含む処理を効率化
  • プラットフォーム別プリセットの適用
  • 生成結果のパス情報のみを返却

機能一覧

機能スクリプト説明
バナー生成banner_creator.pySNS/広告向けバナー生成
図表生成generate_diagram.pyインフォグラフィック/図表生成
スライド生成generate_slide.py講義用スライド画像生成
汎用画像生成nanobanana.pyテキスト→画像、画像編集

1. バナー生成 (cursor_tools/​banner_creator.py)

プラットフォーム別プリセット

プリセットサイズアスペクト比用途
x_post1200x67516:9X タイムライン投稿
x_card800x41816:9X リンクカード
facebook1200x63016:9Facebook リンク投稿
facebook_story1080x19209:16Facebook ストーリーズ
instagram_feed1080x10801:1Instagram フィード
instagram_story1080x19209:16Instagram ストーリーズ
prtimes1200x63016:9PRTimes プレスリリース
youtube_thumbnail1280x72016:9YouTube サムネイル
line1200x62816:9LINE 公式アカウント
web_banner1200x62816:9Web広告バナー

使用方法

# X用バナー生成
python cursor_tools/​banner_creator.py \
  --platform x_post \
  --topic "新サービスリリース告知" \
  --tone professional \
  --output-dir docs/​generated/​banners

# 参照画像を使用
python cursor_tools/​banner_creator.py \
  --platform instagram_feed \
  --topic "夏のキャンペーン" \
  --reference-images image1.png image2.png \
  --output-dir docs/​generated/​banners

# コピーテキスト同時生成
python cursor_tools/​banner_creator.py \
  --platform prtimes \
  --topic "プレスリリース用" \
  --with-copy \
  --output-dir docs/​generated/​banners

2. 図表/インフォグラフィック生成 (cursor_tools/​generate_diagram.py)

スタイル

スタイル説明
colorful_infographic明るい色、アイコン、読みやすいレイアウト
sketch手描き風、鉛筆/チャコールテクスチャ
photorealistic写真のようなリアルな質感
minimalistシンプル、余白重視、限定カラー
claymation3Dクレイ風、柔らかい照明
pixel_artレトロゲーム風、ブロック調

使用方法

# トピックから図表生成
python cursor_tools/​generate_diagram.py \
  --topic "マーケティングファネル" \
  --style colorful_infographic \
  --aspect-ratio 16:9 \
  --output-dir reports/​visualizations

# 長文テキストからインフォグラフィック
python cursor_tools/​generate_diagram.py \
  --topic "$(cat article.txt)" \
  --style minimalist \
  --output-dir reports/​visualizations

3. 汎用画像生成/編集 (cursor_tools/​nanobanana.py)

使用方法

# テキストから画像生成
python cursor_tools/​nanobanana.py \
  --prompt "A futuristic city at sunset" \
  --aspect-ratio 16:9 \
  --output-dir docs/​generated

# 画像編集(参照画像+指示)
python cursor_tools/​nanobanana.py \
  --prompt "Make the background blue" \
  --reference reference.png \
  --output-dir docs/​generated

# 複数参照画像を使用
python cursor_tools/​nanobanana.py \
  --prompt "Combine these styles" \
  --reference image1.png image2.png \
  --output-dir docs/​generated

アスペクト比

アスペクト比用途
1:1Instagram、プロフィール画像
4:3汎用横長
3:4汎用縦長
16:9YouTube、プレゼン
9:16ストーリーズ、リール
21:9ウルトラワイド

サブエージェント呼び出しパターン

メインエージェントは以下のパターンでこのサブエージェントを呼び出す:

Task(
    subagent_type="generalPurpose",
    model="fast",
    description="Banner generation",
    prompt="""
    このスキルを読んで実行してください: .claude/​skills/​media-generator/​SKILL.md
    
    タスク: {ユーザーの指示}
    プラットフォーム: {x_post / instagram_feed / etc.}
    トピック: {生成内容}
    
    生成した画像のパスを返却してください。
    """
)

返却フォーマット

処理結果は以下の形式で返却:

status: success
generated_files:
  - path: docs/​generated/​banners/​x_post_20260127_143022.png
    platform: x_post
    size: 1200x675
    aspect_ratio: 16:9
copy_text: |
  【新サービスリリース】
  AIを活用した業務効率化ツールが登場!
  #AI #業務効率化

依存関係

google-generativeai>=0.3.0
Pillow>=9.0.0
python-dotenv>=1.0.0

環境変数

# 必須
GEMINI_API_KEY=your_api_key
# または
GOOGLE_API_KEY=your_api_key

注意事項

  • 生成画像はdocs/​generated/配下に自動保存
  • セッション名を指定するとサブフォルダに整理
  • 日本語テキストを含める場合は明示的に指示
  • 参照画像は最大5枚まで

More Design skills

brandkit logo
Design

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

179.7K 114.2K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View