scenario-grok-imagine-image — скилл для Claude Code: запуск
Генерирует и редактирует изображения через модели Grok Imagine на Scenario. Пригодится для постеров, баннеров и упаковок с чётким текстом в кадре.
npx skills add scenario-labs/skills --skill scenario-grok-imagine-image -a claude-codeЧто делает scenario-grok-imagine-image
Скилл управляет генерацией и редактированием картинок через линейку моделей xAI Grok Imagine на платформе Scenario. Он работает через MCP-инструменты search, model_schema_get и model_run. Режим работы зависит от параметров: если список referenceImages пустой, запускается генерация по тексту, а при передаче до трёх ID исходных картинок модель переходит в режим правок.
В семействе есть три модели: Image, Quality и 2.0. Они поддерживают пропорции до 20:9 и 9:20, разрешения 1k и 2k, а также пакетную генерацию от 1 до 10 вариантов. Масок, сидов и негативных промптов в семействе нет совсем. Главная сила моделей — чёткий рендеринг типографики. Чтобы текст на постерах не плыл, любые надписи нужно брать в кавычки и указывать прямо в промпте.
При редактировании параметр aspectRatio полностью игнорируется, поэтому менять пропорции исходника придётся заранее. Для работы скилла требуется базовый скилл scenario, отвечающий за сессию и загрузку файлов.
Какие задачи решает
- сгенерировать постер или упаковку с точными надписями
- изменить изображение по текстовой инструкции без масок
- подобрать пропорции от 20:9 до 9:20 под широкоформатные баннеры
- прогнать серию до 10 вариаций одного промпта в 1k или 2k
Примеры запросов агенту
- Сделай постер напитка с надписью 'LUMEN' белым шрифтом через модель Grok Imagine 2.0 в разрешении 2k
- Добавь этикетку на фото бутылки из asset_abc, сохранив освещение и фон без изменений
- Сгенерируй баннер 20:9 в Grok Imagine Quality в трёх вариантах
Как установить scenario-grok-imagine-image
1Через Skills CLI (Vercel)
npx skills add scenario-labs/skills --skill scenario-grok-imagine-image -a claude-code2Вручную: положить файлы
~/.claude/skills/scenario-grok-imagine-image/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/scenario-grok-imagine-image/
1Через Skills CLI (Vercel)
npx skills add scenario-labs/skills --skill scenario-grok-imagine-image -a codex2Вручную: положить файлы
.agents/skills/scenario-grok-imagine-image/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add scenario-labs/skills --skill scenario-grok-imagine-image -a cursor2Вручную: положить файлы
.cursor/skills/scenario-grok-imagine-image/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install scenario-labs/skills scenario-grok-imagine-image2Вручную: положить файлы
.github/skills/scenario-grok-imagine-image/SKILL.md1Через Skills CLI (Vercel)
npx skills add scenario-labs/skills --skill scenario-grok-imagine-image -a gemini-cli2Командой платформы
gemini skills install https://github.com/scenario-labs/skills --path skills/scenario-grok-imagine-imageВручную: положить файлы
.devin/skills/scenario-grok-imagine-image/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add scenario-labs/skills --skill scenario-grok-imagine-image -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о scenario-grok-imagine-image
Как установить scenario-grok-imagine-image в Claude Code?
Выполните команду npx skills add scenario-labs/skills --skill scenario-grok-imagine-image -a claude-code в терминале.
Что делает скилл scenario-grok-imagine-image?
Он управляет моделями xAI Grok Imagine через платформу Scenario для создания картинок по тексту и редактирования готовых файлов по инструкциям.
Как устроено редактирование изображений без масок?
Скилл передаёт до трёх картинок в referenceImages и текстовую инструкцию с описанием изменений. Модель наследует пропорции оригинала и игнорирует параметр aspectRatio.
Исходный текст
SKILL.md · MIT
---
name: scenario-grok-imagine-image
description: "Use when generating or editing images with Grok Imagine models on Scenario via MCP: text-to-image, instruction editing with up to three reference images, posters, packaging, ads, or infographics with exact in-image text, photoreal shots from camera and lighting cues, extended aspect ratios up to 20:9 and 9:20, quality and resolution tiers, or batches of variations. Keywords: Grok Imagine Image 2.0, Image Quality, xAI, Aurora, Grok, txt2img, img2img, typography, 2K."
license: MIT
---
# Scenario Grok Imagine Images
## Overview
Grok Imagine, xAI's image family on Scenario, puts generation and editing in every member: the same
model reads an empty `referenceImages` as text-to-image and a filled one as an edit, so the inputs
pick the mode and the member picks the tier. Members ship side by side, agreeing on the prompt
contract and disagreeing on knobs and price, so discover them with `search` and treat
`model_schema_get` as the contract. The Grok Imagine video members belong to the
`scenario-grok-imagine-video` skill.
Connection and the core loop: see the `scenario` skill; model-agnostic image work: the
`scenario-image` skill. If a sibling skill named here is missing from your available skills, ask the
user to install it (`npx skills add scenario-labs/skills --skill <name>`); unattended, proceed from
tool schemas and flag the gap.
## Quick reference
At authoring time (caps are per member, read the live schema):
| Member | Aspect ratios | Notes |
| ------- | ------------------------------------------- | ------------------------------------------------------ |
| 2.0 | 14 values up to 20:9 and 9:20, default auto | adds `quality` (low, medium); strongest text and edits |
| Quality | same 14, default 1:1 | fast at 2k; price near flat across variants |
| Image | 10 values, 2:1 through 1:2 | cheapest per image |
The rest is shared: `prompt` up to 10000 characters, `referenceImages` capped at 3, `numOutputs` 1
to 10, `resolution` at 1k or 2k. No seed, mask, negative prompt, or pixel sizing exists anywhere in
the family: size is ratio times resolution tier, and `aspectRatio` decides what is in frame, not
just the crop. In editing mode `aspectRatio` is ignored entirely and the output follows the source's
proportions. The price spread is why the older members stay live: one image on the unversioned
member cost a fraction of a versioned run at authoring time, and 2.0's 2k text-to-image ran well
over a minute where the others took seconds. So iterate cheap and fast (the unversioned member, or
2.0 at `quality: "low"` and 1k), spend a medium 2k run on keepers, and `dry_run` two members on the
same job before a batch: `numOutputs`, `quality`, `resolution`, and references all move price.
## Write the copy, not a vibe
The family's edge is legible in-image text: posters, packaging, infographics, memes. It only pays
when the prompt carries the copy verbatim: wrap every literal string in quotes, give each a role
("the title reads ...", "a line beneath reads ..."), keep strings short, and close with "no other
text", or the model invents extra labels. Real numbers and statistics go in as quoted copy too,
since invented figures look plausible. Render small type at 2k and proofread in `asset_display`
before building on the result. For the rest, write a short natural-language brief, subject, setting,
composition, light, finish, in 30 to 80 words: quality adjectives ("8K", "masterpiece") are ignored
and negatives mostly too, so state positives ("clean empty background", not "no clutter") and keep
one aesthetic per prompt.
## Edits are instructions, no mask exists
Editing is prompt-driven: pass up to three `referenceImages` and describe the change. Two habits
keep it surgical: describe only what changes and name what stays ("keep the pose, background, and
lighting unchanged"), and chain one edit per run instead of stacking several. With more than one
reference, state each image's role (subject, style, scene) so the blend lands where intended. The
output inherits the source's proportions, so reframe before the edit, never with `aspectRatio`.
## Worked example: a branded label onto a product photo
1. `search` with `target="models"`, `query="grok imagine image"`, `public=true`. Prefer the newest
non-deprecated hit, e.g. `model_xai-grok-imagine-image-2-0` (a live hit at authoring time:
re-discover each session).
2. `model_schema_get` with that id: the reference cap, `quality` and `resolution` values, and the
ratio list before anything else.
3. `upload_asset` the product photo (see the `scenario` skill) to get its asset id.
4. `model_run` with that `model_id`, `dry_run=true`, and the exact
`parameters={"prompt": "Add a minimalist front label to the bottle where the title reads \"LUMEN\" in a clean white serif and a smaller line beneath reads \"Sparkling Citrus Soda\". Keep the bottle shape, glass tint, background, shadows, and lighting unchanged, no other text.", "referenceImages": ["asset_abc"], "quality": "medium", "resolution": "2k"}`;
re-estimate after any change to `quality`, `resolution`, `numOutputs`, or references.
5. Repeat `model_run` with `wait=false`, then `jobs_wait` with the returned job id, re-called with
`pending_job_ids` on timeout, never a second `model_run`.
6. `asset_display` and proofread the label at full size, then `asset_download` the keeper.
## Common mistakes
- Setting `aspectRatio` on an edit: it is ignored and the output keeps the source's proportions;
reframe the source first.
- Describing copy loosely ("a catchy tagline"): text comes back garbled or invented; quote exact
strings and end with "no other text".
- Negative prompts: largely ignored; state the positive instead.
- A bare string where the schema says array: one reference still goes as `["asset_x"]`.
- Carrying `quality` beyond 2.0: at authoring time no other member had the field; check the live
schema before reusing parameters across members.
- Fine print at 1k: small type blurs; render text-heavy finals at 2k.
© scenario-labs · MIT · scenario-labs/skills