スキル一覧に戻る
cjkihl

gemini-image-analysis

by cjkihl

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

SKILL.md


name: gemini-image-analysis description: Analyze one or multiple images with Gemini Flash (vision) via the generateContent REST API. Uses Bun + TypeScript to base64-encode images and print model output. Use for captioning, OCR-like extraction, UI/screenshot analysis, and multi-image comparison.

Gemini Image Analysis (Bun + TypeScript)

When to use

Use this Skill when you need to analyze one or multiple images (screenshots, photos, diagrams) with Gemini Flash via the REST API.

Quick start

GEMINI_API_KEY="YOUR_KEY" \
bun .claude/skills/gemini-image-analysis/scripts/gemini-image-analyze.ts \
  --prompt "Caption this image." \
  /path/to/image.jpg

macOS Keychain (optional)

If you store GEMINI_API_KEY in the macOS Keychain:

GEMINI_API_KEY="$(security find-generic-password -a "$(whoami)" -s "GEMINI_API_KEY" -w)" \
bun .claude/skills/gemini-image-analysis/scripts/gemini-image-analyze.ts \
  --prompt "Caption this image." \
  /path/to/image.jpg

Multiple images

Send multiple images in one request (useful for comparison or “before/after”):

GEMINI_API_KEY="YOUR_KEY" \
bun .claude/skills/gemini-image-analysis/scripts/gemini-image-analyze.ts \
  --prompt "Compare these images and describe the differences." \
  /path/to/image1.jpg \
  /path/to/image2.png

Options

  • --prompt <text>: Text instruction for the model (default: Caption this image.)
  • --model <model>: Model name (default: gemini-3-flash-preview)
  • --json: Print the full JSON response instead of extracted text

Notes

  • The script reads GEMINI_API_KEY from the environment and never stores it.
  • Supported image types: .jpg, .jpeg, .png, .webp, .gif.

スコア

総合スコア

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

レビュー

💬

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