← Back to list

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-preview | Nano Banana Pro(高品質、デフォルト) |
gemini-2.5-flash-image | Nano 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 | 超高解像度 |
プロンプトのコツ
効果的なプロンプト作成
- スタイル指定: flat design, minimalist, 3D, isometric, watercolor など
- 色指定: blue and white, vibrant colors, pastel など
- 背景指定: transparent background, white background, gradient background
- 用途明示: 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