77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
fix(visual-novel): reveal text by visible-character count, correct Yarn Spinner save limits, add Ren'Py built-ins
Kiro Crew4bdc08ff7215
diff --git a/skills/genres/visual-novel/SKILL.md b/skills/genres/visual-novel/SKILL.mdindex 047ef59..7baf574 100644--- a/skills/genres/visual-novel/SKILL.md+++ b/skills/genres/visual-novel/SKILL.md@@ -24,6 +24,12 @@ conveniences that make a VN pleasant to read.`dialogue-systems`. Card/board play → other genres. For the branching-script engine itself,use `dialogue-systems` (Ink / Yarn Spinner).+**If the project is Ren'Py** (current stable 8.5.3): the engine already ships save-anywhere,+rollback, a history (backlog) screen, skip that stops at unseen text by default+(`preferences.skip_unseen = False`), auto-forward and a text-speed preference. Use and restyle+those through its screens and preferences; apply this skill's design guidance (routes, flags,+reactivity) rather than rebuilding the systems in Patterns 2–3.+## Core loop**Read a line → advance → (at a branch) make a choice → the story branches on flags/choices →@@ -76,19 +82,29 @@ script.advance(selected_option_or_none)### 2. Typewriter reveal + advance (skippable)```python-# Pseudocode. Reveal characters over time; a click first completes the line, then advances.+# Pseudocode. Lay out the whole line once, then reveal it; a press first completes the line.def show_text(speaker, text):name_label.text = speaker- revealed = 0- while revealed < len(text):- if advance_pressed(): # first press: reveal the whole line instantly- revealed = len(text); break- revealed += chars_per_second * dt- body_label.text = text[:int(revealed)]- push_to_backlog_when_complete(speaker, text)+ body_label.text = text # full text set up front: wrapping is decided now+ shown = 0.0+ while shown < visible_length(body_label): # count displayed characters, not markup tags+ if advance_pressed(): # first press: reveal the whole line instantly+ break+ shown += chars_per_second * frame_dt()+ body_label.visible_characters = int(shown)+ wait_one_frame()+ show_all_characters(body_label)+ backlog.append((speaker, text)) # once, when the line is completewait_for_advance() # second press: go to the next line```+Reveal with the label's visible-character count, not by slicing the string: slicing cuts+markup tags in half and re-wraps the text every frame, so a word starts on one line and jumps+to the next. Godot 4.7: `RichTextLabel.visible_characters` (or `visible_ratio`) with+`visible_characters_behavior = TextServer.VC_CHARS_AFTER_SHAPING`; the default+`VC_CHARS_BEFORE_SHAPING` leaves hidden text out of line breaking, so words still jump. Unity 6.3:+`TMP_Text.maxVisibleCharacters` (TextMeshPro, part of the uGUI package).+### 3. Choice sets a flag that branches later content```python@@ -104,7 +120,11 @@ if flags.get("helped_npc"): play_route("good_ending") else: play_route("neutral_## Pitfalls / failure modes- **Save that only stores a checkpoint** → VNs need **save-anywhere**. Persist the exact script- position *and* all flags/variables (and seen-text data) so a load resumes the same line.+ position *and* all flags/variables (and seen-text data) so a load resumes the same line. Check+ what your runtime can restore: Ink saves the exact position, Yarn Spinner only the node+ (refs §4).+- **Typewriter text that jumps between lines or shows raw tags** → the reveal slices the string.+ Set the full text and raise the visible-character count (Pattern 2).- **Presentation logic baked into the script** → unmaintainable. Keep *content* (text, choices)in the script and *how it looks* (sprites, transitions) in the engine layer.- **No skip/auto/backlog** → readers feel trapped, especially on replays. These are expecteddiff --git a/skills/genres/visual-novel/references/script-and-flow.md b/skills/genres/visual-novel/references/script-and-flow.mdindex bc389ec..14e54b6 100644--- a/skills/genres/visual-novel/references/script-and-flow.md+++ b/skills/genres/visual-novel/references/script-and-flow.md@@ -62,8 +62,20 @@ save = {}```-The runtime must expose a serializable position (Ink and Yarn both can save/restore state). Add-a `version` and a migration path so old saves survive script edits (see `save-systems`).+What the runtime can restore decides how precise "save anywhere" can be:++- **Ink:** `story.state.ToJson()` / `story.state.LoadJson(json)` captures the exact position+ and all variables, so a load resumes the same line.+- **Yarn Spinner:** you can save the variables and the current node name+ (`DialogueRunner.CurrentNodeName` in Unity) and restart that node, but its FAQ states that the+ specific line inside a node cannot be saved or restored. Keep nodes short, put a node boundary+ wherever a save may happen, or record the last line ID and fast-forward to it on load.+- **Ren'Py:** saving and loading at any line is built in (a save records the start of the+ current statement). Declare story flags with `default`, which is always saved; `define` is for+ constants.++Add a `version` and a migration path so old saves survive script edits (see `save-systems`).+Editing a line that a save points at is the usual way old saves break; give lines stable IDs.## 5. Backlog, skip, and auto