Логотип Interactive Fiction

Interactive Fiction

Сообщество
jwynia
interactive-fiction

Находите недостатки в разветвлённых сюжетах. Используйте этот навык, если выбор кажется бессмысленным, ветвление становится неуправляемым, свобода действий игрока конфликтует с заданным сюжетом или интерактивные элементы нарушают ход повествования.

Add to TypingMind

Обзор

Издательjwynia
Репозиторийagent-skills
Название навыкаinteractive-fiction
Звёзды
159
Форки
20
Файлы в комплекте
Только инструкции
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — jwynia. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Interactive Fiction в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/jwynia/agent-skills/tree/main/skills/creative/fiction/application/interactive-fiction
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jwynia/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/creative/fiction/application/interactive-fiction .claude/skills/interactive-fiction
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Interactive Fiction в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Interactive Fiction, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Interactive Fiction не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Interactive Fiction: Diagnostic Skill

You diagnose problems in branching narratives and player-driven stories. Your role is to help writers balance meaningful player agency with coherent narrative.

Core Principle

Agency and authorship coexist.

The tension between player freedom and narrative coherence is a false dilemma. The best interactive fiction provides meaningful choices, authored emotional payoff, and constrained agency within a designed possibility space.


Interactive Fiction Types

TypeInteractionStrengthsWeaknesses
Parser-basedNatural language commandsHigh freedom, puzzle-oriented"Guess the verb" friction
Choice-basedSelect from optionsConstrained, easier to authorRisk of false choices
Hybrid (VN, RPG)Multiple modesRich, persistent stateHigh authoring burden
Tabletop scenarioGM interpretsDynamic, improvisationalRequires facilitator

The Interactive Fiction States

State IF1: Meaningless Choices

Symptoms: Choices don't matter. All paths converge immediately. Players stop caring about decisions. "It doesn't matter what I pick" feeling.

The Meaningful Choice Test:

  1. Distinct options — Each choice represents different approach/value
  2. Perceivable consequences — Player sees results (even if delayed)
  3. Irreversibility — Can't immediately undo and try another
  4. Character expression — Choice reveals something about protagonist

Key Questions:

  • Does each choice lead to different content?
  • Can players perceive consequences within this session?
  • Are choices about values/approaches or just navigation?
  • Do choices express character or just optimize outcomes?

Interventions:

  • Add delayed consequences (choice sets flag, affects later scene)
  • Make choices about values, not right/wrong
  • Show consequences visibly (even small ones)
  • Use foldback structure that varies texture, not just destination

State IF2: Unmanageable Branching

Symptoms: Exponential content requirements. Too many paths to write. Can't maintain quality across branches. Story structure collapsing under branch weight.

The Math Problem:

  • 3 binary choices = 8 paths
  • 5 binary choices = 32 paths
  • 10 binary choices = 1,024 paths

Key Questions:

  • How many true branches currently exist?
  • Which branches could reconverge without feeling cheap?
  • Are you tracking state or writing parallel universes?
  • What's essential variation vs. nice-to-have?

Branching Solutions:

TechniqueDescriptionTrade-off
FoldbackBranches reconverge at key beatsMay feel railroaded if obvious
Delayed consequencesFlags alter later content, not pathSame structure, different texture
Quality-basedStorylets unlock by accumulated stateHarder to ensure dramatic arc
BottleneckMultiple paths through fixed story beatsPreserves authored climaxes

Interventions:

  • Identify natural reconvergence points
  • Replace true branches with state flags
  • Design possibility space, not decision tree
  • Accept that not everything can vary

State IF3: False Choice Discovered

Symptoms: Players realize choices don't matter. Trust is broken. Marketed agency wasn't delivered. "I tried both options and got the same thing."

Key Questions:

  • How often do choices actually diverge?
  • Can players tell when they're being railroaded?
  • Was agency promised but not delivered?
  • Is the illusion working or broken?

When False Choices Are Acceptable:

  • Player doesn't realize it's false
  • Choice expressed character even if outcome unchanged
  • Resource constraints required it (be intentional)

When False Choices Are Problematic:

  • Player notices and feels cheated
  • Repeated pattern destroys trust
  • Marketed features don't exist

Interventions:

  • If choices can't matter, don't offer them
  • Use expression choices (same outcome, different character moment)
  • Be honest about agency scope
  • Fewer real choices beats many false ones

State IF4: Agency vs. Authored Meaning

Symptoms: Full player freedom creates incoherent stories. Or: fixed story makes "interactive" feel pointless. Writer can't reconcile openness with craft.

The Tension:

  • Full agency: Player controls everything → story may be incoherent
  • Full authorship: Story is fixed → why is it interactive?

Key Questions:

  • What is the possibility space? (Not infinite—designed)
  • Is the protagonist defined or a blank slate?
  • What constraints exist naturally in the fiction?
  • What must the author control to deliver the experience?

Resolution: Constrained Agency The author designs the possibility space. The player navigates within it.

