Narraitor: Skill for Claude Code

.claude/skills/narraitor-ai-quality-discipline/SKILL.md

narraitor-ai-quality-discipline is a skill for Claude Code from jerseycheese/Narraitor. It costs 93 tokens per session (2,093 once invoked), scanned A, original, MIT.

A testing discipline for judging AI-generated stories and interactive narrative changes. It treats a single good result as insufficient evidence and compares results across different worlds, characters, and failure cases.

In plain words
What is it for?
Use it when changing prompts, templates, settings, context assembly, or response parsing, and when evaluating story coherence, player choices, or endings.
Why use it?
AI output can vary from one generation to the next, so a successful sample may not mean the change is reliable. This provides a repeatable way to test narrative quality and user experience.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is jerseycheese/Narraitor's own configuration. It tells Claude Code how to work on Narraitor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Narraitor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jerseycheese/Narraitor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jerseycheese/Narraitor/main/.claude/skills/narraitor-ai-quality-discipline/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jerseycheese/Narraitor

Made for: Claude Code.

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 narraitor-ai-quality-discipline

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jerseycheese/narraitor/narraitor-ai-quality-discipline"><img src="https://agentmods.dev/badge/skills/jerseycheese/narraitor/narraitor-ai-quality-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,093 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 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.00093 $0.02093
Opus 5 $0.00046 $0.01046
Sonnet 5 $0.00019 $0.00419
Haiku 4.5 $0.00009 $0.00209

Measured 12d ago against content hash 6ceaa1f53f63, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

narraitor-ai-quality-discipline scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`narraitor-prompt-template-governance` (lifecycle + registry rules) · `narraitor-diagnostics-and-tooling` (curl smokes, watching real payloads) · `narraitor-change-control` (what "reliable" may claim) · `narraitor-produc
.claude/skills/narraitor-ai-quality-discipline/SKILL.md · 113 lines

How it starts

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

Narraitor AI quality discipline

1. Purpose

Prevent the most seductive failure in this project: judging stochastic AI behavior by a single sample. Generation quality claims need the same rigor as code claims — defined coverage, deliberate failure-path exercise, recorded results.

2. When to use

Any change to prompts, templates, context assembly, generation config, parsing/normalization, or any claim about narrative/choice/ending quality.

3. When not to use

  • The generation pipeline is erroring (500s, timeouts, parse crashes) → narraitor-debugging-playbook.
  • Registering/structuring a template → narraitor-prompt-template-governance (the lifecycle); this skill supplies its eval gate.

4. Inputs required

The exact change (template diff, config diff); a live dev server with a working provider key; at least two contrasting worlds and characters (create them if needed — that IS the work).

5. Procedure

The core axioms:

  1. One good generation ≠ a reliable prompt. Gemini at temperature 0.7 varies per call; a good sample proves possibility, not tendency.
  2. A passing unit test ≠ shippable UX. Unit tests pin parsing and template assembly; they cannot pin prose quality, pacing, or coherence.
  3. Model output is not ground truth. It is confidently wrong exactly when it reads most fluent — verify claims the narrative makes about world/character state against the stores.
  4. Coherence is an arc property. A turn can read well while contradicting the session — judge across a multi-turn arc (does it respect established lore facts, character attributes, prior decisions, inventory?).
  5. "Reads better" is a hypothesis. It becomes a result only via the protocol below.

The evaluation protocol (minimum bar for any behavior claim). This section is the SINGLE HOME of the matrix minimums — sibling skills cite it rather than restate numbers; if another file disagrees with this section, this section wins:

1. Fix the variable: change ONE thing (one template, one config value) per evaluation.
2. Coverage matrix: >= 2 contrasting worlds (different genre/tone) x >= 2 characters
   (one established with history, one fresh) — 3+ generations per cell.
3. Arc check: for narrative changes, play >= 3 consecutive turns in one cell;
   verify continuity against loreStore facts and prior segments.
4. Failure drill: exercise the non-happy path at least once —
   empty/malformed response handling (the parse/normalize layer), a slow response,
   and a missing/invalid key. MECHANISM, by failure type — they need different tools.
   There is NO in-app mock toggle; mock at the network boundary or below:
   - Slow / error / rate-limit / intermittent: intercept the route. In Playwright,
     tests/visual/utils/mockApi.ts already routes the AI endpoints and takes
     per-endpoint delays (narrativeDelayMs / choicesDelayMs / endingDelayMs); for a
     non-200 or an intermittent failure, add a `page.route` handler that fulfills with
     the status you want. In Jest, mock the src/lib/api wrapper the component calls.
   - Truly malformed/empty response BODY (the parse-error path — e.g. the item-image
     20%-parse-failure class): exercise at the parse layer with a unit fixture (a
     `Response` whose `.json()` throws). A routed mock still returns well-formed bytes,
     so it cannot reproduce this class.
   - Missing/invalid key: omit or corrupt the provider key (see diagnostics-and-tooling).
     Routes fall back on their own when no key resolves, so a keyless dev environment
     is itself a useful drill.
   Timeouts are layered: 30s server-side on generate/choices, 120s client-side in aiFetch.
5. Record: for each cell, verdict + one representative excerpt + what you compared against.
   Template: `.claude/skills/narraitor-prompt-template-governance/templates/eval-log.md`.
6. Verdict language: "improved on the evaluated matrix" — never "better" unqualified.

Read the full file on GitHub · 113 lines

Files

What ships with it

1 file 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. 12d ago First seen · 113 lines · 93 tokens per session scan A 6ceaa1f53f63

Subscribe to this mod's changes

narraitor-ai-quality-discipline is a skill published in the GitHub repository jerseycheese/Narraitor (30 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 2,093 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

neuron-evaluation-engineer

Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…

neuron-core/neuron-ai · 77 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens

skill-benchmark

Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.

HoangNguyen0403/agent-skills-standard · 16 tokens