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.
npx skills add danjdewhurst/story-skills --skill interactive-fictiongit clone --depth 1 https://github.com/danjdewhurst/story-skillsWrote 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/danjdewhurst/story-skills/interactive-fiction)<a href="https://agentmods.dev/skills/danjdewhurst/story-skills/interactive-fiction"><img src="https://agentmods.dev/badge/skills/danjdewhurst/story-skills/interactive-fiction/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/danjdewhurst/story-skills/interactive-fiction"><img src="https://agentmods.dev/badge/skills/danjdewhurst/story-skills/interactive-fiction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00126 | $0.03207 |
| Opus 5.5 | $0.00050 | $0.01283 |
| Sonnet 5.5 | $0.00025 | $0.00641 |
| Haiku 4.5 | $0.00013 | $0.00321 |
Grade A, and why
interactive-fiction 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 250 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Interactive Fiction
Overview
Plan, draft, and revise a branching book: a story project whose chapters
are passages joined by choices in their frontmatter. The chapters and
their choices are the source of truth. story continuity follows the paths
of choices, and story build --format twee or --format ink turns the
project into a playable Twine or ink story.
This skill owns books written to branch from the start. Turning an existing
linear book into an interactive edition (a branch map drawn from its scenes,
then a copied project) belongs to the adaptation skill; once that edition
project exists, draft and revise its chapters here.
Prerequisites
A story project with story.md in the root. For a new book, start it with
the story-init skill first. Read story.md (language, pov, tense,
form, status, ifid) and chapters/_index.md, then the choices of
every chapter: together they are the graph. A small example is
examples/the-gull-rock-light, a
branch-and-bottleneck story with two endings.
When to Use
- Planning a choice graph: structure, branch points, rejoins, endings
- Writing or changing
choicesentries - Drafting a chapter on a branch, at a rejoin, or at an ending
- Revising a branching book, and reading
state-differs-by-path,unreachable-chapter, and the other branching findings - Building the book as Twine or ink
- NOT for converting a linear book (use
adaptation), drafting a linear chapter (usechapter-writing), or a linear continuity audit (userevision-continuity). Prose craft inside a passage still comes fromscene-craftandline-editing
How The Graph Works
-
Each chapter is one passage. Its
choicesare where the reader can go:choices: - text: Search the rocks for Tobias to: chapter-02 - text: Climb the tower to the lamp to: chapter-03 -
The lowest-numbered chapter is the start.
-
Once any chapter has
choices, the links are exactly the choices: a chapter with none is an ending, and a chapter that leads on to one place needs a single choice (text: Continue). With no choices anywhere the book is linear again. -
textbecomes the link text: no[,],|,->,<-, or line break, and no final<. Quote it if it looks like a number. -
tois a chapter id. It may be the chapter itself (a loop) or, while planning, achapter-NNwith no file yet; the builds need every target written.
What ships with it
2 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.
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.
- 1mo ago Changed 0b9d62495c05
- 1mo ago Changed · +9 lines · +21 tokens per session 95e92f6d5fcc
- 1mo ago First seen · 241 lines · 105 tokens per session scan A 6974e17d9aa0
interactive-fiction is a skill published in the GitHub repository danjdewhurst/story-skills (471 stars, last pushed 6d ago), licensed MIT. It adds 126 tokens to every session and 3,207 once invoked, about $0.0005 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.
interactive-fiction compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| interactive-fictiondanjdewhurst/story-skills | Skill | 471 | 6d ago | MIT | A | 126 | Claude Code |
| demoalivecontext/alive | Skill | 132 | 13d ago | MIT | A | 50 | Claude Code |
| savealivecontext/alive | Skill | 132 | 13d ago | MIT | A | 76 | Claude Code |
| system-cleanupalivecontext/alive | Skill | 132 | 13d ago | MIT | A | 50 | Claude Code |
| system-upgradealivecontext/alive | Skill | 132 | 13d ago | MIT | A | 55 | Claude Code |
| create-walnutalivecontext/alive | Skill | 132 | 13d ago | MIT | A | 62 | Claude Code |
| session-historyalivecontext/alive | Skill | 132 | 13d ago | MIT | A | 74 | Claude Code |