スキル一覧に戻る
b-open-io

upscale-image

by b-open-io

Gemini 3.0 Pro Preview skills for Claude Code - design analysis, spatial awareness, visual critique

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

SKILL.md


name: Upscale Image description: This skill should be used when the user asks to "upscale an image", "increase image resolution", "make image bigger", "enlarge image", or "enhance image resolution". Requires Vertex AI credentials.

Upscale Image

Upscale images using Imagen on Vertex AI.

Prerequisites

This skill requires Vertex AI credentials (not GEMINI_API_KEY).

Check Current Setup

echo "Project: ${GOOGLE_CLOUD_PROJECT:-NOT SET}"
gcloud auth application-default print-access-token &>/dev/null && echo "Auth: OK" || echo "Auth: NOT CONFIGURED"

First-Time Setup

If credentials are not configured, guide the user through these steps:

  1. Get a Google Cloud Project

  2. Enable Vertex AI API

  3. Enable Billing

  4. Install gcloud CLI (if not installed)

  5. Authenticate

    gcloud auth application-default login
    

    This opens a browser for Google sign-in.

  6. Set Environment Variable

    echo 'export GOOGLE_CLOUD_PROJECT=your-project-id' >> ~/.zshenv
    

Usage

cd ${CLAUDE_PLUGIN_ROOT}/skills/upscale-image && bun run scripts/upscale.ts <input-image> [options]

Options

  • --factor <x2|x4> - Upscale factor (default: x2)
  • --format <png|jpeg|webp> - Output format
  • --quality <n> - JPEG quality (1-100)
  • --output <path> - Output path
  • --project <id> - Google Cloud project (overrides env var)
  • --location <region> - Vertex AI location (default: us-central1)

Examples

cd ${CLAUDE_PLUGIN_ROOT}/skills/upscale-image

# 2x upscale
bun run scripts/upscale.ts photo.jpg

# 4x upscale
bun run scripts/upscale.ts photo.jpg --factor x4

# Upscale and save as PNG
bun run scripts/upscale.ts photo.jpg --factor x4 --format png --output hires.png

# Specify project explicitly
bun run scripts/upscale.ts photo.jpg --project my-gcp-project --factor x4

Model

Uses imagen-3.0-generate-002 via Vertex AI upscaleImage API.

Why Vertex AI?

The Imagen upscaling API is only available through Vertex AI, not the standard Gemini API. This is a Google limitation - the upscaleImage method in the @google/genai SDK only works with Vertex AI backend.

スコア

総合スコア

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

レビュー

💬

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