visual-novel
БесплатноБез исполняемых скриптовНе проверенBuilds visual novels and choice-driven stories in Ren'Py or any engine: routes and endings, save-anywhere, backlog, skip-read-only and typewriter text. Use…
от gamedev-skills★ 12 656 звёзд на GitHubОб этом скилле
Visual novel
Owns the shape of a branching story and the reading conveniences players expect. The script runtime (Ren'Py, Ink, Yarn Spinner) does the stepping; this skill decides routes, flags, saves and the reader-facing systems, and checks them.
When to use
- The game is mostly reading text with character art, backgrounds and choices.
- Planning routes and endings, affection systems, save behaviour, backlog, skip and auto, or checking that every ending can be reached.
When not to use: NPC conversations inside another genre (dialogue-systems, with rpg
for quests); Ink or Yarn integration code (dialogue-systems); the text box and choice menu
widgets (godot-ui-control, game-ui-ux).
Workflow
- Find the engine. In Ren'Py (
game/*.rpy), the engine already has save-anywhere, rollback, history, skip, auto-forward and text speed: restyle its screens and preferences, and spend the effort on routes and flags. Elsewhere, build those systems from refs §4-5. - Draw the route map before writing: common route, the lock-in point (often about a third of the way through), each route's endings, and a true ending gated on finishing others if wanted. Write the flags and the thresholds each ending needs next to it.
- Size the script. Readers average roughly 200-250 words per minute, so 1,000 words is about 4-5 minutes; a 2-hour VN is about 25,000-30,000 words. Give a meaningful choice or reaction every 5-15 minutes of reading, and make at least one later line visibly react to each important choice.
- Track state as booleans for one-off decisions and counters for affection. For each route, add up the maximum affection the choices can give and set the ending threshold below it, with some slack for missed choices.
- Saves resume the exact line with all flags, and seen-text data lives in a persistent store shared by all saves (refs §4).
- Check it. Run what applies and report the output:
- Ren'Py:
./renpy.sh <project> lint --error-code(exit 1 on lint errors), and./renpy.sh <project> testfor scripted test cases (8.6.2 and later quit when they finish, exit 1 on a failure; older versions wait for input unless ateardownrunsexit); - Ink:
inklecate -o story.json story.ink(exit 1 on compile errors; for word counts runinklecate -s story.inkseparately: it writes no JSON and exits 0 even on a broken story), then a breadth-first walk with inkjs:Continue()whilecanContinue, savestate.ToJson()at each choice,LoadJson()andChooseChoiceIndex(i)for each branch, and collectcurrentTagsat each end. Tag ending lines (for example# ending: alice_good) and assert every planned ending appears. Cap the depth and dedupe states for big scripts; - any engine: save at a choice, quit, load, and confirm the same line and choices appear; enable skip on a fresh profile and confirm it stops at the first unseen line.
- Ren'Py:
Reader systems
| System | Default | Notes |
|---|---|---|
| Text speed | instant or fast by default, with a slider | Ren'Py's own default is instant (preferences.text_cps = 0) |
| Skip | read text only; stops at choices and unseen lines | Ren'Py: preferences.skip_unseen = False |
| Auto-forward | delay scaled by line length; pauses at choices | Ren'Py: preferences.afm_time = 15 |
| Backlog | 100-200 lines, with voice replay | Ren'Py: the stock history screen (_history_list, config.history_length = 250 in the default gui.rpy) |
| Saves | many slots with thumbnail, date and chapter, plus quick save | autosave at chapter starts and before choices |
| Galleries | CG, music and ending lists unlocked across all saves | Ren'Py persistent data |
Pattern 1: typewriter reveal that does not jump
# Set the full text once, then reveal by visible-character count.
def show_line(speaker, text):
name_label.text = speaker
body.text = text # wrapping decided once, on the full text
shown = 0.0
while shown < visible_length(body) and not advance_pressed():
shown += cps * frame_dt()
body.visible_characters = int(shown)
wait_frame()
body.visible_characters = -1 # first press completes the line
backlog.append((speaker, text)); seen.add(line_id)
wait_for_advance() # second press moves on
Godot 4.7: RichTextLabel.visible_characters with visible_characters_behavior = TextServer.VC_CHARS_AFTER_SHAPING (the default leaves hidden text out of line breaking, so
words still jump). Unity 6.3: TMP_Text.maxVisibleCharacters.
Gotchas
- Load resumes at the start of a scene → only a checkpoint or node name is saved. Ink saves
the exact position with
state.ToJson(); Yarn Spinner restores only the node (refs §4). - Old saves break after an update → lines moved or edited under a save. Give lines stable IDs, keep released l
Установить visual-novel в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл visual-novel?
Builds visual novels and choice-driven stories in Ren'Py or any engine: routes and endings, save-anywhere, backlog, skip-read-only and typewriter text. Use for a VN or dating sim, or loads at the wrong line, skip running through unread text or an unreachable ending. Not for dialogue in a larger game or Ink and Yarn (`dialogue-systems`) or text box widgets (`godot-ui-control`).
Как установить скилл visual-novel?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл visual-novel запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic