story-prep-skill

Collect protagonist, NPC, and environment state data into a structured narrative context snapshot.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

本技能在故事生成前对主角状态、NPC状态及环境因素进行全面采集,生成一份可直接用于叙事的上下文快照,减少叙事偏离和重复设定。

Core Features & Use Cases

  • Context capture: 从主角属性、地理位置、情感状态等维度提取关键输入,形成可用于叙事的结构化信息。
  • Data output: 生成“叙事上下文快照”,供 story-engine 的 Prompt 使用,确保叙事与世界设定一致。
  • Use case: 在任何剧情生成前执行,快速绑定当前世界状态以提高叙事的连贯性和沉浸感。

Quick Start

Run the pre-check context script to generate the narrative context snapshot: python .agent/skills/story-prep-skill/scripts/check_context.py

Frequently Asked Questions about story-prep-skill

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

FAQPage Schema
How do I prepare narrative context before story generation to prevent plot inconsistencies?

To prepare narrative context, automate the collection of protagonist, NPC, and environment state data to generate a reliable narrative context snapshot for the story engine. This snapshot binds current character statuses, nearby interactions, and spatial conditions to ensure narrative consistency.

What is a narrative context snapshot and how does it work with a story engine?

A narrative context snapshot is a structured prompt-ready summary of current world logic, character statuses, and spatial descriptions. It works by feeding this pre-collected data into the story engine's prompt, ensuring narrative generation aligns with existing world settings.

How do I capture character status and environment data for pre-generation prompting?

You capture character status and environment data by running a Python script to extract protagonist attributes, NPC goodwill, and spatial descriptions from local data sources. This process outputs a structured summary ready for narrative pre-generation.

Do I need specific data sources to generate a story preparation context?

Yes, generating a story preparation context requires data sources from protagonist, NPC, and world-logic references. These sources provide the necessary current character statuses, nearby interactions, and spatial conditions to build the prompt-ready summary.

Why does my story engine produce narrative deviations and repeated settings?

Narrative deviations and repeated settings occur when the story engine lacks current world state data. Running a pre-check context script to capture protagonist, NPC, and environment factors before generation provides a structured snapshot to reduce these inconsistencies.

Can I use Python scripts to automate story preparation for narrative engines?

Yes, you can use local Python scripts to automate story preparation by collecting protagonist, NPC, and environment state data. The script outputs a structured narrative context snapshot that feeds directly into your story engine prompts.