スキル一覧に戻る
yermilov

generate-image

by yermilov

Вокршоп "Прагматичний вайб клодінг"

2🍴 0📅 2026年1月16日
GitHubで見るManusで実行

SKILL.md


name: generate-image description: Generates images using Google Gemini 3 Pro API. Use when asked to create, generate, or design images for slides, presentations, or visual content. allowed-tools: Bash(bun:*), Read, Write

Image Generation with Gemini 3 Pro

Generate images for slides and presentations using Google's Gemini 3 Pro image generation API.

Prerequisites

Ensure .env.local exists with your Gemini API key:

GEMINI_API_KEY=your-api-key-here

Usage

Run the generation script:

bun --env-file=.env.local .claude/skills/generate-image/scripts/generate.ts --prompt "your image description" --ratio "16:9" --output "output.png"

Parameters

ParameterRequiredDefaultDescription
--promptYes-Image description
--ratioNo16:9Aspect ratio: 16:9, 4:3, 1:1, 4:5
--outputNoAuto-generatedOutput filename

Examples

# Widescreen slide background
bun --env-file=.env.local .claude/skills/generate-image/scripts/generate.ts \
  --prompt "Abstract dark terminal with glowing code, cyberpunk aesthetic" \
  --ratio "16:9"

# Square icon
bun --env-file=.env.local .claude/skills/generate-image/scripts/generate.ts \
  --prompt "Minimalist code icon, orange and green on dark background" \
  --ratio "1:1" \
  --output "code-icon.png"

Output

Images are saved to public/ with auto-generated timestamps if no filename specified.

Prompts are automatically logged to src/prompts/ as JSON files containing:

  • filename: Output image filename
  • prompt: The prompt used to generate the image
  • ratio: Aspect ratio used
  • timestamp: Generation timestamp (ISO format)
  • model: Gemini model used

This allows you to reference and regenerate images later using the same prompts.

Troubleshooting

  • API key not found: Ensure .env.local exists with GEMINI_API_KEY
  • Generation failed: Check API key validity and quota
  • Model error: The script uses gemini-3-pro-image-preview model

スコア

総合スコア

50/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

レビュー

💬

レビュー機能は近日公開予定です