Logo Game Storytelling

Game Storytelling

Cộng đồng
ericrisco
game-storytelling

Use when a game's story is the work: premise and pillars, branching topology, meaningful choice, dialogue state, quests, environmental storytelling, ludonarrative harmony. Author portable — engine wiring is `godot`/`unity`/`unreal`. NOT the mechanics and economy the story serves (that is `game-design`), NOT level layout (that is `level-design`).

Tổng quan

Nhà phát hànhericrisco
Kho mãrsc-harness
Tên kỹ nănggame-storytelling
Sao
239
Bản fork
24
Tệp đi kèm
4
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được ericrisco công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Game Storytelling trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ericrisco/rsc-harness/tree/main/skills/game-storytelling
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ericrisco/rsc-harness.git /tmp/rsc-harness
mkdir -p .claude/skills
cp -r /tmp/rsc-harness/skills/game-storytelling .claude/skills/game-storytelling
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Game Storytelling trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Game Storytelling ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Game Storytelling với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Game Storytelling — Narrative Design (engine-agnostic)

Design the story as a system the player operates, not a script they watch. This skill owns the narrative graph — premise, pillars, branches, choices, dialogue state, quests, and the storytelling embedded in the world.

You produce design artifacts: a premise/theme/pillars doc, a branch topology, a state/flag table, dialogue in a portable format (Ink/Yarn/Twee/articy), quest specs, and environmental beats. Story is a system in service of play; when you catch yourself designing a great scene the mechanics can't honor, reconcile it (see Ludonarrative harmony) rather than ship the dissonance.

Boundaries: game-design owns what the player does — core loop, verbs, systems, progression, economy, difficulty, balance — and the story serves those verbs; call it when resolving dissonance needs a mechanic change, or when designing the conditions for systemic/emergent story. level-design owns spatial layout, encounter placement, sightlines, blockout and the pacing of a space — the space environmental storytelling lives inside; co-own the set-dressing. godot / unity / unreal implement the dialogue runner, quest state, save-serialization of story state, and the Ink/Yarn/articy plugin glue — author portable, they wire it. marketing owns the store page, premise pitch and trailer copy (external-facing, not in-game narrative). Prose fiction, a screenplay, or a novel with no interactive/branching structure is general writing, not this skill.

Premise, theme, and pillars (do this first)

Nail these before a single branch or line of dialogue. They are the constraint that keeps a branching story from sprawling into incoherence.

  1. Premise — one sentence: who, in what world, wants what, against what. If it doesn't fit in a sentence, the story isn't decided yet.
  2. Theme — the question the game argues about (loyalty vs. survival, cost of power). Theme is the filter for every choice; a choice that doesn't press on it is decoration.
  3. Narrative pillars — 3–5 non-negotiables the story must always deliver (e.g. "every companion can die," "the player is never the chosen one"). Pillars kill scope arguments later.
  4. Tone & POV — register (grim, wry, mythic), narrative distance (silent, voiced, ensemble), tense/person for text.
  5. Story-in-service-of-play — write pillars so they are expressed through the verbs the player already has. If the theme is "trust is earned," the game needs a trust mechanic, not a paragraph asserting it.

Ludonarrative harmony (avoid dissonance)

Dissonance is when the story says one thing and the mechanics say the opposite (the "caring family man" who murders a thousand henchmen). Diagnose and fix, in order:

  • Verb audit. List what the player does most. Does the dominant verb match the theme and the protagonist's values? If the loop is "kill," a pacifist narrative is dissonant.
  • Reward audit. What does the game reward? Rewards are the loudest narrative voice — if you reward hoarding but preach generosity, players believe the reward.
  • Fix by moving the cheaper piece. Usually re-frame the narrative to match the mechanic rather than re-engineering the mechanic — but flag to game-design when only a mechanic change resolves it.
  • Failure & death. Reconcile the fiction of losing (respawn, checkpoint, permadeath) with the story; unexplained respawns are the most common silent dissonance.

Narrative structures for interactivity

Pick a topology deliberately; most games mix them. Full trade-offs, diagrams, and containment math → references/branching-and-state.md.

