All products

Write branching fiction with AI

Map reader decisions to chapters, check reachable endings and make a shared scene work for readers who have taken different paths.

Write branching fiction with AI when two routes reach the same locked room but only one has given the reader a key. The interactive-fiction skill helps an agent map the chapter links and keep track of story facts that differ by path. A structurally valid link can still lead to a scene that makes no sense for half the audience.

Start small. A handful of passages, a rejoin and two endings are enough to test the working method. A local export can catch a missing destination, while rereading the shared chapter reveals whether a discovery or object has crossed from one branch into another.

What it does

  • Connect each reader choice to a named passage.
  • Record when a branch supplies information or changes a relationship.
  • Find passages with no route from the opening.
  • Check a rejoin against the state of every incoming path.
  • Prepare an Ink or Twine source export once the graph is sound.

Install and use

  1. Use an authorised Story Skills project, its chapter files and the maker’s official story CLI for local checks and export.
  2. Ask, “Trace both routes into the archive. Only one reader has the key. Identify the first sentence that assumes everybody found it.”
  3. Read each route in order and validate the completed set of destinations before handing off the export.

FAQ

Source

Made by Daniel Dewhurst. Original skill: interactive-fiction, published on GitHub under the MIT licence.

View on GitHub