cratis-screenplay-specify-outcome

cratis-screenplay-specify-outcome is a skill for Claude Code, Codex from Cratis/AI. It costs 50 tokens per session (953 once invoked), scanned A, original, MIT.

A guide for writing Given/When/Then examples in a Screenplay model. Given/When/Then describes the starting state, the action, and the expected result in a readable behavior example.

In plain words
What is it for?
Use it to specify successful commands, validation errors, stateful or authorized actions, and named scenarios that must pass in the Screenplay test tool.
Why use it?
It turns accepted outcomes and refusals into explicit examples that can be checked automatically. This makes rules such as rejecting an empty name visible and testable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to specify successful commands, validation errors, stateful or authorized actions, and named scenarios that must pass in the Screenplay test tool.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-screenplay-specify-outcome
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 Cratis/AI --skill cratis-screenplay-specify-outcome
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

Made for: Claude Code, Codex.

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 cratis-screenplay-specify-outcome

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-screenplay-specify-outcome/github.svg)](https://agentmods.dev/skills/cratis/ai/cratis-screenplay-specify-outcome)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/cratis-screenplay-specify-outcome"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-screenplay-specify-outcome/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 cratis-screenplay-specify-outcome

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-screenplay-specify-outcome"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-screenplay-specify-outcome.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 953 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.
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.00050 $0.00953
Opus 5.5 $0.00020 $0.00381
Sonnet 5.5 $0.00010 $0.00191
Haiku 4.5 $0.00005 $0.00095

Measured today against content hash 88714cf7b695, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cratis-screenplay-specify-outcome 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 today.

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.

.cratis/ai/skills/cratis-screenplay-specify-outcome/SKILL.md · 74 lines

How it starts

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

Specify successful registration and refusal of an empty name

Start with a concrete case. In model/Authors/registration.play, use the same fixed author ID in both examples so only the name changes.

  1. Start with the command, AuthorId and event from declaring the Authors slice.

  2. Inside the command, add the rule below before produces AuthorRegistered:

    validate
      name not empty message "Name is required"
    
  3. At the same indentation as the command declaration, add the example and specifications:

    example Aster : RegisterAuthor
      id = "11111111-1111-4111-8111-111111111111"
      name = "Aster"
    
    specification RegisteringAster
      when Aster
      then AuthorRegistered
        for "11111111-1111-4111-8111-111111111111"
        name = "Aster"
    
    specification RejectingAnEmptyName
      when Aster name = ""
      then error "Name is required"
    
  4. Run screenplay test model --format json from the application directory. Require each named scenario to pass; an unsupported outcome is unverified.

If a fixture passes but the reported outcome is wrong, choose the observable result before adding more givens.

Choose a state fixture when the command depends on prior state

For a protected command, replay seed facts at the source the command reads. The Lending example shows how to set the caller and when the reference runner can seed the view directly instead.

Resolve the fixture, input names, ID and refusal from the existing model. Use one when, overriding an actual input when needed. Expect the same concrete ID in for. Use then denied for an authorization refusal.

When a command records multiple facts, assert every new fact in the expected order. Choose then events in any order only when their order is not part of the contract. An unexpected extra fact still fails.

Read the full file on GitHub · 74 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · -75 lines 88714cf7b695
  2. 2d ago First seen · 149 lines · 50 tokens per session scan A 1027f5246bee

Subscribe to this mod's changes

cratis-screenplay-specify-outcome is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 953 once invoked, about $0.0002 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-11-27.

Related

cratis-screenplay-specify-outcome compared with skills from other repositories

cratis-screenplay-specify-outcome next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cratis-screenplay-specify-outcomeCratis/AISkill4todayMITA50Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code