Extract player choices from narrative text in Claude Code
Turn story choices, branches, and materials into structured interaction entities with context and consequences.
中文Install in Claude Code
The loreSystem workspace in Claude Code, a narrative excerpt, and the project's entity schema.
- Review `.claude/skills/ui-design/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/ui-design/` in your project and save the reviewed file as `.claude/skills/ui-design/SKILL.md`.
- Start Claude Code from that project's root, then select `/ui-design` in the slash menu.
Example task
A chapter gives the player two routes. The fictional fixture is `{scene:'Archive',choices:['read map','ask guide'],outcomes:['learn route','learn meeting time']}`.What to check
Extract a choice entity and verify `{readMap:'learn route',askGuide:'learn meeting time'}`. Keep both outcomes in the existing JSON schema and check that readers can tell the choices apart.
Original SKILL.md on GitHub · Updated
Frequently asked question
How can I check an extracted player choice is complete?
Trace each option to the narrative and include its consequence or branch. Use the existing entity structure and avoid treating noninteractive prose as a choice.