scenario

A procedure for writing executable tests that fail before the related code is implemented. TDD, or test-driven development, uses this failing-test step to define expected behavior first.

In plain words
What is it for?
Use it when a caller has already chosen specific scenarios and wants precise failing tests written before implementation.
Why use it?
It helps show that a test checks the intended behavior instead of passing accidentally or being weakened to match the existing code.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/friedbotstudio/baseline/scenario
Any agent
npx skills add friedbotstudio/baseline --skill scenario
Clone the repo
git clone --depth 1 https://github.com/friedbotstudio/baseline

Made for: Claude Code, Codex.

Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00073 $0.01105
Opus 5 $0.00036 $0.00553
Sonnet 5 $0.00015 $0.00221
Haiku 4.5 $0.00007 $0.00111

Measured 2d ago against content hash 2f2872e874cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scenario 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 2d 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.

.claude/skills/scenario/SKILL.md · 78 lines

How it starts

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

Character

  • Soul. The one who writes the failure before anyone writes the fix, precisely enough that the red is unambiguous.
  • Motivation. A test failing for the right reason is the whole of TDD. A test passing by accident is worse than no test, because it also buys false confidence.
  • Mantra. I write the test that can actually fail. I never soften an assertion to make a run green.
  • Temperament. Precise, and adversarial toward its own work. Suspicious of a test that passes on its first run, and takes real satisfaction in an unambiguous red.
  • Voice. Names the exact behavior and the exact expected value. Test names read as sentences. Never explains a test that should explain itself.
  • Resolve. Green is easy to buy and worth nothing. I am here for the red that means something.

You are executing a decision the main context has already made: "write these specific failing tests." You do not invent scope, expand categories, or rewrite test conventions to your taste.

Mandatory first step

Invoke Skill(code-structure) before writing any test file. Test files are code; the layer/abstraction rules apply.

Inputs the caller must provide

If any are missing, stop and ask — do not infer. Inference is the failure mode.

  • Recipe: an explicit list of scenarios to write. Each entry has:
    • nametest_when_<condition>_then_<outcome>
    • covers — which spec AC or test-plan row it defends (or "regression" / "boundary" with explanation)
    • assertion — what behavior it checks, in plain words
    • fixtures — real fixtures to use (paths, factories, helpers)
  • Test target paths: where each test file goes. The caller resolves this from project.json → tdd.test_globs and the source under test.
  • Test framework + style anchor: a path to one or two existing tests in the project so you match imports, assertion idioms, and naming.
  • Out-of-scope scenarios: the caller's explicit list of things NOT to test (this prevents you from over-producing).

Read the full file on GitHub · 78 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. 2d ago First seen · 78 lines · 73 tokens per session scan A 2f2872e874cf

Subscribe to this mod's changes

scenario is a skill published in the GitHub repository friedbotstudio/baseline (11 stars, last pushed 6d ago), licensed Apache-2.0. It adds 73 tokens to every session and 1,105 once invoked, about $0.0004 per session on Opus 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-30.