upscale-image
БесплатноЗапускает вложенные скриптыНе проверенThis skill should be used when the user asks to "upscale an image", "increase image resolution", "make image bigger", "enlarge image", or "enhance image…
Об этом скилле
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:
Get a Google Cloud Project
- Go to: https://console.cloud.google.com/projectcreate
- Create a new project or use an existing one
- Note the Project ID (not the project name)
Enable Vertex AI API
- Go to: https://console.cloud.google.com/apis/library/aiplatform.googleapis.com
- Click "Enable"
Enable Billing
- Go to: https://console.developers.google.com/billing/enable?project=YOUR_PROJECT_ID
- Link a billing account
Install gcloud CLI (if not installed)
- Go to: https://cloud.google.com/sdk/docs/install
- Or on macOS:
brew install google-cloud-sdk
Authenticate
gcloud auth application-default loginThis opens a browser for Google sign-in.
Set Environment Variable
echo 'export GOOGLE_CLOUD_PROJECT=your-project-id' >> ~/.zshenv
Usage
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/upscale-image/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
# 2x upscale
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/upscale-image/scripts/upscale.ts photo.jpg
# 4x upscale
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/upscale-image/scripts/upscale.ts photo.jpg --factor x4
# Upscale and save as PNG
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/upscale-image/scripts/upscale.ts photo.jpg --factor x4 --format png --output hires.png
# Specify project explicitly
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/upscale-image/scripts/upscale.ts photo.jpg --project my-gcp-project --factor x4
Context Discipline
Do not read generated images back into context. The script outputs only the file path. Ask the user to visually inspect the result. Upscaled images are especially large (2x/4x resolution) and will quickly exhaust the context window.
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.
Provider support
Gemini family only: Imagen upscaling is available through Vertex AI credentials. OpenAI and xAI have no equivalent endpoint in gemskills. For a generative re-render, use edit-image (OpenAI or Gemini).
Установить upscale-image в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл upscale-image?
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?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл upscale-image запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic