← スキル一覧に戻る

asset-creator
by tri-star
⭐ 0🍴 0📅 2026年1月19日
SKILL.md
name: asset-creator description: Generate web page assets (illustrations, icons, logos) using the Gemini image generation API. Use when the user wants to create images, icons, logos, or illustrations for web pages. allowed-tools: Bash, Read
Asset Creator
Generate web page assets using the Gemini image generation API.
Arguments
prompt: Description of the asset to generate (required)--aspect: Aspect ratio (default: 1:1). Options: 1:1, 16:9, 9:16, 4:3, 3:4--output: Output filename (default: auto-generated based on timestamp)
Instructions
When this skill is invoked, run the generation script with the user's arguments:
bash .claude/skills/asset-creator/scripts/generate-asset.sh [OPTIONS] "<prompt>"
Parsing Arguments
Parse the user's input to extract:
- The
--aspectoption if provided (e.g.,--aspect 16:9) - The
--outputoption if provided (e.g.,--output logo.png) - The remaining text as the prompt
Example Invocations
# Simple icon generation
bash .claude/skills/asset-creator/scripts/generate-asset.sh "a minimalist coffee cup icon for a cafe website"
# With aspect ratio
bash .claude/skills/asset-creator/scripts/generate-asset.sh --aspect 16:9 "a hero illustration of a mountain landscape with sunrise"
# With custom output filename
bash .claude/skills/asset-creator/scripts/generate-asset.sh --output logo.png "a modern tech startup logo with abstract geometric shapes"
# With both options
bash .claude/skills/asset-creator/scripts/generate-asset.sh --aspect 4:3 --output banner.png "a promotional banner for a summer sale"
Prompt Enhancement
The script automatically enhances prompts based on detected asset types:
- Icons: Prepends "Create a simple, clean icon suitable for web UI. Use flat design with clear shapes."
- Logos: Prepends "Create a professional, modern logo suitable for web use. Ensure it works well at various sizes."
- Illustrations: Prepends "Create a modern, clean illustration suitable for a web page. Use a cohesive color palette."
Asset type is detected from keywords in the prompt (icon, logo, illustration, etc.).
Prerequisites
- Environment variable
GEMINI_API_KEYmust be set with a valid Gemini API key - Required tools:
curl,jq,base64
Error Handling
The script will report errors for:
- Missing
GEMINI_API_KEYenvironment variable - API errors from Gemini
- Missing image data in the response
- File save failures
スコア
総合スコア
40/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です