agentleFS
XucroYuriXucroYuri/how-to-make-script/skills/interactive-branching/SKILL.md

interactive-branching

Skill17 starsChanged 8 months agoMITView on GitHub

需要分支选择结构或交互式叙事地图时使用。

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when player or audience choice must have tracked consequences.

    line 8
  2. Distinctive:

    If the map cannot converge, it is probably too large or too diffuse.

    line 18
  3. Distinctive:

    Ask: "What is the one choice in this story that would genuinely hurt to make?" Real branches start from decisions that cost something.

    line 23
  4. Distinctive:

    Start from the player's emotional stakes, not from the branch diagram.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Interactive Branching

Use this skill when player or audience choice must have tracked consequences.

Workflow

  1. Define the choice question.
  2. Track state and consequences.
  3. Design expansion plus convergence.

Output Contract

  • interactive_branch_map: a branch structure with meaningful choices, consequences, and convergence points.
  • Each branch should differ in value, state, or relationship outcome.
  • If the map cannot converge, it is probably too large or too diffuse.

Posture-Adaptive Guidance

When certainty = lost: Ask: "What is the one choice in this story that would genuinely hurt to make?" Real branches start from decisions that cost something. Do not map until that choice is named.

When source = discover: Start from the player's emotional stakes, not from the branch diagram. "What would a player regret choosing?" is more generative than a binary tree at this stage.

When source = construct: Apply the full workflow: define choice question → track state and consequences → design expansion and convergence. Each branch must differ in value, state, or relationship outcome, not just in surface narrative.

When focus = event: Primary activation context. Branch structure is fundamentally event-layer work: causality, consequence tracking, and convergence logic. Load ka.medium-branching-interactive and ka.causality-chain first.

When focus = character: Character-state tracking is what makes interactive branching feel coherent. Ensure each branch records what the player now knows, feels, or owes — not just what happened.

References

  • wp.interactive-branch-map
  • rb.interactive-branch-map
  • ka.causality-chain
  • ka.cross-protocol-referral-edges
  • ka.medium-branching-interactive
  • ka.medium-game-narrative
  • ka.theme-pressure

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.