scenario-refine-loop

scenario-refine-loop is a skill for Claude Code from scenario-labs/skills. It costs 105 tokens per session (1,440 once invoked), scanned A, original, MIT.

A guide for checking generated images against a written brief and improving them through a limited series of targeted revisions.

In plain words
What is it for?
Use it to define pass-or-fail checks, generate a small test batch, review assets, diagnose problems, and apply focused fixes.
Why use it?
It prevents accepting unsuitable first attempts or wasting resources on endless rewording and retries.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 07.-reviewing-and-organizing-output plugin — 4 skills shipped together , and of 08.-reviewing-and-organizing-output

Good fit Use it to define pass-or-fail checks, generate a small test batch, review assets, diagnose problems, and apply focused fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scenario-labs/skills/scenario-refine-loop
About the project

Scenario Agent Skills is a collection of instructions that teaches AI coding agents to create images, video, audio, textures, skyboxes, and 3D assets through the Scenario MCP server, an interface to Scenario’s generation tools and custom-trained models. It serves game, entertainment, marketing, and other creative work, and also includes workflows for digital content creation software and game engines. The catalogue entries are these skills, along with plugins, commands, agents, instructions, settings, and hooks for using Scenario or driving supported creative applications.

scenario-labs/skills · 4,352 stars · on GitHub · skills.sh

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scenario-labs/skills --skill scenario-refine-loop
Clone the repo
git clone --depth 1 https://github.com/scenario-labs/skills

Made for: Claude Code.

Or install 07.-reviewing-and-organizing-output, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scenario-refine-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/scenario-labs/skills/scenario-refine-loop/github.svg)](https://agentmods.dev/skills/scenario-labs/skills/scenario-refine-loop)
Your own site
<a href="https://agentmods.dev/skills/scenario-labs/skills/scenario-refine-loop"><img src="https://agentmods.dev/badge/skills/scenario-labs/skills/scenario-refine-loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scenario-refine-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/scenario-labs/skills/scenario-refine-loop"><img src="https://agentmods.dev/badge/skills/scenario-labs/skills/scenario-refine-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,440 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 30 Oct 2026
  • Snyk warn 30 Oct 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.01440
Opus 5.5 $0.00042 $0.00576
Sonnet 5.5 $0.00021 $0.00288
Haiku 4.5 $0.00011 $0.00144

Measured 1mo ago against content hash 43c37cc91680, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scenario-refine-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/scenario-refine-loop/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scenario Refine Loop

Overview

Agents fail generation QA in two symmetric ways: accepting the first roll, or rewording the whole prompt and re-rolling until the budget dies. Both skip the same two artifacts, a written rubric and a diagnosis. The loop that converges: rubric before generating, a small batch, a recorded verdict per asset, the cheapest targeted fix per failure, a hard round cap. Connection and the core loop: see the scenario skill. Critic tool contracts: scenario-asset-analysis. Baseline discipline: scenario-consistency. If a sibling skill named here is missing from your available skills, load it with skill_get (Scenario MCP) or ask the user to install it (https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag the gap.

Quick reference

Step Do
1. Rubric Before generating, turn the brief into pass/fail lines a viewer can check ("subject centered on a plain field"), never taste words
2. Generate The smallest batch that tests the recipe, at the cheapest size or quality tier the schema offers on which every rubric line can still be judged; dry_run when cost matters
3. Critique asset_analyze: up to 10 images per call, one instruction embedding the rubric and a fixed per-image output shape
4. Fix Route every fail line to the cheapest fix that addresses it (table below)
5. Stop A clean round ships; three rounds without one, or one line failing twice under different fixes, means report, not respin

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 43c37cc91680
  2. 1mo ago Changed · +28 lines bc4e259291be
  3. 2mo ago Changed · +2 lines 3174e9723178
  4. 3mo ago First seen · 58 lines · 105 tokens per session scan A 4f1ef4ae0e23

Subscribe to this mod's changes

scenario-refine-loop is a skill published in the GitHub repository scenario-labs/skills (4,352 stars, last pushed today), licensed MIT. It adds 105 tokens to every session and 1,440 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

scenario-refine-loop compared with skills from other repositories

scenario-refine-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scenario-refine-loopscenario-labs/skillsSkill4.4ktodayMITA105Claude Code
blender-web-pipelinemhd347/blender-expert-skillSkill26mo agononeA116Claude Code, Codex
work-with-creators-creator-vettinggooseworks-ai/goose-skillsSkill1.4k2d agoMITA110Claude Code, Codex
playwright-clitestdino-hq/playwright-skillSkill4275d agoMITA64Claude Code, Codex
master-yinguangxr843/Master-skillSkill609yesterdaynoneA274Claude Code
compact-bensz-skillshuangwb8/skillsSkill51yesterdayMITA65Claude Code, Codex
execute-phasegtrabanco/agentic-workflowSkill25todayMITA106Claude Code