StructureShapePlayer agencyAuthor costUse when
Linearone path, story beats gated by progresslow (pacing only)lowstory-driven, cinematic, tight authorship
Branching (tree)choices split, rarely rejoinhigh, expensiveexplodes fastshort, choice-showcase, replay-driven
Hub-and-spokecentral hub, self-contained spokes, returnmedium (order + selection)moderate, scalesquests/missions, RPGs, episodic
Foldback / string-of-pearlsbranches diverge then reconverge at beatsfeels high, stays boundedmoderatethe workhorse for long branching stories
Environmentalstory embedded in space & objects, player-assembledinterpretivefront-loadedimmersive sims, exploration, "show don't tell"
Systemic / emergentstory generated by rules + player, not scriptedvery high, uncurateddesign not writingsims, roguelikes, sandbox; the "anecdote factory"

The pragmatic default for a story-heavy game is foldback: let choices matter locally, then reconverge on load-bearing beats so you author a bounded number of scenes. Pure trees are a trap (see below).

Branching & choice

A choice is meaningful only if the player can (a) form an intent, (b) foresee a plausible consequence, and (c) later see the consequence land. Missing any leg makes it noise. Meaningful choice vs. the deliberate, defensible illusion of choice, plus state modeling and the combinatorial-explosion fix → references/branching-and-state.md.

  • Meaningful choice changes state that the game later reads back to the player (a door, a death, a line, an ending). Track it with a flag/variable, not a duplicated scene.
  • Illusion of choice (options that reconverge to the same outcome) is a legitimate tool for expression and tone — but never sell a fake choice as consequential; players feel the betrayal and stop trusting every future choice.
  • State & flags are the spine. Model story state as named variables (met_the_witch, reputation >= 3, betrayed_ally). Gate content on state; don't copy-paste branches.
  • The combinatorial-explosion trap. N independent binary choices imply 2^N futures — unauthorable past a handful. Contain it with:
    • Reconvergence (bottlenecks) — funnel branches back to shared beats; the space between bottlenecks stays small.
    • Gates — require a flag/level/item to open content, pruning the live branch set.
    • State over structure — one scene that reads flags and swaps lines beats ten near-duplicate scenes.
    • Locality — most choices affect only the current scene ("weave"); reserve the few loud choices for global state.

Dialogue systems

Every dialogue tool reduces to the same four primitives — design against these, then let the engine skill wire the chosen tool. Deep tool comparison, a "pick one" guide, and the same conversation shown in Ink / Yarn / Twee → references/dialogue-tools.md.

  • Node — a unit of content (a line, a passage, a knot) with an id you can jump to.
  • Condition — boolean over story state that gates a node, option, or line (if hasKey, if trust > 2).
  • Variable — the story state read/written by nodes (flags, counters, enums, inventory).
  • Effect — a side effect a node fires (set a flag, give an item, start a quest, emit an engine event).

