cratis-screenplay-streams-and-consistency

cratis-screenplay-streams-and-consistency is a skill for Claude Code, Codex from Cratis/AI. It costs 52 tokens per session (1,009 once invoked), scanned A, original, MIT.

A design guide for event streams and consistency in Screenplay models. An event stream is an ordered record of facts, and consistency describes which rules must hold together when changes happen.

In plain words
What is it for?
It is for choosing stream identities, placing atomic rules, defining event size, handling retries and duplicates, and planning changes to event formats. It also covers boundaries between modules and teams.
Why use it?
It helps prevent unclear ownership of facts and rules, especially when requests race, retry, or replay. It makes clear which rules are enforced immediately and which are only recorded.

Skill for Claude CodeCodex

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

Good fit It is for choosing stream identities, placing atomic rules, defining event size, handling retries and duplicates, and planning changes to event formats. It also covers boundaries between modules and teams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-screenplay-streams-and-consistency
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-streams-and-consistency
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-streams-and-consistency

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-screenplay-streams-and-consistency"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-screenplay-streams-and-consistency.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,009 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.00052 $0.01009
Opus 5.5 $0.00021 $0.00404
Sonnet 5.5 $0.00010 $0.00202
Haiku 4.5 $0.00005 $0.00101

Measured today against content hash f25972af10d7, 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-streams-and-consistency 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-streams-and-consistency/SKILL.md · 28 lines

How it starts

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

Choose an identity and protect its decisions

Default to one business identity per stream. Keep related IDs in the payload only when a consumer needs them. For example, an enrollment stream answers “Is this member enrolled in this course?” A seat-limit change belongs to the course, even when both facts refer to it.

  1. List the writers. Inspect every command, reaction and capture that writes the history. Give each identifier an identity sentence and each event a reason to belong. Use stream patterns for the membership table, split criteria, fact granularity and lifecycle. For unresolved decisions, use the interview; ask one missing question at a time. Record an unattended assumption as ASSUMED in model documentation and the ignored STATE.md.
  2. Place each rule at its authoritative decision point. Fill the invariant table. Use validation for rules on inputs alone, a named constraint covering all writers for uniqueness, and reads <View> under root command reads protected for an admitted state-dependent rule. Never substitute caller assertions or unguarded view reads. If protection is unavailable, keep the rule visible as intent, mark it NOT enforced in the slice description, record the missing guarantee, race and intended mechanism in slice documentation, and assign an owner in STATE.md. Never weaken authorization, pii or secret to pass a tool.
  3. Specify a race, a retry and a duplicate for each rule. For a lost reply, reuse the operation identity chosen before the first attempt. A generated identifier is fresh per accepted operation, not deduplication. Use unique event only for a genuinely once-only fact; use a value constraint for a claim across sources. See the worked enrollment model for a competing claim, release and an explicitly unprotected rule. Use the review questions to challenge the outcome.
  4. Separate identity from storage and views. Use Chronicle boundaries for routing, tenancy, privacy and target guarantees, stream ID rules for typed route sources and view keys when a view needs its own key. Keep pii and secret off identities; use surrogate IDs and protected payload. A narrowed caller-supplied concurrency scope and a strategy-issued scope behave differently on their first append; use the first-append check in the invariant reference rather than assuming either succeeded.

Read the full file on GitHub · 28 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. today Changed · -177 lines · +11 tokens per session f25972af10d7
  2. 17d ago Changed · +2 lines 7034bdc52448
  3. 1mo ago Changed · -86 tokens per session d4cf41ceb05c
  4. 1mo ago Changed · +3 lines 634db313b38a
  5. 1mo ago Changed · +2 lines e842d56d0b07
  6. 1mo ago Changed 8420cb336aa8
  7. 1mo ago Changed · +6 lines 18304c470928
  8. 1mo ago Changed · +1 lines 1912c0b2c4f1
  9. 1mo ago Changed · -54 lines 66d95d17cb60
  10. 1mo ago First seen · 245 lines · 127 tokens per session scan A 815530e64896

Subscribe to this mod's changes

cratis-screenplay-streams-and-consistency is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,009 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-10-07.

Related

cratis-screenplay-streams-and-consistency compared with skills from other repositories

cratis-screenplay-streams-and-consistency next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cratis-screenplay-streams-and-consistencyCratis/AISkill4todayMITA52Claude 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