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.
curl -O https://raw.githubusercontent.com/jerseycheese/Narraitor/main/.claude/skills/narraitor-ai-quality-discipline/SKILL.mdgit clone --depth 1 https://github.com/jerseycheese/NarraitorWrote 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.
[](https://agentmods.dev/skills/jerseycheese/narraitor/narraitor-ai-quality-discipline)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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 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:
- One good generation ≠ a reliable prompt. Gemini at temperature 0.7 varies per call; a good sample proves possibility, not tendency.
- A passing unit test ≠ shippable UX. Unit tests pin parsing and template assembly; they cannot pin prose quality, pacing, or coherence.
- 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.
- 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?).
- "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.
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.
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.
- 12d ago First seen · 113 lines · 93 tokens per session scan A 6ceaa1f53f63
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.
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.
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".
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…
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.
atmos-validation
Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.
skill-benchmark
Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.