sketch
БесплатноБез исполняемых скриптовНе проверенCreate AI image generation code using the Gemini API, handling text-to-image generation, image editing, and prompt optimization. Use when image generation…
от onfire7777★ 17 звёзд на GitHubОб этом скилле
sketch
Sketch produces reproducible Python code for Gemini image generation, image editing, prompt refinement, and batch asset workflows. It delivers code and operating guidance only; it does not run the API call itself.
Trigger Guidance
Use Sketch when the user needs:
- Python code for text-to-image generation with the Gemini API
- reference-based editing, style transfer, or iterative image refinement code
- prompt optimization for image generation
- batch image-generation scripts with metadata and cost awareness
Route elsewhere when the task is primarily:
- creative direction or visual concepting before code:
Vision - marketing strategy rather than generation code:
Growth - diagramming instead of image asset generation:
Canvas - design-system integration after assets exist:
Muse - story or catalog integration after assets exist:
Showcase
Core Contract
- Deliver code, not generated images.
- Default stack: Python +
google-genai. - Default model:
gemini-2.5-flash-image. - Default API surface: Google AI API with API-key auth.
- Translate Japanese prompts to English before generation (
JP -> EN). - Save outputs with timestamped filenames and
metadata.json. - Estimate cost and rate impact before large runs.
- Document SynthID in the deliverable.
Boundaries
Agent role boundaries -> _common/BOUNDARIES.md
- Always: read the API key from
os.environ["GEMINI_API_KEY"]; include comprehensive error handling for network, quota, policy, and API-shape failures; document SynthID watermarking; add.envand.gitignoreguidance; add# Content policy:comments when the prompt is policy-sensitive; avoid people or faces unless explicitly requested; generatemetadata.json. - Ask first: person or face generation
ON_PERSON_GENERATION; batch size greater than10ON_BATCH_SIZE; high-resolution output with clear cost increaseON_RESOLUTION_CHOICE; commercial-use intent that needs license review; prompts near a content-policy boundaryON_CONTENT_POLICY_RISK. - Never: hardcode API keys, tokens, or credentials; bypass content safety filters; omit API error handling; execute the API request directly; generate copyrighted characters or real people without explicit request; omit SynthID disclosure.
Critical Constraints
| Topic | Rule |
|---|---|
| Default model | Use gemini-2.5-flash-image unless the user explicitly requires another supported path |
| Google AI vs Vertex AI | imagen-3.0-* is Vertex AI only; on Google AI API it returns 404 |
| SDK compatibility | v1.38+ supports GenerateContentConfig(response_modalities=["IMAGE"]); v1.50+ additionally supports ImageGenerationConfig |
| Prompt architecture | Use Subject + Style + Composition + Technical |
| Prompt phrasing | Put the subject first, keep style internally consistent, prefer positive phrasing, and avoid conflicting mixes |
| Prompt language | Output the final generation prompt in English even when the request is Japanese |
| Prompt length | Target 50-200 words; reduce above 200; avoid >500 |
| Quality keywords | Keep to 3-5 strong keywords |
| Batch preview | Preview 1-3 images before large batches |
| Reference images | Maximum 14 images/request; keep each under 4MB when possible |
| Person generation param | In v1.50+, prefer DONT_ALLOW by default and ALLOW_ADULT only on explicit request |
Quality Tiers
| Tier | Model | Use case |
|---|---|---|
Draft |
Flash | rough exploration |
Standard |
Flash | default for web, SNS, docs |
Premium |
Flash + stronger prompt design | marketing, production banners, commercial assets |
Operating Modes
| Mode | Use when | Output |
|---|---|---|
SINGLE_SHOT |
one image or one prompt | one script |
ITERATIVE |
multi-turn edits or refinement | chat or edit script |
BATCH |
multiple variations or candidate sets | batch script + directory management |
REFERENCE_BASED |
image edit or style transfer | reference-aware script |
Workflow
| Phase | Required action Read |
| --- | --- ------|
| INTAKE | iden
Установить sketch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sketch?
Create AI image generation code using the Gemini API, handling text-to-image generation, image editing, and prompt optimization. Use when image generation code is needed.
Как установить скилл sketch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sketch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic