Agent skill

Scenario Image

by scenario-labs in scenario-labs/skills

A skill your agent uses when generating or editing images with Scenario through MCP: text-to-image, image-to-image, instruction editing, inpainting or outpainting with a mask, background control…

MITAuto-check passedMedia & Creative

Install Scenario Image

skills CLI
$ npx skills add scenario-labs/skills --skill scenario-image -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install scenario-labs/skills scenario-image --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/scenario-labs/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/scenario-image .claude/skills/scenario-image && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
scenario-image
GitHub stars
946
Token cost
~2.6k tokens
SKILL.md length
1,398 words
Files
1
Skills in repo
146
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when generating or editing images with Scenario through MCP: text-to-image, image-to-image, instruction editing, inpainting or outpainting with a mask, background control…

  • Works in 6 steps: recommend with capability="img2img" and… → upload_asset the product photo, then… → model_schema_get on the pick: the… → …
  • Editing images with Scenario through MCP: text-to-image
  • SKILL.md covers Overview, Quick reference, The three fields that fail runs and Landing an exact size, plus 3 more sections
  • Calls npx

What it does

Scenario Image is an agent skill from scenario-labs/skills. Use when generating or editing images with Scenario through MCP: text-to-image, image-to-image, instruction editing, inpainting or outpainting with a mask, background control, aspect ratio or resolution sizing, several outputs per run, or choosing between Scenario image models. Also when a run fails on prompt length, a plan-restricted model, or a reference image that was silently ignored. Keywords: txt2img, img2img, image edit, inpaint, mask, reference image, aspect ratio.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Image generation. It works with Model Context Protocol. The repository describes itself as: Get production-ready images, video, audio, and 3D from any AI agent: skills that pick the right model, price before spending, and keep characters and brands consistent through… The licence is MIT.

When your agent uses it

  • Editing images with Scenario through MCP: text-to-image
  • Instruction editing
  • Outpainting with a mask
  • Background control

Example prompts

  • “/scenario-image”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. recommend with capability="img2img" and the user's own words as prompt. Handle next_step as the scenario skill directs, and never run a…
  2. upload_asset the product photo, then upload_asset_complete, which returns the asset_id. Only the inline path under ~100KB skips the second…
  3. model_schema_get on the pick: the reference field's name and cap, which sizing family it uses, the prompt max_length, and whether a mask…
  4. For a masked edit, read the mask field's own description before building anything. Masks are not interchangeable: one model wants an alpha…
  5. model_run with the schema's own field names: the prompt, the reference (wrapped in an array only where the schema says array: true), plus…
  6. jobs_wait; its ~180s timeout is not an error, so re-call it with the returned pending_job_ids as job_ids. Then asset_display to review and…

What it can do on your machine

Read from SKILL.md and the folder at commit f6f8ab7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Scenario Image loads about 2.6k tokens when it runs. Until then it costs about 123 tokens; SKILL.md has 1,398 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~123
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from scenario-labs/skills at commit f6f8ab7, republished under its MIT licence (© scenario-labs). 1,398 words, ~2,556 tokens.

