Back to list
itaosan

asset-generator

by itaosan

0🍴 0📅 Jan 23, 2026

SKILL.md


name: asset-generator description: Gemini画像生成APIでWebアセットを生成。アイコン、バナー、サムネイル、OGP画像などが必要な時に使用。「画像を作って」「アイコンが欲しい」「バナーを生成」「ロゴを作成」などの要求で自動起動。 allowed-tools: Bash(uv:*), Read, Write

Vibe Asset Generator

Gemini 3 Pro Image (Nano Banana Pro) を使用してWeb開発用の画像アセットを生成するスキルです。

使用方法

画像生成スクリプトを実行:

uv run --script ~/.claude/skills/asset-generator/scripts/generate_image.py \
  --prompt "プロンプト" \
  --output ./出力パス.png \
  --aspect-ratio アスペクト比

オプション

オプション短縮説明デフォルト
--prompt-p画像生成プロンプト(必須)-
--output-o出力ファイルパス(必須)-
--aspect-ratio-aアスペクト比1:1
--resolution-r解像度(1K/2K/4K)なし
--model-m使用モデルgemini-3-pro-image-preview

モデル

モデル説明
gemini-3-pro-image-previewNano Banana Pro(高品質、デフォルト)
gemini-2.5-flash-imageNano Banana(高速)

アスペクト比ガイド

用途推奨アスペクト比
アイコン、favicon、プロフィール1:1
バナー、ヘッダー、OGP画像16:9
ストーリー、モバイル向け9:16
サムネイル(標準)4:3
ポートレート画像3:4
写真横長3:2
写真縦長2:3
やや横長5:4
やや縦長4:5
ウルトラワイド21:9

解像度オプション(Nano Banana Proのみ)

解像度説明
1K標準解像度
2K高解像度
4K超高解像度

プロンプトのコツ

効果的なプロンプト作成

  1. スタイル指定: flat design, minimalist, 3D, isometric, watercolor など
  2. 色指定: blue and white, vibrant colors, pastel など
  3. 背景指定: transparent background, white background, gradient background
  4. 用途明示: icon, logo, banner, illustration など

プロンプト例

# アプリアイコン
uv run --script ~/.claude/skills/asset-generator/scripts/generate_image.py \
  -p "a minimalist app icon, blue gradient circle with white lightning bolt, flat design" \
  -o ./icon.png

# Webサイトバナー
uv run --script ~/.claude/skills/asset-generator/scripts/generate_image.py \
  -p "modern tech website hero banner, abstract geometric shapes, purple and blue gradient" \
  -o ./banner.png -a 16:9

# OGP画像
uv run --script ~/.claude/skills/asset-generator/scripts/generate_image.py \
  -p "blog post OGP image about AI technology, futuristic design, dark background with glowing elements" \
  -o ./ogp.png -a 16:9

# プロフィールアバター
uv run --script ~/.claude/skills/asset-generator/scripts/generate_image.py \
  -p "cute cartoon avatar, friendly developer character, simple illustration style" \
  -o ./avatar.png

# 高解像度ポスター
uv run --script ~/.claude/skills/asset-generator/scripts/generate_image.py \
  -p "professional tech conference poster, modern design" \
  -o ./poster.png -a 3:4 -r 4K

セットアップ

APIキーを ~/.gemini/config に設定:

{
  "api_key": "YOUR_GEMINI_API_KEY"
}

または環境変数 GEMINI_API_KEY を設定。

APIキーは Google AI Studio で取得できます。

注意事項

  • 生成される画像はPNG形式
  • API制限に注意(レート制限あり)
  • 著作権のあるキャラクター等は生成できない場合あり
  • 無料枠は制限が厳しいため、課金モデルへの移行を推奨

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon