Back to skills
SKILL.md
Asset Generator
ASecurityGemini画像生成APIでWebアセットを生成。アイコン、バナー、サムネイル、OGP画像などが必要な時に使用。「画像を作って」「アイコンが欲しい」「バナーを生成」「ロゴを作成」などの要求で自動起動。
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added September 27, 2026
Works with
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add David-Li0406/meta-skill-evloving --skill asset-generator --agent claude-codeAre you the author of Asset Generator?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-asset-generator)---
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開発用の画像アセットを生成するスキルです。
## 使用方法
画像生成スクリプトを実行:
```bash
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` | 超高解像度 |
## プロンプトのコツ
### 効果的なプロンプト作成
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 など
### プロンプト例
```bash
# アプリアイコン
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` に設定:
```json
{
"api_key": "YOUR_GEMINI_API_KEY"
}
```
または環境変数 `GEMINI_API_KEY` を設定。
APIキーは [Google AI Studio](https://aistudio.google.com/apikey) で取得できます。
## 注意事項
- 生成される画像はPNG形式
- API制限に注意(レート制限あり)
- 著作権のあるキャラクター等は生成できない場合あり
- 無料枠は制限が厳しいため、課金モデルへの移行を推奨
Files in this skill
- SKILL.md
- USAGE.md
- scripts/generate_image.py
Attribution
Comments
Loading comments…