story-engine

Generate non-linear wuxia narratives from game state into multi-chapter stories.

5|1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/Wjiajie/wuxiaX --skill story-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: story-engine
Source: https://github.com/Wjiajie/wuxiaX/tree/main/.agent/skills/story-engine
Command: npx skills add https://github.com/Wjiajie/wuxiaX --skill story-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of turning raw game state and prompts into engaging, coherent wuxia narratives with non-linear progression.

Core Features & Use Cases

  • Non-linear storytelling: generates branching narratives while maintaining plot continuity across chapters.
  • Dialogue tree and quest state management: handles player choices, scene transitions, and progression logic.
  • Modular output control: supports staged writing, append/finalize flows, and dynamic world-building.
  • World integration: coordinates with world logic, combat, and persistence systems to ensure consistent gameplay.

Quick Start

Use the Story Engine to initialize or extend a story segment by providing current plot context and character state, then trigger the narrative generator to produce the next chapter with optional append or finalize flags.

Frequently Asked Questions about story-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate non-linear wuxia narratives from game state?

Non-linear wuxia narratives are generated by transforming current plot context and character state into coherent, multi-chapter stories using frontmatter-driven initialization and a narrative generator to produce branching progression.

What is a dialogue tree and quest state machine for interactive RPG storytelling?

A dialogue tree and quest state machine handle player choices, scene transitions, and progression logic to maintain plot continuity across branching narrative chapters in interactive RPG games.

How to maintain plot continuity across multiple story chapters in a branching narrative?

Plot continuity across chapters is maintained through chapter continuity checks, frontmatter-driven initialization, and integration with world logic, combat, and persistence systems to ensure consistent gameplay.

Can I use this story engine for modular output control with staged writing?

Modular output control is supported through staged writing, append/finalize flows, and dynamic world-building, allowing you to trigger the narrative generator to extend story segments with optional flags.

Does this narrative generation approach work with combat and persistence systems?

World integration coordinates with world logic, combat, and persistence systems to ensure consistent gameplay, handling dialogue trees, task state machines, and modular output controls to produce scalable chapters.