Download SKILL.mdSave it as .claude/skills/scenario-image/SKILL.md (or your agent's skills folder).
name
scenario-image
description
Use when generating or editing images with Scenario through MCP: text-to-image, image-to-image, instruction editing, inpainting or outpainting with a mask, background control, aspect ratio or resolution sizing, several outputs per run, or choosing between Scenario image models. Also when a run fails on prompt length, a plan-restricted model, or a reference image that was silently ignored. Keywords: txt2img, img2img, image edit, inpaint, mask, reference image, aspect ratio.
license
MIT

Scenario Image Generation and Editing

Overview

Scenario runs hundreds of image models, split across txt2img (generate from a prompt) and img2img (edit, restyle, inpaint, upscale). The loop is the one the scenario skill teaches. What breaks image runs is the per-model contract: sizing fields, prompt limits, and reference caps differ between two models that do the same job, so read model_schema_get every time. Per-family contracts (sizing families, reference caps, edit modes): scenario-seedream, scenario-gpt-image, scenario-gemini-image, scenario-ideogram, scenario-reve, scenario-luma-image, scenario-mai-image, scenario-grok-imagine-image. Upscaling, grading, effects, expand, resize and the other tool models: see scenario-image-editing. Holding one look across a set: see scenario-consistency. One image from several references, each with one job: scenario-multi-reference. Sprites, icons, and tilesets: see scenario-game-assets. 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

NeedCall
Pick a modelrecommend with capability="txt2img" or "img2img", or search (target="models", public=true)
Read the contractmodel_schema_get, before every model_run
Estimate costmodel_run with dry_run=true; cost_impact: true marks the fields that move price
Generate or editmodel_run, then jobs_wait
Review and saveasset_display, then asset_download (png default, webp, jpg)
Land exact pixelsGenerate at the nearest reachable size, then model_scenario-resize-image (see Landing an exact size)

Inpainting and outpainting are img2img, not capabilities of their own.

The three fields that fail runs

All three are per-model, so take them from the schema rather than from a previous run:

  • Size. Sizing has no common shape: numeric width and height with min, max, and a step to land on; an enum (aspectRatio, a resolution in megapixels or K tiers, a size mixing tiers with pixel pairs); or an aspect ratio alone, which puts an exact pixel target out of reach entirely. Pixels sent to an enum field, or an off-step value, are rejected. When the schema cannot express the size asked for, report what it can reach rather than rounding silently.
  • Prompt length. The prompt field's max_length ranges from roughly 2000 characters to 32000. A prompt that fits one model is a 400 on the next.
  • References. Name (referenceImages, image), cap, and cardinality all come from the schema, and the name settles none of them: a field called referenceImages is a single scalar file on some models. Pass an array only where the schema says array: true, and there pass one even for a lone asset, since a bare string is dropped silently and the run then succeeds while ignoring the reference. With several references, say in the prompt which is which.

A batch-count field (numOutputs, numImages) repeats one prompt, so it yields variations, not a set. Anything with a per-item difference needs one model_run per item.

Landing an exact size

In-game placements need exact pixels (a 210x600 banner, a 256x256 icon), which a generative model may not support directly. Numeric sizing fields snap to a grid (a step of 16 is common, with min and max bounding the range), enum fields offer fixed tiers, and some members silently replace a request below their floor: 512x128 came back as 1408x480 on one member, with no error. When the target is unsupported, generate at the nearest reachable size at or above it, matching the ratio where possible and respecting every schema limit (1024x1024 for a 256x256 icon on a member with a 1K floor; 224x640 for a 210x600 banner only if both dimensions meet that member's limits), then finish with model_scenario-resize-image, a fixed id since it is Scenario's single deterministic exact-dimension resize tool and discovery would only re-derive it: images as an array even for one asset, width and height, and fit cover to fill the box and center-crop the overflow or stretch for exact dimensions at the cost of distortion (contain, the default, can return a smaller image than the box). Choose a larger source only for an explicit quality requirement or documented model guidance, not an assumed family sweet spot. Confirm with asset_get. Downscaling can make softness less visible; resizing upward cannot recover missing detail.

Blur has the same discipline: several members default to a 1K tier with a higher one in the schema, so set the resolution or quality tier explicitly for a new generation. To preserve an approved frame, upscale the exact keeper (scenario-image-editing); re-running its recipe can change the image. On a custom-trained member, check guidance and step count against its schema and model guidance before increasing them. When outputs feel literal, split the prompt into what is fixed and what the model may invent and say so. Invented details must obey the fixed constraints too (no decorative runes in a text-free brief); prompt_spark expands a thin brief into an on-model one before the run.

Show full SKILL.md (611 more words)Show less

Prompt wording

In-image text: quote each string exactly and say where it sits ("the label reads 'NORTH', top center"), keep to a few short strings, and spell a word that keeps mangling letter by letter (NORTH: N, O, R, T, H); unquoted copy gets reworded. Copy that must be letter-perfect (prices, legal lines) is composited with scenario-text-overlay, never prompted. A film-still or cinematic prompt, or a ratio written in prose (2.39:1), can bake letterbox bars into the pixels, and an asset_get dimension check reads them as picture: ask for full frame edge to edge, no letterboxing, no black bars, and carry the ratio in the sizing field alone. Where skin shows, name its texture (visible pores, fine hairs, a faint highlight) or it tends to come back retouched smooth.

An instruction edit names the change and pins the rest: "put the chair on a sunlit terrace; keep its shape, fabric and shadow exactly", or for text, "change only the headline to 'NORTH', same typeface, size and position". Anything unnamed is open to change.

Worked example: replacing a label on a product shot

  1. recommend with capability="img2img" and the user's own words as prompt. Handle next_step as the scenario skill directs, and never run a requires_plan_upgrade entry.
  2. upload_asset the product photo, then upload_asset_complete, which returns the asset_id. Only the inline path under ~100KB skips the second call.
  3. model_schema_get on the pick: the reference field's name and cap, which sizing family it uses, the prompt max_length, and whether a mask field exists.
  4. For a masked edit, read the mask field's own description before building anything. Masks are not interchangeable: one model wants an alpha channel at the source's exact dimensions, another wants a black and white image it resizes itself, and which pixels get painted differs too. With no mask in hand, recommend with capability="img2img" and the masking need in the user's own words finds segmentation models that take a short noun phrase or a box and return one mask per object; most segmentation models in the catalog segment 3D meshes instead, so check capabilities on the pick. Where no convention fits, an instruction editor scopes the edit in prose instead.
  5. model_run with the schema's own field names: the prompt, the reference (wrapped in an array only where the schema says array: true), plus the mask and sizing fields it named. Use dry_run=true first when cost matters.
  6. jobs_wait; its ~180s timeout is not an error, so re-call it with the returned pending_job_ids as job_ids. Then asset_display to review and asset_download to save.

Common mistakes

  • Passing a bare string where the schema marks the reference field array: true: it is dropped without an error, and the output quietly ignores it.
  • Reusing one model's parameter block on another: aspectRatio and width/height rarely coexist, and unknown fields are rejected.
  • Retrying a 403 ModelAccessRestrictedError: it names modelId and requiredPlan, so surface the upgrade or pick another model.
  • Prompting "transparent background": diffusion outputs are opaque. Use a background field when the schema has one, otherwise run a background-removal model afterwards.
  • Re-running an approved frame at a higher size tier and expecting it back sharper: many models expose no seed, and where one exists it reproduces a run only with every other field unchanged, so the re-run is a new image; draft at the cheapest tier, then upscale the exact keeper (scenario-image-editing).
  • Assuming a model can hit a requested pixel size: some expose an aspect ratio and nothing else, and others silently substitute a size for one below their floor. Generate near, then resize (Landing an exact size), and confirm what landed with asset_get, which reports properties.width and properties.height; jobs_wait returns asset ids only.

© scenario-labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/scenario-image of scenario-labs/skills.

Open the folder on GitHubat commit f6f8ab7

Compare with similar skills

Scenario Image next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Scenario Image compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Scenario Image this skillscenario-labs/skills946—~2.6kAutomated safety check: PassMIT
SEO Image GeneratorAgriciDaniel/claude-seo19k2 repos~2.1kAutomated safety check: PassMIT
Gauntlet Loopduolahypercho/gauntlet-loop165—~689Automated safety check: PassMIT
Blog ImageAgriciDaniel/claude-blog2.3k—~3.4kAutomated safety check: PassMIT
Art StyleDV0x/creative-ad-agent120—~477Automated safety check: PassMIT
ContentGerstep/cybos104—~616Automated safety check: PassNone

Similar skills

  • SEO Image Generator

    AgriciDaniel/claude-seo

    Generates Open Graph previews, blog hero images, product photos and infographics for SEO use through Gemini image tools and the banana extension.

    19k GitHub starsUsed in 2 repos~2.1k tokens
    Media & CreativeAuto-check passed
  • Gauntlet Loop

    duolahypercho/gauntlet-loop

    GAME skill. An agent skill from duolahypercho/gauntlet-loop.

    165 GitHub stars~689 tokensUpdated 2 mo ago
    Media & CreativeAuto-check passed
  • Blog Image

    AgriciDaniel/claude-blog

    AI image generation and editing for blog content powered by Gemini via MCP.

    2.3k GitHub stars~3.4k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Art Style

    DV0x/creative-ad-agent

    Creates visual prompts from hooks. An agent skill from DV0x/creative-ad-agent.

    120 GitHub stars~477 tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Content

    Gerstep/cybos

    Generate posts, essays and images following brand guidelines.

    104 GitHub stars~616 tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • ComfyUI Local Driver

    SlavaSexton/ComfyUI-Agent-Kit

    Drives a local ComfyUI install over its HTTP API to generate and edit images, video and audio, with per-model prompt recipes and workflow guidance.

    105 GitHub stars~12k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed

More from scenario-labs/skills

All 146 skills in this repo
  • Scenario Blender Grease Pencil

    scenario-labs/skills

    A skill your agent uses when drawing or animating with Grease Pencil in Blender 5.x from Python: 2D or 2.5D illustration, frame-by-frame animation, a cutout or part-based 2D character, strokes with…

    946 GitHub stars~4.5k tokensUpdated yesterday
    Auto-check passed
  • Scenario Blender Hair

    scenario-labs/skills

    A skill your agent uses when grooming hair or fur in Blender with hair curves, such as a character hairstyle, animal fur, procedural fur in geometry nodes, or hair cards and mesh hair for games.

    946 GitHub stars~4.7k tokensUpdated yesterday
    Auto-check passed
  • A skill your agent uses when lighting, rendering or compositing in Blender: light a character, product or hero shot, interior at dusk or night, three-point or motivated lighting, sun and sky, HDRI…

    946 GitHub stars~5k tokensUpdated yesterday
    Auto-check passed
  • Scenario Chatgpt Pet Create

    scenario-labs/skills

    A skill your agent uses when creating a ChatGPT pet or Codex pet with Scenario: hatching an animated companion from a text idea, a character, mascot or brand cue, or reference photos and art; making…

    946 GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • Scenario Godot Animation

    scenario-labs/skills

    A skill your agent uses when animating characters or scenes in Godot 4.7: AnimationPlayer clips and RESET, AnimationTree state machines and blend spaces built in code, Mixamo or glTF import, loop…

    946 GitHub stars~4.7k tokensUpdated yesterday
    Auto-check passed
  • Scenario Godot Audio

    scenario-labs/skills

    A skill your agent uses when adding or fixing sound in Godot 4.7: audio buses and effects, volume sliders, 'too many sounds', combat audio with hundreds of enemies, sounds clipping or distorting, 3D…

    946 GitHub stars~4.7k tokensUpdated yesterday
    Auto-check passed

Questions about Scenario Image

What does Scenario Image do?

A skill your agent uses when generating or editing images with Scenario through MCP: text-to-image, image-to-image, instruction editing, inpainting or outpainting with a mask, background control…. Scenario Image is an agent skill from scenario-labs/skills. Use when generating or editing images with Scenario through MCP: text-to-image, image-to-image, instruction editing, inpainting or outpainting with a mask, background control, aspect ratio or resolution sizing, several outputs per run, or choosing between Scenario image models.

When should I use Scenario Image?

Scenario Image fits situations like: editing images with Scenario through MCP: text-to-image; instruction editing; outpainting with a mask; background control.

How do I install Scenario Image in Claude Code?

Run `npx skills add scenario-labs/skills --skill scenario-image -a claude-code`. Or copy the skill folder (skills/scenario-image in scenario-labs/skills) into .claude/skills/scenario-image in your project. Claude Code loads it when a task matches its description.

How do I install Scenario Image in Codex?

Run `npx skills add scenario-labs/skills --skill scenario-image -a codex`. Or copy the skill folder (skills/scenario-image in scenario-labs/skills) into .agents/skills/scenario-image in your project. Codex loads it when a task matches its description.

Can I use Scenario Image in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add scenario-labs/skills --skill scenario-image -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scenario-image, .gemini/skills/scenario-image, .github/skills/scenario-image and .opencode/skills/scenario-image in your project.

What does Scenario Image need to run?

Going by SKILL.md and its folder, Scenario Image needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Scenario Image access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Scenario Image safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Scenario Image use?

Scenario Image is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Scenario Image use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Scenario Image?

Skills that share tags, products or a category with Scenario Image: SEO Image Generator (AgriciDaniel/claude-seo, 19k stars), Gauntlet Loop (duolahypercho/gauntlet-loop, 165 stars), Blog Image (AgriciDaniel/claude-blog, 2.3k stars) and Art Style (DV0x/creative-ad-agent, 120 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Scenario Image?

scenario-labs (a GitHub organization) maintains it in scenario-labs/skills, which has 946 GitHub stars. The repository holds 146 skills in this directory. The repository was last updated on October 10, 2026.

Source: scenario-labs/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.