Constraint Techniques:

  • Fixed protagonist personality (choices within character)
  • Environmental constraints (can't leave the island)
  • Time pressure (must decide, can't optimize)
  • Incomplete information (can't calculate best path)

Interventions:

  • Define the possibility space explicitly
  • Constrain via fiction, not arbitrary limits
  • Let player be author of "how," you be author of "what matters"
  • Multiple valid endings, not one "true" ending

State IF5: Story Feels Like Flowchart

Symptoms: Reading experience is mechanical. Choices interrupt rather than emerge from story. Pacing destroyed by decision points. More menu than narrative.

Key Questions:

  • Is there continuous narrative between choices?
  • Do choices emerge from story or interrupt it?
  • Is pacing serving story or choice frequency?
  • Are scenes breathing or just decision points?

Diagnostic Checklist:

  • Narrative flows between choice points
  • Choices emerge from dramatic moments
  • Scenes have goal-conflict-disaster even with branches
  • Pacing varies (not constant decision frequency)

Interventions:

  • Let story breathe between decisions
  • Integrate choices into scenes, not between them
  • Quality over quantity of choices
  • Some paths can be choice-light; others choice-heavy

State IF6: Multiple Endings, No Satisfaction

Symptoms: Each ending feels hollow. "Bad endings" punish rather than satisfy. One "true ending" invalidates others. Endings don't feel earned.

Key Questions:

  • Does each ending provide closure for its path?
  • Are endings ranked (true vs. bad) or parallel (different values)?
  • Does player's path lead logically to their ending?
  • Are endings worth experiencing, or just failure states?

Ending Types:

TypeDescriptionRisk
Branch endingsDifferent conclusions by pathUnequal effort to achieve
Quality endingsSame ending, quality variesCan feel like high score
Hidden endingsSecret conclusionsCompletionist frustration

The "True Ending" Problem: If one ending is canonical, others feel invalidated. Player optimizes rather than roleplays.

Interventions:

  • All endings should be valid outcomes of different values
  • Each ending earns the path that led to it
  • Don't punish with "bad" endings—make all endings interesting
  • Endings can be different without being ranked

State IF7: State Management Chaos

Symptoms: Can't track what player has done. Contradictions appear. Variables proliferate. Scene logic becomes unmaintainable.

Key Questions:

  • What state actually matters?
  • Are you tracking too much?
  • Can state be reduced to fewer meaningful variables?
  • Does state produce visible consequences?

What State Should Produce:

  • Gate conditions — Access to content based on state
  • Variation — Same scene, different based on state
  • Consequences — Outcomes modified by accumulated state

State Types:

TypePurposeExample
Plot flagsWhat happenedMet the mentor?
Relationship valuesCharacter dynamicsTrust level
ResourcesEconomic/survivalMoney, health
QualitiesCharacter developmentCourage stat
InventoryObjects/abilitiesKey items

Interventions:

  • Reduce to essential state only
  • Group related flags into fewer variables
  • Ensure state produces visible consequences
  • Accept players won't remember everything—remind them

Branching Structure Patterns

Linear with Windows

Mostly linear, occasional choice moments. Choices affect scenes but not arc.

─────[choice]───────[choice]───────[choice]─────
        │               │               │
    variation       variation       variation

Best for: Character-focused stories, expression over outcome.

Bottleneck Structure

Multiple paths but key beats are fixed:

    ┌─A─┐       ┌─D─┐
Start───┼─────Midpoint───┼─────Climax─────End
    └─B─┘       └─E─┘

Best for: Balancing agency with authored climaxes.

Branch and Bottleneck

Early branches create different experiences, converge for endings:

         ┌──────Route A──────┐
Start ───┤                   ├─── Endings (3-4)
         └──────Route B──────┘

Best for: Replayability with manageable scope.

Time Loop

Same events, player knowledge persists, choices informed by attempts.

Best for: Puzzle-stories, tragedy where ending is fixed but understanding deepens.


Choice Design Quick Reference

Choice Types

TypeDescriptionQuality
Binary moralRight vs. wrongToo simple—avoid
DilemmaTwo goods in conflictBest—no clear answer
ExpressionSame outcome, different characterValid if authentic
StrategicRisk/reward calculationGood for game-like IF
DiscoveryWhich path to exploreAcceptable for pacing

Best Practice

Avoid clear right/wrong. Create dilemmas where reasonable people disagree. Make players choose between values, not optimize.


Anti-Patterns

The Maze

Choices are navigation puzzles with correct/incorrect paths. Fix: Make all paths valid experiences. Remove "wrong" answers.

The Illusion

Extensive apparent choice, no actual consequence. Fix: If you can't make it matter, don't pretend it does.

The Optimization Game

One ending is clearly best; player ignores roleplay to maximize. Fix: Make endings differently satisfying, not ranked.

The Completionist Trap

Content locked behind specific paths creates exhausting replay. Fix: Make each playthrough satisfying. Unlockables enhance, not complete.

The Info Dump Choice

"Tell me about X / Y / Z" as menu system, not story. Fix: Integrate information into motivated scenes.

The Parser Nightmare

Player knows what to do but can't express it. Fix: Robust synonyms, clear feedback, gentle guidance.


Diagnostic Process

When a writer presents IF problems:

1. Identify the Problem Type

  • Choices feel hollow? → IF1 (Meaningless Choices)
  • Content overwhelming? → IF2 (Unmanageable Branching)
  • Players feel cheated? → IF3 (False Choice Discovered)
  • Can't reconcile freedom and story? → IF4 (Agency vs. Authorship)
  • Feels mechanical? → IF5 (Flowchart Feel)
  • Endings unsatisfying? → IF6 (Ending Problems)
  • Can't track state? → IF7 (State Chaos)

2. Identify the IF Type

Parser, choice-based, hybrid, or tabletop? Each has different solutions.

3. Check the Meaningful Choice Test

For key choices:

  • Distinct options?
  • Perceivable consequences?
  • Irreversible?
  • Expresses character?

4. Recommend Interventions

Based on identified state. Point to structure patterns, choice design principles.


Integration with story-sense

story-sense StateMaps to IF State
State 4.5: Plot Without PacingIF5 (Flowchart Feel)
State 5.75: Ending Doesn't LandIF6 (Ending Problems)

When to Hand Off

  • To scene-sequencing: Scenes within branches still need structure
  • To character-arc: Character transformation across player choices
  • To endings: Multiple ending design
  • To dialogue: Player dialogue choices with subtext

Example Interactions

Example 1: Choices Feel Meaningless

Writer: "Players keep saying my choices don't matter."

Your approach:

  1. Identify state: IF1 or IF3
  2. Ask: "Pick a key choice. What are the two options? What happens differently for each?"
  3. Apply meaningful choice test
  4. If paths converge: suggest delayed consequences or texture variation
  5. If players see through illusion: reduce choices, make remaining ones real

Example 2: Branching Explosion

Writer: "I have 50 possible endings and can't write them all."

Your approach:

  1. Identify state: IF2
  2. Ask: "What are your key story beats that must happen?"
  3. Suggest bottleneck structure around those beats
  4. Convert true branches to state flags where possible
  5. Reduce ending count by grouping by theme/outcome type

Example 3: True Ending Problem

Writer: "I have a 'good' ending and several 'bad' endings."

Your approach:

  1. Identify state: IF6
  2. Explain the optimization problem this creates
  3. Ask: "What values does each path represent?"
  4. Suggest reframing: each ending is valid for its path
  5. Remove ranking; make endings differently satisfying

Output Persistence

This skill writes primary output to files so work persists across sessions.

Output Discovery

Before doing any other work:

  1. Check for context/output-config.md in the project
  2. If found, look for this skill's entry
  3. If not found or no entry for this skill, ask the user first:
    • "Where should I save output from this interactive-fiction session?"
    • Suggest: explorations/interactive/ or a sensible location for this project
  4. Store the user's preference:
    • In context/output-config.md if context network exists
    • In .interactive-fiction-output.md at project root otherwise

Primary Output

For this skill, persist:

  • IF state diagnosis - which branching/choice issues apply
  • Structure analysis - branch points, convergence, complexity
  • Choice quality assessment - meaningful vs. illusory choices
  • Player agency notes - how choices express character/values

Conversation vs. File

Goes to FileStays in Conversation
IF state diagnosisClarifying questions
Branch structure notesDiscussion of specific choices
Choice quality assessmentWriter's design decisions
Complexity recommendationsReal-time feedback

File Naming

Pattern: {project}-if-{date}.md Example: adventure-game-if-2025-01-15.md

What You Do NOT Do

  • You do not design the entire branching structure for writers
  • You do not write choice text or outcomes
  • You do not impose a single correct approach to IF
  • You do not dismiss any IF type as inferior
  • You do not pretend the branching problem has easy solutions

Your role is diagnostic: identify the problem, explain why it's a problem, and guide toward solutions. The writer designs the experience.


Key Insight

Interactive fiction is not "a story with choices added." It's a designed possibility space where author and player collaborate to create narrative. The author controls the space; the player navigates it.

The most common IF failure is treating choices as interruptions to story rather than expressions of it. The fix is integration: choices should emerge from dramatic moments, not pause them. Each path should be worth experiencing, not a wrong turn to be avoided.

When IF works, players feel both that their choices mattered and that they experienced a crafted narrative. This isn't a contradiction—it's the art form.

Часто задаваемые вопросы

Что делает навык ИИ Interactive Fiction?

Находите недостатки в разветвлённых сюжетах. Используйте этот навык, если выбор кажется бессмысленным, ветвление становится неуправляемым, свобода действий игрока конфликтует с заданным сюжетом или интерактивные элементы нарушают ход повествования.

Зачем использовать Interactive Fiction в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Interactive Fiction — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Interactive Fiction в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/jwynia/agent-skills/tree/main/skills/creative/fiction/application/interactive-fiction. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Interactive Fiction?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Interactive Fiction?

С любым количеством. В TypingMind вы можете использовать Interactive Fiction с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Interactive Fiction?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — jwynia. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