Tools (pointers — do not author engine glue here):

  • Ink (inkle) — writer-first scripting language: knots/stitches, diverts ->, once-only * / sticky + choices, gathers, weave, VAR, LIST, tunnels, threads, tags. Great for prose-heavy branching; runs via inkjs or engine integrations.
  • Yarn Spinner (v3.x, current) — node-based, Twine-friendly: <<set $var to x>>, <<if>>, <<jump>>, commands, functions, markup. First-class Unity; Godot (C# beta, GDScript alpha); Unreal in progress.
  • Twine — visual node editor, publishes standalone HTML; scripting depends on the story format (Harlowe, SugarCube, Snowman, Chapbook). Twee is its text form — a good neutral interchange.
  • articy:draft X — heavyweight visual narrative DB (flow/dialogue fragments, hubs, conditions, instructions, entities); free Unity/Unreal importers and a Generic Engine Export (JSON) for anything else.

Author in one of these formats and keep dialogue portable; engine binding is a separate step owned by the engine skill.

Quests & objectives

A quest is a small state machine plus presentation. Spec each quest with:

  • Trigger — what activates it (talk to X, enter zone, flag set).
  • Objective(s) — ordered or parallel steps; each a condition over world/story state.
  • States — unavailable → available → active → (step states) → complete / failed, modeled explicitly. Ambiguous quest state is the #1 quest bug.
  • Tracking & presentation — what the player sees (journal, marker, count). Design the reveal: don't show a marker for a step the player shouldn't know yet.
  • Rewards & consequences — the flags/items/state the quest writes on completion and on failure.
  • Fail states — decide per quest: can it fail, and is failure a dead-end, a branch, or lost content? Failing forward (failure opens a different path) beats a hard fail; soft-locking the game is a defect — always leave an escape.
  • Nesting & dependencies — main/side/hidden; prerequisite flags; mutual exclusivity (faction A locks B). Track dependencies as gates, per the branching rules above.

Environmental & systemic storytelling (show, don't tell)

Deliver story through the world so the player assembles it and feels ownership. Technique catalog, diegetic-vs-non-diegetic delivery, and the "anecdote factory" → references/environmental-storytelling.md.

  • Show, don't tell. Prefer a scene the player reads (a skeleton clutching a locked door) over a paragraph narrating it. Text-dumps are the fallback, not the default.
  • Environmental storytelling — set dressing, aftermath/traces, spatial sequencing, object placement, and readable item descriptions that imply events without narrating them. Coordinate with level-design for the space itself.
  • Systemic / emergent storytelling — let rules + player generate stories you didn't script ("that time my colonist starved defending the fridge"). You design the conditions and vocabulary for stories, not the stories — a game-design collaboration.
  • Diegetic first. Prefer in-world delivery (signage, barks, world change) over HUD/narrator; reserve non-diegetic (menus, codex, narrator) for what the world genuinely can't carry.

Delivery: pacing, VO, localization-readiness

  • Pace the text. Match line length to the moment; long paragraphs in combat go unread. Chunk to the display (one box-screen), respect reading speed, never block play with unskippable text.
  • VO considerations (design-side, not recording — that's audio/engine) — write for the ear (contractions, short clauses); budget line counts early (VO is expensive and near-frozen once recorded); keep a stable line ID on every spoken line; don't splice recorded fragments across variables (gender/number/name concatenation breaks in most languages).
  • Localization-readiness (so the loc pipeline can do its job) — externalize all player-facing text to string tables keyed by stable id; never concatenate sentences or embed grammar in code (gender/plural/word-order differ per language — use full templated strings with ICU-style placeholders); allow +30–40% text expansion; keep variables as named tokens ({playerName}), not positional; leave translator notes per line.

Anti-patterns

Anti-patternDo instead
Branching everything because "players love choices"Pure trees explode (2^N). Use foldback + gates; reconverge on beats.
A choice that feels huge but no later node reads it backIf no later node reads the flag, the choice is noise. Show the consequence or cut it.
Both options lead to the same scene, and it's sold as a big decisionFine as expression, not as stakes. Never sell a fake choice as consequential.
Explaining in the story why he's a mass murdererWords don't beat verbs. Fix the ludonarrative dissonance, don't narrate around it.
Adding an audio log to explain the backstoryText-dump is the fallback. Try to show it environmentally first.
Hardcoding strings, "we'll localize later"Concatenation and hardcoded text break loc. Externalize to keyed string tables now.
A quest that can't be failed because it's simpler that waySometimes right; but soft-locking the game on a missed step is a defect — leave an escape.
Wiring the Ink file into Unity hereNot this skill. Author portable narrative; hand wiring to the engine skill.

Checklist

  • Premise (one sentence), theme, and 3–5 narrative pillars are written and agreed; every pillar is expressible through an existing player verb (no assert-only themes).
  • Verb + reward audit done; any ludonarrative dissonance is fixed or escalated to game-design.
  • A topology is chosen deliberately (default: foldback), not accidental tree sprawl; combinatorial explosion is contained (reconvergence + gates + locality) so the branch count is authorable.
  • Story state is modeled as named variables/flags; content gates on state, not duplicated scenes.
  • Every "meaningful" choice writes a flag some later node reads back to the player; no fake choice is sold as consequential.
  • Dialogue authored in a portable format (Ink/Yarn/Twee/articy); engine wiring left to the engine skill.
  • Each quest has explicit states, tracking, rewards/consequences, and a defined fail behavior (no silent soft-locks).
  • Environmental/diegetic delivery preferred over text-dumps and non-diegetic narration where the world can carry it.
  • All player-facing text externalized to keyed string tables; no concatenation; variables are named tokens; +30–40% expansion allowed.
  • VO lines have stable IDs, are written for the ear, and the script is locked before recording is proposed.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Game Storytelling làm được gì?

Use when a game's story is the work: premise and pillars, branching topology, meaningful choice, dialogue state, quests, environmental storytelling, ludonarrative harmony. Author portable — engine wiring is `godot`/`unity`/`unreal`. NOT the mechanics and economy the story serves (that is `game-design`), NOT level layout (that is `level-design`).

Vì sao nên dùng Game Storytelling trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Game Storytelling là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Game Storytelling trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ericrisco/rsc-harness/tree/main/skills/game-storytelling. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Game Storytelling?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Game Storytelling với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Game Storytelling với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Game Storytelling có miễn phí không?

Có. Kỹ năng này được ericrisco phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