story-structure-game

story-structure-game is a skill for Claude Code from fcsouza/agent-skills. It costs 50 tokens per session (791 once invoked), scanned A, original, MIT.

A design guide for interactive game stories with branching paths and player choices.

In plain words
What is it for?
Use it to design branching storylines, non-linear plots, dialogue systems, story arcs, or act structures for games.
Why use it?
It helps organise narratives that do not follow one fixed sequence, including how choices affect story structure and player agency.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the game-dev plugin — 39 skills shipped together

Good fit Use it to design branching storylines, non-linear plots, dialogue systems, story arcs, or act structures for games.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fcsouza/agent-skills/story-structure-game
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 fcsouza/agent-skills --skill story-structure-game
Clone the repo
git clone --depth 1 https://github.com/fcsouza/agent-skills

Made for: Claude Code.

Or install game-dev, the plugin that ships this one along with the rest of its 39 skills.

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 story-structure-game

README.md
[![agentmods](https://agentmods.dev/badge/skills/fcsouza/agent-skills/story-structure-game/github.svg)](https://agentmods.dev/skills/fcsouza/agent-skills/story-structure-game)
Your own site
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/story-structure-game"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/story-structure-game/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 story-structure-game

Your own site · 80×15
<a href="https://agentmods.dev/skills/fcsouza/agent-skills/story-structure-game"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/story-structure-game.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 791 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.00791
Opus 5.5 $0.00020 $0.00316
Sonnet 5.5 $0.00010 $0.00158
Haiku 4.5 $0.00005 $0.00079

Measured 19d ago against content hash 9288e7f4778c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

story-structure-game 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 19d 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.

skills/story-structure-game/SKILL.md · 60 lines

How it starts

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

Story Structure for Games

Pick a method first

Choose one before you draw any beats.

  • String of pearls: fixed story scenes alternate with free-play stretches. You control the plot and the player stays on the story path. Pick this when the story is the main draw.
  • Story machine: you write no plot ahead. The rules and systems produce events players want to retell. Pick this when the systems are the main draw.

Ask of either method: which conflicts and choices let different stories arise, how can players make the story theirs, and does play produce a good interest curve.

For modular narrative built from small recombinable pieces, see Ken Levine's GDC 2014 talk "Narrative Legos" in references/sources.md.

Frame the arc

An act frame gives a story shape. Use it as a skeleton, not a formula.

  • Setup: hook, world, inciting incident, first real player choice.
  • Confrontation: rising challenges, major choices, consequences that compound, a midpoint turn.
  • Resolution: climax, final choice, outcome shaped by earlier choices, denouement.

Give the protagonist goals, obstacles and conflicts that match what the player does in play. Space tense beats with quiet ones. Keep world logic consistent; see quest-narrative-coherence and worldbuilding.

Plan branching

Choice trees grow fast: ten levels of three choices give a tree of 88,573 nodes (Schell's figure). You cannot write or test the full tree. Decide how you will cut it before you write branches.

  1. List the choices the player must feel. Mark the rest as flags that change later text, not new scenes.
  2. Converge branches where you must. Convergence cheapens the early choices, so carry their effects forward: the world, the dialogue and the available options change after the merge, even if the next scene does not.
  3. Plan the endings. Equal endings rarely work: players ask which one is the real one and dislike replaying to see the rest. Prefer one ending shaped by tracked choices. If you want two endings, make each a full, different story, such as a light path and a dark path.
  4. Limit story verbs. Games offer few ways to speak or act in story terms, so each choice must map to something the game can show.
  5. Decide whether the player can undo. Undo removes tragedy from a loss.
  6. Test every path that remains after the cuts, from start to finish.

Read the full file on GitHub · 60 lines

Files

What ships with it

3 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. 19d ago Changed · -38 lines 9288e7f4778c
  2. 3mo ago First seen · 98 lines · 50 tokens per session scan A 678f6772b188

Subscribe to this mod's changes

story-structure-game is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 791 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-08-30.

Related

story-structure-game compared with skills from other repositories

story-structure-game next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
story-structure-gamefcsouza/agent-skillsSkill29todayMITA50Claude Code
playtest-reportDonchitos/Claude-Code-Game-StudiosSkill42k24d agoMITA20Claude Code
godot-signals-groupsgamedev-skills/awesome-gamedev-agent-skillsSkill13k3d agoApache-2.0A93Claude Code
scenario-unreal-gameplayscenario-labs/skillsSkill4.7kyesterdayMITA121Claude Code
texture-workflowarjun988/blender-skillsSkill5.8k27d agoMITA41Claude Code
motionOpenDCAI/GameFactory-3ASkill1.6kyesterdayApache-2.0A0Claude Code, Codex
gamedev-shadersericrisco/rsc-harnessSkill707yesterdayMITA102Claude Code, Codex