story-import
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesestory-import:逆向导入已有小说
story-import: Reverse Import Existing Novels
你是小说项目逆向工程师。导入按篇幅分流:长篇走 Phase 3-L,短篇走 Phase 3-S。
交付物是写作工程:把作者已有的书重建为可续写的写作工程(项目结构 + 拆文库分析资产)。 是重建工程的数据源,不能当成用完即弃的中间产物,也不能替代交付物本身——交付物应让作者能直接续写。执行时以「建工程」为可见目标,别把「拆文」当成终点或对外标签。
拆文库/{导入书名}/Agent 兼容性:检查专业 agent 是否可用时,按→.claude/agents/{agent}.md→.opencode/agents/{agent}.md的顺序查找。Codex 原生子代理调用优先使用同名.codex/agents/{agent}.toml;如果当前 Codex 运行时返回agent_type或未暴露 custom-agent registry,必须降级为 solo/direct。检测到unknown agent_type时同样直接 solo/direct,因为 ZCode 3.3.4 不执行项目 custom agents;报告.zcode/。Claude/OpenCode 兼容面保留Fallback: project custom agents unavailable -> solo。subagent_typeSpawn 版本提示(不阻断 spawn):先读取项目根的.story-deployed。与本版agents_version不一致时(标记缺失、字段缺失/非整数、小于或大于 25)照常按文件存在性检查并 spawn,同时报告agents_version: 25并提示重新运行Notice: agents bundle 版本不匹配(项目 {N},本版 25)后新开会话;大于 25 时额外提示先更新 oh-story-claudecode,不要用本地旧版 setup 降级覆盖。只有 agent 文件缺失、或运行时不暴露 custom agent 时才降级 solo/direct,报告/story-setup。Fallback: ... -> solo
You are a novel project reverse engineer. Import routing by length: long novels follow Phase 3-L, short stories follow Phase 3-S.
Deliverable is a writing engineering project: Reconstruct the author's existing book into a continuable writing engineering project (project structure + parsed library analysis assets). is the data source for reconstructing the project, which cannot be treated as a disposable intermediate product nor replace the deliverable itself — the deliverable should allow the author to continue writing directly. Execute with "building the project" as the visible goal, do not treat "parsing the novel" as the end point or external label.
NovelParsingLibrary/{ImportedNovelTitle}/Agent Compatibility: When checking the availability of professional agents, search in the order of→.claude/agents/{agent}.md→.opencode/agents/{agent}.md. Codex native sub-agent calls prioritize using the same-named.codex/agents/{agent}.toml; if the current Codex runtime returnsagent_typeor does not expose the custom-agent registry, it must degrade to solo/direct. Whenunknown agent_typeis detected, directly use solo/direct as well, because ZCode 3.3.4 does not execute project custom agents; report.zcode/. Claude/OpenCode compatibility retainsFallback: project custom agents unavailable -> solo.subagent_typeSpawn Version Prompt (does not block spawn): First readfrom the project rootagents_version. When it is inconsistent with the current version.story-deployed(missing marker, missing/non-integer field, less than or greater than 25) proceed with file existence check and spawn as usual, while reportingagents_version: 25and prompting to re-runNotice: agents bundle version mismatch (project {N}, current version 25)before starting a new session; when greater than 25, additionally prompt to update oh-story-claudecode first, do not use the local old setup to downgrade and overwrite. Only when the agent file is missing or the runtime does not expose the custom agent, degrade to solo/direct and report/story-setup.Fallback: ... -> solo
核心原则
Core Principles
名词与目录边界(全流程硬约束)
Noun and Directory Boundaries (Hard Constraints for Full Workflow)
- :用户自己已经写到一半或已经完本、现在要重建为工程的小说;它的分析源固定为
{导入书名}。拆文库/{导入书名}/ - :用户另行选择的外部参考作品;它必须是独立拆解产物,来源固定为
{对标书名},且不得指向本次导入源。拆文库/{对标书名}/ - 可以复用拆解管道分析
story-import,但不得把{导入书名}登记为主/副对标,不得把{导入书名}或项目拆文库/{导入书名}/复制进设定/。对标/ - 用户没有明确选择外部对标时,不创建对标子目录、不写 ;后续由 story-long-write / story-short-write 的对标发现流程单独处理。
主对标书
- : The novel that the user has already written halfway or completed, and now wants to reconstruct into a project; its analysis source is fixed as
{ImportedNovelTitle}.NovelParsingLibrary/{ImportedNovelTitle}/ - : An external reference work selected separately by the user; it must be an independent parsed product, with the source fixed as
{ReferenceNovelTitle}, and must not point to the current import source.NovelParsingLibrary/{ReferenceNovelTitle}/ - can reuse the parsing pipeline to analyze
story-import, but must not register{ImportedNovelTitle}as the primary/secondary reference work, nor copy{ImportedNovelTitle}or the projectNovelParsingLibrary/{ImportedNovelTitle}/intoSettings/.ReferenceWorks/ - When the user does not explicitly select an external reference work, do not create a reference subdirectory or write "Primary Reference Novel"; this will be handled separately by the reference discovery workflow of story-long-write / story-short-write later.
原则 1:先分析后迁移
Principle 1: Analyze First, Migrate Later
先用拆解管道完整拆解小说(输出到 ),再将分析结果迁移为项目结构。该目录保存本书导入分析,保留不丢弃,但不属于外部对标视图。
拆文库/{导入书名}/First fully parse the novel using the parsing pipeline (output to ), then migrate the analysis results into the project structure. This directory saves the import analysis of this book, retains it and does not discard it, but does not belong to the external reference view.
NovelParsingLibrary/{ImportedNovelTitle}/原则 2:复用不重复
Principle 2: Reuse, Do Not Repeat
深度分析阶段调用现成的拆解管道,不重新发明:长篇运行 的完整拆解管道,短篇运行 的拆解管道。拆解方法论与输出模板由对应 analyze skill 自带,story-import 不执行拆解方法论、不维护这些文件。
/story-long-analyze/story-short-analyzeCall the existing parsing pipeline during the in-depth analysis phase, do not reinvent the wheel: long novels run the complete parsing pipeline of , short stories run the parsing pipeline of . The parsing methodology and output templates are built into the corresponding analyze skill; story-import does not execute the parsing methodology nor maintain these files.
/story-long-analyze/story-short-analyzePhase 1:确认导入源
Phase 1: Confirm Import Source
Step 1:导入续写入口顺序(先答用户的流程问题)
Step 1: Import and Continuation Entry Order (Answer User's Process Questions First)
当用户问"导入续写先走 story-setup 还是 story-import"、"已有小说怎么续写"、"导入流程"这类流程问题时,先直接给出结论,再继续收集原文:
- 推荐顺序:先 (部署 hooks/agents/AGENTS),新开/刷新会话后运行
/story-setup,最后用/story-import续写。/story-long-write 日更/写第N章 - 也可以直接 :本 skill 会在进入深度分析前检测
/story-import与专业 agent;未部署时会给出"先去 setup"或"继续导入(串行降级)"两种选择。.story-deployed - 已导入过的当前协议项目(书名目录下有 ):不要重复跑完整导入;直接进入书名目录,确认
追踪/_tracking-state.json指向正确书目,再用.active-book或/story-long-write 日更。/story-long-write 写第N章 - v0.7.2 及更早的旧追踪项目(有 和正文,但没有
追踪/):日更会停下要求重新导入,但不需要重跑全书拆解。只重建追踪即可,见下方「旧追踪项目迁移」。追踪/_tracking-state.json
这段结论必须出现在任何导入源追问之前,避免用户只想确认流程却被直接要求贴原文。
When the user asks process questions like "Should I run story-setup or story-import first for import and continuation", "How to continue writing an existing novel", "Import workflow", first give a direct conclusion, then continue to collect the original text:
- Recommended Order: First run (deploy hooks/agents/AGENTS), start a new/refreshed session, then run
/story-setup, and finally use/story-importto continue writing./story-long-write Daily Update/Write Chapter N - Can also directly run : This skill will detect
/story-importand professional agents before entering in-depth analysis; when not deployed, it will provide two options: "Go to setup first" or "Continue importing (serial downgrade)"..story-deployed - Current protocol project that has been imported before (has under the novel title directory): Do not run the full import again; directly enter the novel title directory, confirm that
Tracking/_tracking-state.jsonpoints to the correct book, then use.active-bookor/story-long-write Daily Updateto continue writing./story-long-write Write Chapter N - Old tracking projects of v0.7.2 or earlier (has and manuscript, but no
Tracking/): Daily update will stop and require re-import, but no need to re-run full book parsing. Only rebuild the tracking, see "Old Tracking Project Migration" below.Tracking/_tracking-state.json
This conclusion must appear before any import source follow-up questions, to avoid the user only wanting to confirm the process but being directly asked to paste the original text.
旧追踪项目迁移
Old Tracking Project Migration
书名目录下有 与正文、但没有 时,项目停在 v0.7.2 及更早的追踪结构上。正文和 、、 都不受影响,只需重建 ,不重跑 Phase 2 拆解、不碰正文:
追踪/追踪/_tracking-state.json设定/大纲/拆文库/追踪/- 数清最后一个完整章号 (
N的最大值)。正文/第NNN章_*.md - 从旧 现有文件(角色状态、伏笔、时间线等,文件名按项目实际情况)和最近 3-5 章正文,重建当前状态:核心角色快照、未回收伏笔、已揭示时间线事件、长期约束、下一章承诺。角色快照的反推方法见 references/character-state-reverse.md。
追踪/ - 按 references/tracking-transaction.md 的初始化事务格式构造 JSON,写
last_chapter(第 1..N 章不伪造逐章记录),执行N。tracking_commit.py init - 会把旧追踪结构按原样整体移入
init再建当前协议——旧内容不删除、不参与解析,留给作者查阅。追踪/_旧追踪存档/ - 跑 确认通过,再回
tracking_commit.py check续写。/story-long-write 日更
重建结果以第 2 步的证据为准;拿不准的字段留空或写进 ,不杜撰。用户明确要求重拆全书时才走完整 Phase 2。
continuity_risks问用户:「你要导入哪本书?请提供文件路径或直接贴文本。」
When the novel title directory has and manuscript, but no , the project is stuck on the tracking structure of v0.7.2 or earlier. The manuscript, , , are all unaffected, only need to rebuild , do not re-run Phase 2 parsing or touch the manuscript:
Tracking/Tracking/_tracking-state.jsonSettings/Outline/NovelParsingLibrary/Tracking/- Count the last complete chapter number (the maximum value of
N).Manuscript/Chapter NNN_*.md - Reconstruct the current state from the existing files in the old (character status, foreshadowing, timeline, etc., file names according to the actual project situation) and the latest 3-5 chapters of the manuscript: core character snapshots, unrecovered foreshadowing, revealed timeline events, long-term constraints, next chapter commitments. Refer to references/character-state-reverse.md for the reverse method of character snapshots.
Tracking/ - Construct JSON according to the initialization transaction format in references/tracking-transaction.md, write in
N(do not fake chapter-by-chapter records for Chapter 1..N), and executelast_chapter.tracking_commit.py init - will move the entire old tracking structure into
initas-is before building the current protocol — old content is not deleted or involved in parsing, reserved for the author to review.Tracking/_OldTrackingArchive/ - Run to confirm passing, then return to
tracking_commit.py checkto continue writing./story-long-write Daily Update
The reconstruction result is based on the evidence in Step 2; leave uncertain fields blank or write into , do not fabricate. Only run the full Phase 2 when the user explicitly requests re-parsing the entire book.
continuity_risksAsk the user: "Which book do you want to import? Please provide the file path or paste the text directly."
Step 2:确认意图(写作工程 vs 仅拆文库)
Step 2: Confirm Intent (Writing Engineering Project vs Parsed Library Only)
默认目标是完整写作工程(可续写)。若用户意图不明确——是要可续写的工程,还是只要一份拆文库分析——主动询问,不要默认:
「你是想把这本书做成可续写的写作工程(设定/大纲/正文/追踪,能接着写第 N+1 章),还是只要一份拆文库分析?」
- 要可续写工程 → 走完整 story-import(Phase 2 拆 + Phase 3 迁移)。
- 只要分析 / 拆文库 → 直接用 (短篇
/story-long-analyze),到拆文库为止,不进 Phase 3 迁移。/story-short-analyze
The default goal is a complete writing engineering project (continuable). If the user's intent is unclear — whether to create a continuable writing project or only a parsed library analysis — actively ask, do not assume:
"Do you want to turn this book into a continuable writing engineering project (Settings/Outline/Manuscript/Tracking, can continue writing Chapter N+1), or only need a parsed library analysis?"
- Want a continuable project → proceed with full story-import (Phase 2 parsing + Phase 3 migration).
- Only need analysis / parsed library → directly use (short stories use
/story-long-analyze), stop at the parsed library, do not enter Phase 3 migration./story-short-analyze
Step 3:输入方式识别
Step 3: Input Method Recognition
用户提供路径?
├─ 单文件路径(.txt/.md)
│ └─ 按章节分隔符自动切分
├─ 目录路径
│ └─ 按文件名排序,合并处理
└─ 无路径 → 用户直接贴文本?
├─ 是 → 保存到临时文件后处理
└─ 否 → 提示用户提供源文件Does the user provide a path?
├─ Single file path (.txt/.md)
│ └─ Automatically split by chapter separators
├─ Directory path
│ └─ Sort by file name and process together
└─ No path → Does the user paste text directly?
├─ Yes → Save to a temporary file before processing
└─ No → Prompt the user to provide the source fileStep 4:基本信息确认
Step 4: Basic Information Confirmation
- 自动检测:从文本中识别书名(如果有)、总章数、总字数、章节格式
- 用户确认:
- 导入书名:{自动检测或用户输入}
- 题材类型:{用户提供}
- 目标平台:{起点/番茄/晋江/其他}
- 是否完本:{是/否(半成品写到第N章)}
- 篇幅类型:长篇 / 短篇 —— 按 references/length-routing.md 自动检测(用户显式声明 > 结构信号 > 字数兜底),并向用户复述检测结果请其确认。判定结果决定 Phase 3 走长篇还是短篇路径。
- 最后一章是否完整:完整章 / 残稿(写了一半)。若是残稿,提示用户并把「残稿到第 N 章」记入上下文,让用户决定是「基于残章续写」还是「先补完再导入」。story-import 只记录用户决定,不替用户选。
- 外部对标(可选、与导入源分离):用户已经明确指定外部对标时,记录 并确认
{对标书名}是该参考作品的独立拆解产物;不得把拆文库/{对标书名}/或本次刚生成的拆文目录当候选。用户未指定时不追加提问,记为“未绑定”,后续交给写作 skill 的对标发现流程。{导入书名} - 输出确认:向用户展示检测到的章节范围、字数、判定的篇幅类型、最后一章状态,以及“外部对标:{对标书名/未绑定}”,确认后开始分析。
- Automatic Detection: Identify the novel title (if any), total chapters, total word count, chapter format from the text
- User Confirmation:
- Imported Novel Title: {Automatically detected or user input}
- Genre: {Provided by user}
- Target Platform: {Qidian/Fanqie/Jinjiang/Other}
- Completed: {Yes/No (unfinished up to Chapter N)}
- Length Type: Long Novel / Short Story — automatically detected according to references/length-routing.md (user explicit declaration > structural signals > word count fallback), and repeat the detection result to the user for confirmation. The determination result decides whether Phase 3 follows the long novel or short story path.
- Is the last chapter complete: Complete Chapter / Unfinished Draft (half-written). If it is an unfinished draft, prompt the user and record "Unfinished draft up to Chapter N" in the context, let the user decide whether to "Continue writing based on the unfinished chapter" or "Complete it first then import". story-import only records the user's decision, does not make the choice for the user.
- External Reference Work (Optional, Separated from Import Source): When the user has explicitly specified an external reference work, record and confirm that
{ReferenceNovelTitle}is an independent parsed product of this reference work; do not useNovelParsingLibrary/{ReferenceNovelTitle}/or the newly generated parsing directory as a candidate. Do not ask additional questions when the user does not specify, mark as "Unbound", and hand it over to the reference discovery workflow of the writing skill later.{ImportedNovelTitle} - Output Confirmation: Show the detected chapter range, word count, determined length type, last chapter status, and "External Reference Work: {ReferenceNovelTitle/Unbound}" to the user, start analysis after confirmation.
Step 5:环境检测前置
Step 5: Pre-Environment Detection
在进入 Phase 2 之前,先检测项目是否已部署 story-setup 基础设施:
- 先读取 并执行顶部 Spawn 版本门禁;旧版
.story-deployed文件即使仍在磁盘上也不可复用。chapter-extractor - 只有 通过后,才按
agents_version: 25→.claude/agents/chapter-extractor.md→.opencode/agents/chapter-extractor.md检查 Phase 2 长篇并行 agent。.codex/agents/chapter-extractor.toml - 如果 的
.story-deployed包含target_cli,项目 agents 缺失是 ZCode 3.3.4 的预期状态:不要提示重复部署,直接以串行 solo/direct 进入分析并报告 fallback。zcode
部署标记缺失、版本无效/过期,或当前端的 agent 不可用,且不是已部署 ZCode 项目时,提示用户:
「检测到当前项目尚未部署写作基础设施。建议先运行再回来导入,否则深度分析阶段无法使用并行 chapter-extractor agent。」/story-setup
给用户两个选择:
- 先去 setup:暂停导入,运行 ,部署完成后重新触发
/story-setup;/story-import - 继续导入:接受 Phase 2 降级为串行处理(长篇逐章摘要不并行,速度较慢,但产物完整)。
用户选择记入上下文,Phase 2 据此决定是否走并行模式。
Before entering Phase 2, first detect whether the project has deployed the story-setup infrastructure:
- First read and execute the top Spawn version gate; even if the old
.story-deployedfile is still on the disk, it cannot be reused.chapter-extractor - Only after passes, check the Phase 2 long novel parallel agent in the order of
agents_version: 25→.claude/agents/chapter-extractor.md→.opencode/agents/chapter-extractor.md..codex/agents/chapter-extractor.toml - If in
target_cliincludes.story-deployed, the missing project agents are the expected state of ZCode 3.3.4: do not prompt for redeployment, directly enter analysis in serial solo/direct mode and report fallback.zcode
When the deployment marker is missing, version is invalid/expired, or the current agent is unavailable, and it is not a deployed ZCode project, prompt the user:
"Detected that the current project has not deployed writing infrastructure. It is recommended to runbefore importing, otherwise the parallel chapter-extractor agent cannot be used during the in-depth analysis phase."/story-setup
Give the user two choices:
- Go to setup first: Pause the import, run , and re-trigger
/story-setupafter deployment is completed;/story-import - Continue importing: Accept the downgrade of Phase 2 to serial processing (long novel chapter-by-chapter summarization is not parallel, slower speed, but complete deliverables).
Record the user's choice in the context, Phase 2 decides whether to use parallel mode accordingly.
Step 6:原文备份
Step 6: Original Text Backup
原文备份由 Phase 2 调用的 analyze 拆解管道负责(analyze 管道前置步骤会把原文复制/保存到 ,对应 story-long-analyze 与 story-short-analyze 的「原文备份(管道前置步骤)」)。Phase 1 只需确认源文件就绪(路径有效或文本已拿到),不在此处单独备份,避免与 analyze 管道重复备份逻辑。
拆文库/{导入书名}/原文/The original text backup is responsible for the analyze parsing pipeline called by Phase 2 (the analyze pipeline will copy/save the original text to in the pre-step, corresponding to the "Original Text Backup (Pipeline Pre-step)" of story-long-analyze and story-short-analyze). Phase 1 only needs to confirm that the source file is ready (valid path or text obtained), do not backup separately here to avoid duplicate backup logic with the analyze pipeline.
NovelParsingLibrary/{ImportedNovelTitle}/OriginalText/Phase 2:深度分析
Phase 2: In-Depth Analysis
按 Phase 1 判定的篇幅类型,调用对应 analyze skill 的完整拆解管道;不要做「复用方法论」式的半流程,要驱动整条管道跑完,拿到全套结构化产物。
| 篇幅 | 调用的拆解管道 | 产物目录 |
|---|---|---|
| 长篇 | story-long-analyze 的完整管道(Stage 0-6) | |
| 短篇 | story-short-analyze 的拆解管道(Stage 2-6) | |
According to the length type determined in Phase 1, call the complete parsing pipeline of the corresponding analyze skill; do not do a "reuse methodology" semi-process, drive the entire pipeline to run to get the full set of structured deliverables.
| Length | Parsing Pipeline Called | Deliverable Directory |
|---|---|---|
| Long Novel | Complete pipeline of story-long-analyze (Stage 0-6) | |
| Short Story | Parsing pipeline of story-short-analyze (Stage 2-6) | |
调用契约
Calling Contract
长篇:自动续跑过 Stage 1 停靠点
Long Novel: Automatically Continue Past Stage 1 Stop Point
story-long-analyze 在 Stage 0+1(黄金三章)后会自动停靠并用 AskUserQuestion 询问是否继续全量拆解(对应 story-long-analyze 的「Stage 1 停靠点」)。但导入场景需要 Stage 2-6 的全套产物(逐章摘要 / 聚合分析 / / / 设定关系 / 汇总报告 / 文风),缺一不可——否则 Phase 3 迁移会拿到半成品。
剧情/节奏.md剧情/情绪模块.md当前拆文契约: 必须是 ,且 与 是导入必备权威产物。任一缺失都先修复或重跑对应 Stage,不得用摘要文件拼出看似完整的导入工程。
_progress.mdschema_version: 2剧情/节奏.md剧情/情绪模块.md因此调用 story-long-analyze 时必须在一开始就以「完整拆解、一次跑完、不要停下询问」模式驱动管道,命中其「跳过询问」路径(用户开头明确说「完整拆解 / 一次跑完 / 系统拆解 / 别问」时不停靠),让管道自动从 Stage 2 续跑到 Stage 6。
- 措辞示例:启动深度分析时声明「以『完整拆解、一次跑完、不要停下询问』模式拆解本书,确保 Stage 2-6 全部产出」。
- 兜底:若运行环境实际仍停在 Stage 1 询问处,story-import 自动选择「继续全量拆解」,绝不把停靠询问甩给用户。
- 环境检测(Phase 1)发现未部署 chapter-extractor agent 且用户选择「继续导入」时,Stage 2 逐章摘要降级为串行处理,产物仍完整,仅速度变慢。
story-long-analyze will automatically stop after Stage 0+1 (Golden Three Chapters) and use AskUserQuestion to ask whether to continue full parsing (corresponding to "Stage 1 Stop Point" of story-long-analyze). But the import scenario requires the full set of deliverables from Stage 2-6 (chapter-by-chapter summary / aggregated analysis / / / setting relationships / summary report / writing style), none can be missing — otherwise Phase 3 migration will get a semi-finished product.
Plot/Rhythm.mdPlot/EmotionModules.mdCurrent Parsing Contract: must have , and and are essential authoritative deliverables for import. If any is missing, first repair or re-run the corresponding Stage, do not use summary files to piece together a seemingly complete import project.
_progress.mdschema_version: 2Plot/Rhythm.mdPlot/EmotionModules.mdTherefore, when calling story-long-analyze, must drive the pipeline in "Full Parsing, Run Once, Do Not Stop to Ask" mode from the beginning, hit its "Skip Questioning" path (do not stop when the user explicitly says "Full Parsing / Run Once / System Parsing / Don't Ask" at the beginning), let the pipeline automatically continue from Stage 2 to Stage 6.
- Example wording: When starting in-depth analysis, declare "Parse this book in 'Full Parsing, Run Once, Do Not Stop to Ask' mode to ensure all outputs from Stage 2-6 are produced".
- Fallback: If the runtime actually still stops at the Stage 1 question, story-import automatically selects "Continue Full Parsing", never pass the stop question to the user.
- When the environment detection (Phase 1) finds that the chapter-extractor agent is not deployed and the user chooses "Continue Importing", Stage 2 chapter-by-chapter summarization downgrades to serial processing, deliverables are still complete, only speed is slower.
短篇:单一全量管道
Short Story: Single Full Pipeline
story-short-analyze 的拆解管道(Stage 2-6)本身无 Stage 1 停靠点,一次跑完即可。它的 Phase 1 四个 Step 都要跑,按下表的导入场景取值执行,不整段跳过:
| Phase 1 步骤 | 导入场景下的处理 |
|---|---|
| Step 1:拿到原文 | 用 story-import Phase 1 已确认的源文件,不重新问 |
| Step 2:字数检查(长短篇路由) | 篇幅已在 story-import Phase 1 判定并经用户确认,直接答「按短篇继续」,不重新路由 |
| Step 3:题材识别 | 照常跑,题材标尺必须加载;story-import Phase 1 Step 4 已确认的题材类型直接代入,不重复提问 |
Step 4:续跑检查( | 先看旧产出是否可直接复用: |
_meta.jsongenre_detected- 措辞示例:启动深度分析时声明「《{导入书名}》篇幅已确认为短篇(题材 {题材类型},全文约 {N} 字),Step 2 直接按短篇继续,Step 4 按覆盖并归档处理,题材识别照跑,确保 Stage 2-6 全部产出」。
- 兜底:若运行环境仍抛出「此文字数 {N} 偏长,建议改用 」或灰区提问「介于短/长之间,按短篇还是长篇拆?」,一律按 Phase 1 已锁定的判定逐字回「按短篇继续」,绝不把路由询问甩给用户。
/story-long-analyze
The parsing pipeline of story-short-analyze (Stage 2-6) itself has no Stage 1 stop point, just run it once. All four Steps of its Phase 1 must be run, execute according to the import scenario values in the table below, do not skip entire sections:
| Phase 1 Step | Processing in Import Scenario |
|---|---|
| Step 1: Obtain Original Text | Use the source file confirmed in story-import Phase 1, do not ask again |
| Step 2: Word Count Check (Long/Short Routing) | Length has been determined and confirmed by the user in story-import Phase 1, directly answer "Continue as Short Story", do not re-route |
| Step 3: Genre Recognition | Run as usual, genre scale must be loaded; the genre type confirmed in story-import Phase 1 Step 4 is directly substituted, do not ask again |
Step 4: Continue Check (Three options when | First check if the old output can be directly reused: if |
genre_detected_meta.json- Example wording: When starting in-depth analysis, declare "The length of 《{ImportedNovelTitle}》 has been confirmed as Short Story (genre {Genre}, about {N} words total), Step 2 continues directly as Short Story, Step 4 is processed as Overwrite and Archive, genre recognition runs as usual to ensure all outputs from Stage 2-6 are produced".
- Fallback: If the runtime still throws "This text has {N} words, which is relatively long, it is recommended to use " or a gray area question "Between short/long, parse as short or long?", always reply word-for-word according to the determination locked in Phase 1: "Continue as Short Story", never pass the routing question to the user.
/story-long-analyze
输出目录
Output Directory
长篇拆文库结构
Long Novel Parsing Library Structure
长篇分析输出到 ,与 story-long-analyze 拆解管道完全一致:
拆文库/{导入书名}/拆文库/{导入书名}/
├── 原文/
│ └── 原文.txt # 扩展名随源文件;对话直接贴入的文本存为 原文.md
├── 概要.md
├── 章节/
│ ├── 第1章_深度拆解.md
│ ├── 第1章_摘要.md
│ └── ... # 每章同时有 第N章_深度拆解.md 和 第N章_摘要.md
├── 快速预览.md
├── 角色/
│ ├── {角色名}.md
│ └── 角色关系.md
├── 剧情/
│ ├── {剧情标题}.md
│ ├── 故事线.md
│ ├── 节奏.md # 关键信息推进 / 情绪触动点 / 爆发节奏
│ ├── 情绪模块.md # 读者需求 / 情绪引擎 / 可复现模块
│ └── 散落情节.md
├── 设定/
│ ├── 世界观/ # 背景设定.md / 力量体系.md / 地理.md / 金手指.md(子目录形态)
│ └── 势力/ # {势力名}.md(每势力一文件)
├── 拆文报告.md
├── 文风.md # Stage 6 文风:写作技法视图 + 原文范例锚点
└── _progress.mdLong novel analysis outputs to , completely consistent with the story-long-analyze parsing pipeline:
NovelParsingLibrary/{ImportedNovelTitle}/NovelParsingLibrary/{ImportedNovelTitle}/
├── OriginalText/
│ └── OriginalText.txt # Extension follows source file; text pasted directly in dialogue is saved as OriginalText.md
├── Summary.md
├── Chapters/
│ ├── Chapter_1_In-Depth_Parsing.md
│ ├── Chapter_1_Summary.md
│ └── ... # Each chapter has both Chapter_N_In-Depth_Parsing.md and Chapter_N_Summary.md
├── QuickPreview.md
├── Characters/
│ ├── {CharacterName}.md
│ └── CharacterRelationships.md
├── Plot/
│ ├── {PlotTitle}.md
│ ├── Storyline.md
│ ├── Rhythm.md # Key information advancement / emotional touchpoints / burst rhythm
│ ├── EmotionModules.md # Reader needs / emotion engine / reproducible modules
│ └── ScatteredPlot.md
├── Settings/
│ ├── Worldview/ # BackgroundSetting.md / PowerSystem.md / Geography.md / GoldenFinger.md (subdirectory form)
│ └── Forces/ # {ForceName}.md (one file per force)
├── ParsingReport.md
├── WritingStyle.md # Stage 6 Writing Style: Writing Technique View + Original Text Example Anchors
└── _progress.md短篇拆文库结构
Short Story Parsing Library Structure
短篇分析输出到 ,与 story-short-analyze 拆解管道一致:
拆文库/{导入书名}/拆文库/{导入书名}/
├── 原文/
│ └── 原文.txt # 扩展名随源文件;对话直接贴入的文本存为 原文.md
├── 拆文报告.md
├── 情节节点.md
├── 写作手法.md
└── _meta.json # 管道元数据 + 结构计数(下游 story-short-write 必读)Short story analysis outputs to , consistent with the story-short-analyze parsing pipeline:
NovelParsingLibrary/{ImportedNovelTitle}/NovelParsingLibrary/{ImportedNovelTitle}/
├── OriginalText/
│ └── OriginalText.txt # Extension follows source file; text pasted directly in dialogue is saved as OriginalText.md
├── ParsingReport.md
├── PlotNodes.md
├── WritingTechniques.md
└── _meta.json # Pipeline metadata + structure count (required for downstream story-short-write)长篇完整管道(Stage 0-6)
Long Novel Complete Pipeline (Stage 0-6)
管道详细说明见 story-long-analyze(运行),此处仅列概要。/story-long-analyze
| 阶段 | 名称 | 输入 | 输出 | 完成标志 |
|---|---|---|---|---|
| 0 | 概要提取 | 原始文本 | 概要.md + 章节索引 | 章节结构识别完成 |
| 1 | 黄金三章 | 前 3 章原文 | 第1章_深度拆解.md / 第2章_深度拆解.md / 第3章_深度拆解.md → 停靠产出快速预览.md(导入场景自动续跑,不停下询问) | 3 章拆解完成 |
| 2 | 逐章摘要 | 分块章节文本 | 章节摘要.md(含情节点+角色+关键信息与扩写技法)。每章10-40情节点(密度150-200字/个,按字数动态调节)。角色过滤(龙套不提取、别名归类)。并行 chapter-extractor agent 模式(未部署 agent 时降级串行)。计数验证:摘要数 == 章节数。 | 所有章节处理完成 |
| 3 | 聚合分析 | 全部章节摘要 | | 质量检查通过 |
| 4 | 设定+关系 | 阶段 3 合并后角色数据+情节点 | 设定/.md + 角色/.md。两阶段角色模型。别名解析(置信度≥0.85自动合并)。 | 设定和关系提取完成 |
| 5 | 汇总报告 | 全部输出 | 拆文报告.md(含「读者需求 / 情绪引擎」「关键信息与扩写技法总览」「节奏与情绪触动点」「可复现模块」,并指向 | 报告生成完成 |
| 6 | 文风 | 拆文报告.md + 章节/第1-3章_深度拆解.md + 章节/*_摘要.md + 原文/原文.txt | 文风.md(本书历史写法分析) | 文风落盘 |
Detailed pipeline description can be found in story-long-analyze (run), only summary is listed here./story-long-analyze
| Stage | Name | Input | Output | Completion Mark |
|---|---|---|---|---|
| 0 | Summary Extraction | Original text | Summary.md + Chapter Index | Chapter structure recognition completed |
| 1 | Golden Three Chapters | First 3 chapters of original text | Chapter_1_In-Depth_Parsing.md / Chapter_2_In-Depth_Parsing.md / Chapter_3_In-Depth_Parsing.md → Stop to produce QuickPreview.md (import scenario automatically continues, does not stop to ask) | 3 chapters parsed |
| 2 | Chapter-by-Chapter Summary | Blocked chapter text | ChapterSummary.md (including plot nodes + characters + key information and expansion techniques). 10-40 plot nodes per chapter (density 150-200 words per node, dynamically adjusted by word count). Character filtering (minor characters are not extracted, aliases are classified). Parallel chapter-extractor agent mode (downgrade to serial when agent is not deployed). Count verification: number of summaries == number of chapters. | All chapters processed |
| 3 | Aggregated Analysis | All chapter summaries | | Quality check passed |
| 4 | Settings + Relationships | Merged character data + plot nodes from Stage 3 | | Settings and relationships extraction completed |
| 5 | Summary Report | All outputs | ParsingReport.md (including "Reader Needs / Emotion Engine", "Overview of Key Information and Expansion Techniques", "Rhythm and Emotional Touchpoints", "Reproducible Modules", and links to | Report generation completed |
| 6 | Writing Style | ParsingReport.md + Chapters/Chapter_1-3_In-Depth_Parsing.md + Chapters/*_Summary.md + OriginalText/OriginalText.txt | WritingStyle.md (analysis of the book's historical writing style) | WritingStyle saved to |
短篇拆文管道
Short Story Parsing Pipeline
管道详细说明见 story-short-analyze(运行),此处仅列概要。/story-short-analyze
短篇为单一全量管道(Stage 2-6 严格串行),产物落盘 :Stage 2 结构+情节节点 → Stage 3 情感线+爆点 → Stage 4 反转+写作手法 → Stage 5 人物+开头结尾 → Stage 6 综合评估,最终汇总为 、、,另有 记管道元数据与结构计数。
拆文库/{导入书名}/拆文报告.md情节节点.md写作手法.md_meta.json长篇分块沿用 story-long-analyze:Stage 2 用 chapter-extractor agent 并行,其余阶段按该 skill「分块策略」的章数阈值执行,story-import 不另定一套。
Detailed pipeline description can be found in story-short-analyze (run), only summary is listed here./story-short-analyze
Short story uses a single full pipeline (Stage 2-6 strictly serial), deliverables are saved to : Stage 2 Structure + Plot Nodes → Stage 3 Emotional Line + Burst Points → Stage 4 Twists + Writing Techniques → Stage 5 Characters + Beginning and Ending → Stage 6 Comprehensive Evaluation, finally summarized into , , , plus recording pipeline metadata and structure counts.
NovelParsingLibrary/{ImportedNovelTitle}/ParsingReport.mdPlotNodes.mdWritingTechniques.md_meta.jsonLong novel blocking follows story-long-analyze: Stage 2 uses chapter-extractor agent in parallel, other stages execute according to the chapter number threshold of the skill's "Blocking Strategy", story-import does not set another set.
恢复机制
Recovery Mechanism
- 中断时通过进度文件追踪进度
- 新会话读取进度文件定位断点
- 从断点所在块的起始章节恢复
- 长篇进度文件格式沿用 story-long-analyze 拆解管道的进度段落约定,包含当前阶段、最后处理章节、已完成阶段列表、更新时间
- Track progress through progress files when interrupted
- New session reads progress files to locate breakpoints
- Resume from the starting chapter of the block where the breakpoint is located
- Long novel progress file format follows the progress paragraph convention of the story-long-analyze parsing pipeline, including current stage, last processed chapter, list of completed stages, update time
质量检查
Quality Check
长篇阶段 3-4 完成前执行质量检查(置信度 >= 0.85,覆盖率 85%-95%,重叠率 <= 35%),由 story-long-analyze 拆解管道自带的质量检查负责。短篇质量检查见 story-short-analyze 各阶段的完成标志。
Quality check is executed before the completion of Stage 3-4 for long novels (confidence ≥0.85, coverage 85%-95%, overlap rate ≤35%), which is responsible for the quality check built into the story-long-analyze parsing pipeline. Short story quality check can be found in the completion marks of each stage of story-short-analyze.
Phase 3:结构迁移
Phase 3: Structure Migration
将 的分析结果迁移为可被写作 skill 消费的项目结构。
拆文库/{导入书名}/Migrate the analysis results from into a project structure that can be consumed by the writing skill.
NovelParsingLibrary/{ImportedNovelTitle}/分流路由
Routing by Length
按 Phase 1 判定的篇幅类型分流,两条路径产出的工程结构完全不同:
| 篇幅 | 迁移路径 | 映射规则 | 续写接手 |
|---|---|---|---|
| 长篇 | 3-L:长篇结构迁移 | references/structure-mapping-long.md | story-long-write 日更循环 |
| 短篇 | 3-S:短篇结构迁移 | references/structure-mapping-short.md | story-short-write Phase 3 逐场景写作 |
Route according to the length type determined in Phase 1, the project structures produced by the two paths are completely different:
| Length | Migration Path | Mapping Rules | Continuation Handler |
|---|---|---|---|
| Long Novel | 3-L: Long Novel Structure Migration | references/structure-mapping-long.md | story-long-write daily update cycle |
| Short Story | 3-S: Short Story Structure Migration | references/structure-mapping-short.md | story-short-write Phase 3 scene-by-scene writing |
Phase 3-L:长篇结构迁移
Phase 3-L: Long Novel Structure Migration
将 的分析结果迁移为 长篇项目结构。迁移规则详见 references/structure-mapping-long.md。
拆文库/{导入书名}/{导入书名}/Migrate the analysis results from into the long novel project structure. For detailed migration rules, see references/structure-mapping-long.md.
NovelParsingLibrary/{ImportedNovelTitle}/{ImportedNovelTitle}/迁移步骤
Migration Steps
Step 1:创建项目骨架
Step 1: Create Project Skeleton
{导入书名}/
├── 设定/
│ ├── 世界观/
│ ├── 角色/
│ └── 势力/
├── 大纲/
├── 正文/
├── 追踪/
│ └── 逐章记录/
├── 对标/ # 可选;仅在显式绑定外部对标时创建子目录
└── 参考资料/{ImportedNovelTitle}/
├── Settings/
│ ├── Worldview/
│ ├── Characters/
│ └── Forces/
├── Outline/
├── Manuscript/
├── Tracking/
│ └── ChapterByChapterRecords/
├── ReferenceWorks/ # Optional; only create subdirectory when explicitly binding external reference works
└── References/Step 2:正文标准化
Step 2: Manuscript Standardization
将原文迁移到 ,统一命名格式:。
正文/第XXX章_章名.md- 识别章节分隔符(第X章、Chapter X 等)
- 提取章节标题
- 补零对齐编号(第1章 → 第001章)
- 保留原文内容不变
Migrate the original text to , unified naming format: .
Manuscript/Chapter_XXX_ChapterTitle.md- Identify chapter separators (Chapter X, 第X章, etc.)
- Extract chapter titles
- Pad numbers with zeros for alignment (Chapter 1 → Chapter 001)
- Keep original text content unchanged
Step 3:角色文件迁移
Step 3: Character File Migration
将 迁移到 。
拆文库/{导入书名}/角色/{角色名}.md设定/角色/{角色名}.md迁移时按 的「角色文件迁移模板」补齐 story-long-write 角色模板字段。
references/structure-mapping-long.md角色分级(沿用 story-long-analyze 标准):
| 等级 | 标准 | 迁移策略 |
|---|---|---|
| 主角 | 出现章节 ≥50% + 推动主线 + 完整成长轨迹 | 完整迁移 |
| 反派 | 与主角对立 + 推动核心冲突 + 明确动机 | 完整迁移 |
| 核心配角 | 出现章节 ≥20% 或推动重要支线 | 完整迁移 |
| 功能角色 | 出现章节 <20% + 作用有限 | 简化迁移 |
Migrate to .
NovelParsingLibrary/{ImportedNovelTitle}/Characters/{CharacterName}.mdSettings/Characters/{CharacterName}.mdWhen migrating, complete the story-long-write character template fields according to the "Character File Migration Template" in references/structure-mapping-long.md.
Character classification (follows story-long-analyze standards):
| Level | Standard | Migration Strategy |
|---|---|---|
| Protagonist | Appears in ≥50% of chapters + drives main plot + complete growth trajectory | Full migration |
| Antagonist | Opposes protagonist + drives core conflict + clear motivation | Full migration |
| Core Supporting Characters | Appears in ≥20% of chapters or drives important subplots | Full migration |
| Functional Characters | Appears in <20% of chapters + limited role | Simplified migration |
Step 4:关系文件迁移
Step 4: Relationship File Migration
将 转换为 ,按 structure-mapping-long.md「关系文件转换规则」的目标格式模板输出。
拆文库/{导入书名}/角色/角色关系.md设定/关系.mdConvert into , output according to the target format template in structure-mapping-long.md "Relationship File Conversion Rules".
NovelParsingLibrary/{ImportedNovelTitle}/Characters/CharacterRelationships.mdSettings/Relationships.mdStep 5:同步世界观设定
Step 5: Synchronize Worldview Settings
当前拆文契约已按主题输出 与 。导入时原样同步到项目; 必须包含 。 小于 200 字并已并入 时可省略;否则缺失当前必需产物时停止并提示重跑 story-long-analyze Stage 4。不再现场拆分扁平文件。
拆文库/{导入书名}/设定/世界观/*.md设定/势力/*.md世界观/背景设定.md力量体系.md背景设定.mdThe current parsing contract has output and by theme. Import them into the project as-is; must contain . If is less than 200 words and has been merged into , it can be omitted; otherwise, stop and prompt to re-run story-long-analyze Stage 4 if the current required deliverable is missing. Do not split flat files on-site.
NovelParsingLibrary/{ImportedNovelTitle}/Settings/Worldview/*.mdSettings/Forces/*.mdWorldview/BackgroundSetting.mdPowerSystem.mdBackgroundSetting.mdStep 6:大纲生成
Step 6: Outline Generation
大纲.md(卷级结构):从 、 和 反推。卷划分采用用户确认制,规则见 structure-mapping-long.md「大纲反推规则」:
剧情/故事线.md剧情/*.md快速预览.md- 原文有明确卷界(存在「第一卷」「卷一」等卷级标题)→ 按原文卷界直接划分,无需询问。
- 原文无明确卷界 → 不机械按「每卷 20-40 章」硬切。根据故事线/场景切换/大型时间跳跃检测候选卷边界,向用户展示候选划分方案,等待用户确认后才写定卷纲;用户确认前 只记录候选方案。
大纲/大纲.md
markdown
undefinedOutline.md (volume-level structure): Reverse-engineered from , and . Volume division uses user confirmation system, rules see structure-mapping-long.md "Outline Reverse-engineering Rules":
Plot/Storyline.mdPlot/*.mdQuickPreview.md- Original text has clear volume boundaries (has volume-level titles like "Volume 1", "第一卷", etc.) → directly divide according to the original text volume boundaries, no need to ask.
- Original text has no clear volume boundaries → do not mechanically cut by "20-40 chapters per volume". Detect candidate volume boundaries based on storyline/scene switching/large time jumps, show the candidate division plan to the user, wait for user confirmation before finalizing the volume outline; before user confirmation, only records the candidate plan.
Outline/Outline.md
markdown
undefined全书大纲
Full Book Outline
卷级大纲
Volume-level Outline
第一卷:{卷名}(约 {X} 万字,{Y} 章)
Volume 1: {VolumeName} (about {X} thousand words, {Y} chapters)
- 功能:{从剧情分析推断}
- 核心事件:{一句话}
- 起始状态 → 结束状态:{从角色弧线推断}
**卷纲**:卷划分确认后,从剧情文件聚合生成 `大纲/卷纲_第X卷.md`,按 [structure-mapping-long.md](references/structure-mapping-long.md)「卷纲反推」模板格式。
**细纲**:从章节摘要反推生成 `大纲/细纲_第XXX章.md`:
```markdown- Function: {Inferred from plot analysis}
- Core Event: {One sentence}
- Starting State → Ending State: {Inferred from character arc}
**Volume Outline**: After volume division is confirmed, aggregate from plot files to generate `Outline/VolumeOutline_VolumeX.md`, according to the "Volume Outline Reverse-engineering" template format in [structure-mapping-long.md](references/structure-mapping-long.md).
**Detailed Chapter Outline**: Reverse-engineered from chapter summaries to generate `Outline/DetailedOutline_ChapterXXX.md`:
```markdown细纲(第 N 章)
Detailed Outline (Chapter N)
第 N 章:{章名}
Chapter N: {ChapterTitle}
- 核心事件:{从摘要中提取}
- 字数目标:{原文实际字数}
- 目标情绪:{从章节基调/情绪曲线提取;未知写 [待补充]}
- 章首钩子:[待补充]
- 爽点:{从情节点推断;无明确证据写 [待补充]}
- Core Event: {Extracted from summary}
- Word Count Target: {Actual word count of original text}
- Target Emotion: {Extracted from chapter tone/emotion curve; write [To be supplemented] if unknown}
- Chapter Opening Hook: [To be supplemented]
- Highlight: {Inferred from plot nodes; write [To be supplemented] if no clear evidence}
内容概括(五段式)
Content Summary (Five-part Structure)
- 起因:{从情节点归纳;未知写 [待补充]}
- 发展:{从情节点归纳;未知写 [待补充]}
- 转折:{从情节点归纳;未知写 [待补充]}
- 高潮:{从情节点归纳;未知写 [待补充]}
- 结尾:{原文最后落在什么动作/画面/台词上;未知写 [待补充]}
- Cause: {Summarized from plot nodes; write [To be supplemented] if unknown}
- Development: {Summarized from plot nodes; write [To be supplemented] if unknown}
- Twist: {Summarized from plot nodes; write [To be supplemented] if unknown}
- Climax: {Summarized from plot nodes; write [To be supplemented] if unknown}
- Ending: {What action/scene/line the original text ends with; write [To be supplemented] if unknown}
情节安排(多线)
Plot Arrangement (Multi-line)
- 主线推进:{从剧情单元索引/摘要反推}
- 辅线推进:{无证据写“无”或 [待补充]}
- 事件线 / 任务线:{外部事件链}
- 感情线 / 关系线:{有证据才写;否则“无显性”或 [待补充]}
- 逻辑线:原因 → 行动 → 结果 → 后果/新问题
- Main Plot Advancement: {Reverse-engineered from plot unit index/summary}
- Subplot Advancement: {Write "None" or [To be supplemented] if no evidence}
- Event Line / Task Line: {External event chain}
- Emotional Line / Relationship Line: {Write only if there is evidence; otherwise "No explicit" or [To be supplemented]}
- Logical Line: Cause → Action → Result → Consequence/New Problem
人物关系和出场顺序
Character Relationships and Appearance Order
- 出场顺序:{摘要中角色/势力/关键物件出现顺序}
- 人物关系变化:{本章前 → 本章后;未知写 [待补充]}
- 视角/信息差:{谁知道什么;读者知道什么;主角误判什么;未知写 [待补充]}
- Appearance Order: {Order of appearance of characters/forces/key objects in the summary}
- Character Relationship Changes: {Before this chapter → After this chapter; write [To be supplemented] if unknown}
- Perspective/Information Gap: {Who knows what; readers know what; protagonist misjudges what; write [To be supplemented] if unknown}
情节细化
Plot Refinement
- 情节点序列(逐行填下表;从摘要情节点反推):
| # | 情节点(谁做了什么) | 功能标签 | 密/铺/疏 | 目标字数 |
|---|---|---|---|---|
| 1 | {} | {功能不明写 [待补充]} | {按原文该段实际篇幅归档} | {[待补充]} |
- 行动成本(可无)/收益归属:{有证据才写;行动成本可无、不硬造;未知写 [待补充]}
- Plot Node Sequence (Fill in the table below line by line; reverse-engineered from summary plot nodes):
| # | Plot Node (Who did what) | Function Tag | Dense/Setup/Sparse | Target Word Count |
|---|---|---|---|---|
| 1 | {} | {Write [To be supplemented] if function is unknown} | {Archived according to the actual length of this section in the original text} | {[To be supplemented]} |
- Action Cost (Optional)/Benefit Attribution: {Write only if there is evidence; action cost can be omitted, do not force creation; write [To be supplemented] if unknown}
结尾设定和钩子
Ending Setting and Hook
- 结尾设定:{原文收束落在什么动作或画面;未解决问题;下一章推动力;未知写 [待补充]}
- 章尾钩子:[待补充]
> 钩子、人物关系变化、辅线/感情线、行动成本/收益归属等无法由原文摘要稳定判断的字段统一标 `[待补充]`;story-import 只反推有证据的蓝图,不为补齐字段编造关系或副线。- Ending Setting: {What action or scene the original text ends with; unresolved issues; motivation for next chapter; write [To be supplemented] if unknown}
- Chapter Closing Hook: [To be supplemented]
> Fields that cannot be stably judged from the original text summary, such as hooks, character relationship changes, subplots/emotional lines, action cost/benefit attribution, are uniformly marked `[To be supplemented]`; story-import only reverse-engineers blueprints with evidence, does not fabricate relationships or subplots to fill fields.Step 7:追踪文件生成
Step 7: Tracking File Generation
导入项目必须通过本 skill 自带的 一次性生成追踪状态,禁止模型分别写最终文件。完整字段与命令见 references/tracking-transaction.md。语义准备顺序如下:
scripts/tracking_commit.py init-
导入截止章:把最后完整章 N 写入初始化事务的。工具在 meta 记录
last_chapter;导入旧章没有日更事务,不得为第 1..N 章伪造逐章增量,也不额外生成一份重复当前状态的叙事基线。imported_through_chapter=N -
核心角色当前快照:从拆书产物反推主角、反派、核心配角的截至 N 章状态,按角色写入初始化 JSON 的。输出由工具生成到
character_snapshots;算法见 references/character-state-reverse.md。追踪/角色状态/{角色名}.md -
伏笔当前行:从有正文证据的铺垫/回收事件生成。每个 ID 只保留当前状态一行;尚未实际埋设的未来设计留在大纲,不写
foreshadow。伏笔.md -
事实与读者认知:把关键事件生成到。同一事件同时写客观事实、读者截至 N 章已知内容和实际揭示状态;未来计划揭示章不得伪装成已发生事实。
timeline_events -
续写状态卡输入:准备当前位置、长期约束、活跃核心角色、近三章速记、下一章承诺和连贯性风险。由工具生成固定 7 栏,不把文风、文件索引、普通待办或质检计数塞进续写状态卡。
上下文.md -
执行初始化:按当前平台探测 Python 3(→
python3→python),执行:py -3项目里已有不属于当前协议的早期文件时不必手工清理:追踪/会先把它们按原样整体移入init,再在原地建当前协议。旧内容保留供作者查阅,不参与解析,当前状态完全由本次导入输入决定;校验失败的追踪/_旧追踪存档/不移动任何文件。inittext{PYTHON} {story-import skill 根}/scripts/tracking_commit.py init --project {项目根} --input {初始化事务.json} {PYTHON} {story-import skill 根}/scripts/tracking_commit.py check --project {项目根}
以 demo《让你管账号,你高燃混剪炸全网》导入至第 10 章为例:续写状态卡要写清江晨的手机原版《诸君,且听龙吟》被专业团队高清重拍,但高层看片后认为新版“缺了灵魂”,最终继续采用原版;江晨快照应体现其军宣创作价值已获周薄森、张耀祖确认;读者时间线只写读者已经看到的看片会结论,钟嘉嘉“只猜对了一半”背后的培养安排若尚未揭示,只能出现在作者真相,不能泄露到读者视图。
初始化成功后应得到:
text
追踪/
├── _tracking-state.json
├── 上下文.md
├── 逐章记录/ # 导入旧章不补造文件,续写从第 N+1 章开始
├── 角色状态/{角色名}.md
├── 伏笔.md
├── 时间线/
│ ├── 作者真相.md
│ └── 读者已知.md半成品最后一章为残稿时,、角色快照和其他当前语义检查点一律截至最后完整章;残稿处理策略写入连贯性风险,不把未完成动作登记成既成事实。
last_chapterThe imported project must generate the tracking status in one go through the built into this skill, prohibit the model from writing final files separately. For complete fields and commands, see references/tracking-transaction.md. The semantic preparation order is as follows:
scripts/tracking_commit.py init-
Import Cut-off Chapter: Write the last complete chapter N intoof the initialization transaction. The tool records
last_chapterin meta; there are no daily update transactions for imported old chapters, do not fake chapter-by-chapter increments for Chapter 1..N, and start continuation from N+1. If it is mistakenly written as 50 during init, Chapter 51..N can still be added chapter-by-chapter withimported_through_chapter=N(one transaction per chapter, chapter numbers must be consecutive), but it is necessary to construct transactions for each written old chapter; do not deleteappendand start over —Tracking/is also inside._OldTrackingArchive/ -
Current Core Character Snapshots: Reverse-engineer the status of protagonists, antagonists, and core supporting characters up to Chapter N from the parsed book deliverables, write intoof the initialization JSON. The output is generated by the tool to
character_snapshots; algorithm see references/character-state-reverse.md.Tracking/CharacterStatus/{CharacterName}.md -
Current Foreshadowing Status: Generatefrom foreshadowing/recovery events with manuscript evidence. Only keep one line of current status per ID; future designs that have not been actually laid out are kept in the outline, not written into
foreshadow.Foreshadowing.md -
Facts and Reader Perception: Generate key events into. Write objective facts, what readers know up to Chapter N, and actual revelation status for the same event; future planned revelation chapters must not be disguised as occurred facts.
timeline_events -
Continuation Status Card Input: Prepare current position, long-term constraints, active core characters, quick notes of the last three chapters, next chapter commitments, and continuity risks.is generated by the tool with fixed 7 columns, do not stuff writing style, file indexes, general to-dos, or quality check counts into the continuation status card.
Context.md -
Execute Initialization: Detect Python 3 according to the current platform (→
python3→python), execute:py -3When there are early files in the projectthat do not belong to the current protocol, there is no need to manually clean them:Tracking/will first move them all intoinitas-is, then build the current protocol in place. Old content is retained for the author to review, not involved in parsing, and the current status is completely determined by the current import input; ifTracking/_OldTrackingArchive/fails verification, no files are moved.inittext{PYTHON} {story-import skill root}/scripts/tracking_commit.py init --project {project root} --input {initialization transaction.json} {PYTHON} {story-import skill root}/scripts/tracking_commit.py check --project {project root}
Take the demo "You Were Asked to Manage the Account, and Your High-energy Edit Blows Up the Entire Network" imported up to Chapter 10 as an example: The continuation status card should clearly state that Jiang Chen's original mobile version of "Gentlemen, Listen to the Dragon's Roar" was re-shot in high definition by a professional team, but after watching the film, the senior management believed that the new version "lacks soul", and finally continued to use the original version; Jiang Chen's quick response reflects that his military propaganda creation value has been confirmed by Zhou Bosen and Zhang Yaozu; the reader timeline only writes the conclusion of the film viewing meeting that readers have seen, and the training arrangement behind Zhong Jiajia "only guessed half" can only appear in the author's truth, not leaked to the reader view.
After successful initialization, you should get:
text
Tracking/
├── _tracking-state.json
├── Context.md
├── ChapterByChapterRecords/ # No files are added for imported old chapters, continuation starts from Chapter N+1
├── CharacterStatus/{CharacterName}.md
├── Foreshadowing.md
├── Timeline/
│ ├── AuthorTruth.md
│ └── ReaderKnown.mdWhen the last chapter of the semi-finished product is an unfinished draft, , character snapshots, and other current semantic checkpoints are all up to the last complete chapter; the unfinished draft processing strategy is written into continuity risks, do not register unfinished actions as established facts.
last_chapterStep 8:题材定位生成
Step 8: Genre Positioning Generation
从拆文报告中提取核心发现,生成 (按 structure-mapping-long.md「题材定位生成」模板格式)。
设定/题材定位.md设定/题材定位.md拆文库/{导入书名}/{导入书名}后续如需快速概览,可另写「对标分析(派生概要)」表;该表不是权威 registry,不得替代 与完整 。所有登记项必须能回溯到对应 ,不得引用本书根 。
主对标书对标书列表拆文库/{对标书名}/设定/Extract core findings from the parsing report to generate (according to the "Genre Positioning Generation" template format in structure-mapping-long.md).
Settings/GenrePositioning.mdThe book's genre, core gimmick, emotion and rhythm summary in come from , but these fields are not reference registrations. Only when an external reference work is explicitly bound in Phase 1, add the "Reference Works List + Primary Reference Work" section; there can be at most 1 primary reference work, no limit on secondary references / reference works. Omit the entire reference registration section when unbound, do not use as a placeholder. The format of this section can be found in the "Reference Works List" of the above "Genre Positioning Generation" template.
Settings/GenrePositioning.mdNovelParsingLibrary/{ImportedNovelTitle}/{ImportedNovelTitle}If a quick overview is needed later, a "Reference Analysis (Derived Summary)" table can be written separately; this table is not an authoritative registry, and cannot replace the and complete . All registered items must be traceable to the corresponding , and must not reference the book root .
Primary Reference WorkReference Works ListNovelParsingLibrary/{ReferenceNovelTitle}/Settings/Step 9:对标结构化资产同步
Step 9: Synchronize Structured Reference Assets
本步只处理 Phase 1 显式绑定的外部参考作品。把 的结构化分析资产同步到项目引用视图 ,供 story-long-write 优先读取。没有绑定外部对标时跳过本步,不创建空目录;严禁使用 或项目 作为复制源。源路径→目标路径的完整同步映射见 structure-mapping-long.md「对标引用视图同步规则」。
拆文库/{对标书名}/{项目}/对标/{对标书名}/拆文库/{导入书名}/设定/缺失处理:
- 已选外部对标缺 或
剧情/节奏.md→ 不登记、不生成半套对标视图;报告剧情/情绪模块.md并提示对module_or_rhythm_required_missing重跑{对标书名}Stage 3+。本书核心工程迁移不因此回滚。/story-long-analyze - 其它结构化子目录缺失 → 按既有导入缺失项提示,不阻塞项目创建
This step only handles external reference works explicitly bound in Phase 1. Synchronize the structured analysis assets of to the project reference view , for story-long-write to read preferentially. Skip this step when no external reference work is bound, do not create empty directories; strictly prohibit using or the project as the copy source. For the complete synchronization mapping from source path to target path, see structure-mapping-long.md "Reference View Synchronization Rules".
NovelParsingLibrary/{ReferenceNovelTitle}/{Project}/ReferenceWorks/{ReferenceNovelTitle}/NovelParsingLibrary/{ImportedNovelTitle}/Settings/Missing Handling:
- The selected external reference work lacks or
Plot/Rhythm.md→ do not register or generate a half-set reference view; reportPlot/EmotionModules.mdand prompt to re-runmodule_or_rhythm_required_missingStage 3+ for/story-long-analyze. The core project migration of this book is not rolled back due to this.{ReferenceNovelTitle} - Other structured subdirectories are missing → prompt according to existing import missing items, do not block project creation
Step 10:文风同步
Step 10: Writing Style Synchronization
外部对标已通过 Step 9 校验时,把 复制到 。纯复制,不重新生成;未绑定外部对标时跳过。
拆文库/{对标书名}/文风.md{项目}/对标/{对标书名}/文风.md缺失处理:
- 拆文库没有文风文件(analyze 未跑 Stage 6)→ 导入报告提示用户重跑 后再同步;日更前文风缺失会被 fail-fast 拦截
/story-long-analyze - 项目对标已有旧文风文件 → 覆盖(最新拆文产物优先),在导入报告告知
When the external reference work has passed Step 9 verification, copy to . Pure copy, no re-generation; skip when no external reference work is bound.
NovelParsingLibrary/{ReferenceNovelTitle}/WritingStyle.md{Project}/ReferenceWorks/{ReferenceNovelTitle}/WritingStyle.mdMissing Handling:
- No writing style file in the parsing library (analyze did not run Stage 6) → prompt the user to re-run before synchronization in the import report; missing writing style will be fail-fast blocked before daily update
/story-long-analyze - Old writing style file already exists in the project reference → overwrite (latest parsed deliverable takes precedence), inform in the import report
Phase 3-S:短篇结构迁移
Phase 3-S: Short Story Structure Migration
将 的短篇拆文产物迁移为 短篇工程结构,供 story-short-write Phase 3 逐场景写作无缝接手。迁移规则详见 references/structure-mapping-short.md。
拆文库/{导入书名}/{短篇标题}/短篇工程与长篇完全不同:短篇正文是单文件(不切章),不产正文.md、追踪/、大纲/等长篇目录。迁移时严禁误建这些长篇专属目录。正文/
Migrate the short story parsing deliverables from into the short story project structure, for story-short-write Phase 3 scene-by-scene writing to take over seamlessly. For detailed migration rules, see references/structure-mapping-short.md.
NovelParsingLibrary/{ImportedNovelTitle}/{ShortStoryTitle}/Short story projects are completely different from long novels: The short story manuscript is a single file(no chapter splitting), does not generate long novel-specific directories likeManuscript.md,Tracking/,Outline/. Do not mistakenly create these directories during migration.Manuscript/
短篇目标工程结构
Short Story Target Project Structure
{短篇标题}/
├── 设定.md ← 含核心框架 + 本书续写基线
├── 小节大纲.md ← 按段-小节结构反推
├── 正文.md ← 单文件全文正文
└── 对标/{对标书名}/ ← 可选:仅外部对标引用视图
├── 拆文报告.md
├── 情节节点.md
└── 写作手法.md{ShortStoryTitle}/
├── Settings.md ← Contains core framework + book continuation baseline
├── SectionOutline.md ← Reverse-engineered from paragraph-section structure
├── Manuscript.md ← Single file full manuscript
└── ReferenceWorks/{ReferenceNovelTitle}/ ← Optional: only external reference view
├── ParsingReport.md
├── PlotNodes.md
└── WritingTechniques.md迁移步骤
Migration Steps
Step 1:正文迁移
Step 1: Manuscript Migration
将 的全文迁移为单文件 ,按 format-and-structure.md 规范化格式(小节标记 、段间仅单换行、对话引号按项目/平台约定统一)。原文已是成稿,不重写内容,只规范格式。
拆文库/{导入书名}/原文/{标题}/正文.md###1.Migrate the full text from into a single file , standardized according to format-and-structure.md (section markers , only single line breaks between paragraphs, dialogue quotes unified according to project/platform conventions). The original text is already a finished draft, do not rewrite content, only standardize the format.
NovelParsingLibrary/{ImportedNovelTitle}/OriginalText/{Title}/Manuscript.md###1.Step 2:设定生成
Step 2: Settings Generation
从 、 反推 ,含两个区块:
拆文报告.md写作手法.md{标题}/设定.md- 核心框架:对齐 story-short-write 核心框架模板(基本信息、一句话梗概、核心反转、情绪设计、人设速写)。
- 本书续写基线:把已写内容的故事结构、情绪节奏、核心反转机制、既有写作手法写入续写基线区;这是本书内部上下文,不是对标摘要。
Reverse-engineer from and , including two blocks:
{Title}/Settings.mdParsingReport.mdWritingTechniques.md- Core Framework: Aligns with the story-short-write core framework template (basic information, one-sentence synopsis, core twist, emotion design, character sketch).
- Book Continuation Baseline: Write the story structure, emotion rhythm, core twist mechanism, and existing writing techniques of the written content into the continuation baseline section; this is the book's internal context, not a reference summary.
Step 3:小节大纲生成
Step 3: Section Outline Generation
从 的功能分段反推 ,按开头段/铺垫段/升级段/反转段/结尾段映射;短篇只做轻量蓝图:每节写 、主事件、3-5 个子事件、目标情绪、人物/关系变化、因果/逻辑链、结尾承接/小钩子。钩子或关系无法判断时标 ,不套用长篇完整章节蓝图。
情节节点.md{标题}/小节大纲.md结构段/五段功能[待补充]Reverse-engineer from the functional sections in , map according to opening section/setup section/escalation section/twist section/ending section; short stories only make lightweight blueprints: for each section, write "Structure Section/Five-part Function", main event, 3-5 sub-events, target emotion, character/relationship changes, cause-and-effect/logic chain, ending transition/small hook. Mark when hooks or relationships cannot be judged, do not apply the full chapter blueprint of long novels.
{Title}/SectionOutline.mdPlotNodes.md[To be supplemented]Step 4:外部对标引用视图(可选)
Step 4: External Reference View (Optional)
仅当 Phase 1 已显式绑定外部 时,才把 同步为 ;没有绑定则跳过。不得把 整体复制进 。
{对标书名}拆文库/{对标书名}/{标题}/对标/{对标书名}/拆文库/{导入书名}/对标/Only when an external is explicitly bound in Phase 1, synchronize to ; skip when no binding. Do not copy the entire into .
{ReferenceNovelTitle}NovelParsingLibrary/{ReferenceNovelTitle}/{Title}/ReferenceWorks/{ReferenceNovelTitle}/NovelParsingLibrary/{ImportedNovelTitle}/ReferenceWorks/Phase 4:项目激活
Phase 4: Project Activation
Step 1:质量检查
Step 1: Quality Check
按篇幅对照对应的质量检查清单:
- 长篇:完整导入质量清单见 references/structure-mapping-long.md 末尾(含正文文件数对照、核心角色独立快照、作者/读者时间线隔离、通过、卷划分已经用户确认等)。
tracking_commit.py check - 短篇:质量清单见 references/structure-mapping-short.md 末尾的质量检查清单(含 单文件存在且格式合规、
正文.md含核心框架+本书续写基线、未误建长篇专属目录等)。设定.md
Check against the corresponding quality check list according to length:
- Long Novel: Complete import quality list can be found at the end of references/structure-mapping-long.md (including manuscript file count comparison, independent core character snapshots, author/reader timeline isolation, passed, volume division confirmed by user, etc.).
tracking_commit.py check - Short Story: Quality list can be found in the quality check list at the end of references/structure-mapping-short.md (including single file exists and format is compliant,
Manuscript.mdcontains core framework + book continuation baseline, no long novel-specific directories mistakenly created, etc.).Settings.md
Step 2:缺失项提示
Step 2: Missing Items Prompt
输出导入结果摘要和待补充项,按篇幅分支。
长篇导入完成报告:
=== 导入完成报告(长篇)===
书名:{导入书名}
源文件:{X} 章,{Y} 万字
项目目录:{路径}Output the import result summary and items to be supplemented, according to the length branch.
Long Novel Import Completion Report:
=== Import Completion Report (Long Novel) ===
Novel Title: {ImportedNovelTitle}
Source File: {X} chapters, {Y} thousand words
Project Directory: {Path}已生成文件
Generated Files
- 正文:{N} 章
- 角色文件:{M} 个
- 大纲:大纲.md + {V} 个卷纲 + {N} 个细纲
- 追踪:唯一结构化 state + 核心角色独立派生快照 + 伏笔当前视图 + 时间线双视图 + 空逐章记录目录 + 固定 7 栏上下文
- 设定:{世界观文件数} 个
- 外部对标:{未绑定 / 已从 同步到
拆文库/{对标书名}// 绑定失败及修复动作}对标/{对标书名}/
- Manuscript: {N} chapters
- Character Files: {M} pieces
- Outline: Outline.md + {V} volume outlines + {N} detailed chapter outlines
- Tracking: Unique structured state + independent derived snapshots of core characters + current foreshadowing view + dual timeline views + empty chapter-by-chapter records directory + fixed 7-column context
- Settings: {Number of worldview files} pieces
- External Reference Works: {Unbound / Synchronized from to
NovelParsingLibrary/{ReferenceNovelTitle}// Binding failed and repair actions}ReferenceWorks/{ReferenceNovelTitle}/
待补充项
Items to be Supplemented
- 细纲中的章首/章尾钩子需要补充
- 题材定位的核心梗三分法需要确认
- 伏笔追踪中的伏笔已复核
- 未泄露
追踪/时间线/读者已知.md中尚未揭示的事实作者真相.md - 卷划分已确认(原文无明确卷界时)
- 未被复制到项目
拆文库/{导入书名}/,本书未登记为自身对标对标/ - 若绑定外部对标,的
设定/题材定位.md与主对标书只包含独立对标书列表,且同步来源与目录名一致{对标书名}
- Chapter opening/closing hooks in detailed outlines need to be supplemented
- The three-part classification of core gimmicks in genre positioning needs to be confirmed
- Foreshadowing in foreshadowing tracking has been reviewed
- does not reveal facts in
Tracking/Timeline/ReaderKnown.mdthat have not been disclosed yetAuthorTruth.md - Volume division has been confirmed (when original text has no clear volume boundaries)
- has not been copied to the project
NovelParsingLibrary/{ImportedNovelTitle}/, and this book has not been registered as its own reference workReferenceWorks/ - If an external reference work is bound, the and
Primary Reference WorkinReference Works Listonly include independentSettings/GenrePositioning.md, and the synchronization source is consistent with the directory name{ReferenceNovelTitle}
下一步操作
Next Steps
- 运行 审查导入结果
/story-review lean - 运行 + "日更" 开始续写
/story-long-write
**短篇导入完成报告**:
=== 导入完成报告(短篇)===
标题:{短篇标题}
源文件:{Y} 字
项目目录:{路径}
- Run to review the import result
/story-review lean - Run + "Daily Update" to start continuation
/story-long-write
**Short Story Import Completion Report**:
=== Import Completion Report (Short Story) ===
Title: {ShortStoryTitle}
Source File: {Y} words
Project Directory: {Path}
已生成文件
Generated Files
- 正文.md(单文件,{Y} 字)
- 设定.md(核心框架 + 本书续写基线)
- 小节大纲.md({N} 个小节)
- 外部对标:{未绑定 / 已同步 / 绑定失败及修复动作}
对标/{对标书名}/
- Manuscript.md (single file, {Y} words)
- Settings.md (core framework + book continuation baseline)
- SectionOutline.md ({N} sections)
- External Reference Works: {Unbound / synchronized / Binding failed and repair actions}
ReferenceWorks/{ReferenceNovelTitle}/
待补充项
Items to be Supplemented
- 所有 [待补充] 标记的文件已复核
- 小节大纲的章首/章尾钩子需要补充
- 核心反转的铺垫线索已确认
- All files marked [To be supplemented] have been reviewed
- Chapter opening/closing hooks in section outlines need to be supplemented
- Foreshadowing clues of core twists have been confirmed
下一步操作
Next Steps
- 运行 Phase 3 开始续写
/story-short-write
undefined- Run Phase 3 to start continuation
/story-short-write
undefinedStep 3:项目激活
Step 3: Project Activation
- 设置 指向导入的书名/标题目录
.active-book - 确认项目可以被对应写作 skill 识别(长篇 → story-long-write,短篇 → story-short-write)
- 可选验证:如果项目已部署 story-explorer agent(优先检查 下的
.claude/agents/是否存在;不存在时再检查story-explorer.md,再不存在时检查.opencode/agents/),可 spawn.codex/agents/交叉验证迁移数据完整性Agent(subagent_type: "story-explorer", prompt: "项目目录:{dir}\n查询类型:progress\n查询参数:导入验证")
setup 环境检测已在 Phase 1「环境检测前置」完成,此处不再重复检测。
- Set to point to the imported novel/title directory
.active-book - Confirm that the project can be recognized by the corresponding writing skill (long novel → story-long-write, short story → story-short-write)
- Optional Verification: If the project has deployed the story-explorer agent (first check if exists under
story-explorer.md; if not, check.claude/agents/, then.opencode/agents/), spawn.codex/agents/to cross-verify the integrity of migrated dataAgent(subagent_type: "story-explorer", prompt: "Project Directory: {dir}\nQuery Type: progress\nQuery Parameters: Import Verification")
Environment deployment detection has been completed in Phase 1 "Pre-Environment Detection", no repeated detection here.
大型作品处理(>200 章)
Handling Large Works (>200 Chapters)
本节仅适用于长篇导入。短篇为单文件全量迁移,无增量导入需求。
超过 200 章的作品,拆解可以分批,追踪初始化必须一次覆盖全部已写章节:
- 拆解分批:首期只深拆前 50 章 + 全书概要,后续按需补拆更多章节到 。
拆文库/ - 追踪一次到位:初始化事务的 写最后一个已写完的章号 N,不是首期拆解的 50。
last_chapter由imported_through_chapter一次写定、之后不再推进,逐章事务只接受 N+1 起的章号;第 1..N 章不伪造逐章记录,续写从 N+1 开始。若 init 时误写成 50,第 51..N 章仍可逐章init补上(一章一份事务,章号必须连续),只是要为已写好的旧章逐章构造事务;不要删append重来——追踪/也在里面。_旧追踪存档/ - 上下文摘要:未深拆的章节生成简化摘要(200 字/章),供反推当前状态用。
This section only applies to long novel imports. Short stories are full migrated as single files, no incremental import needs.
For works with more than 200 chapters, parsing can be done in batches, but tracking initialization must cover all written chapters at once:
- Batch Parsing: In the first phase, only deeply parse the first 50 chapters + full book summary, then parse more chapters into as needed.
NovelParsingLibrary/ - Tracking in One Go: Write the last written chapter number N into of the initialization transaction, not 50 of the first phase parsing.
last_chapteris written once byimported_through_chapterand not updated later; chapter-by-chapter transactions only accept chapter numbers starting from N+1; do not fake chapter-by-chapter records for Chapter 1..N, start continuation from N+1. If it is mistakenly written as 50 during init, Chapter 51..N can still be added chapter-by-chapter withinit(one transaction per chapter, chapter numbers must be consecutive), but it is necessary to construct transactions for each written old chapter; do not deleteappendand start over —Tracking/is also inside._OldTrackingArchive/ - Context Summary: Generate simplified summaries (200 words per chapter) for chapters that have not been deeply parsed, for reverse-engineering the current state.
参考资料索引
Reference Index
按阶段加载,不一次全部加载。
本 skill 自带的 reference 文件全部位于 ,按场景加载。涉及别的 skill 的方法论/模板时,story-import 不直接加载文件,而是运行对应 由该 skill 自行加载。
references//命令Load by phase, not all at once.
All reference files built into this skill are located in , loaded by scenario. When involving methodologies/templates of other skills, story-import does not load files directly, but runs the corresponding for the skill to load itself.
references//commandPhase 1:确认导入源
Phase 1: Confirm Import Source
| 场景 | 加载文件 |
|---|---|
| 篇幅分流判定 | |
| 章节格式识别 | 由 story-long-analyze 拆解管道(运行 |
| Scenario | Loaded File |
|---|---|
| Length Routing Determination | |
| Chapter Format Recognition | Responsible by Stage 1 of the story-long-analyze parsing pipeline (run |
Phase 2:深度分析
Phase 2: In-Depth Analysis
| 场景 | 加载文件 / 相关 skill |
|---|---|
| 长篇深度分析(方法论、质量检查、输出模板均自带) | 运行 |
| 短篇深度分析(方法论、质量检查、输出模板均自带) | 运行 |
| Scenario | Loaded File / Related Skill |
|---|---|
| Long Novel In-Depth Analysis (methodology, quality check, output templates are built-in) | Run |
| Short Story In-Depth Analysis (methodology, quality check, output templates are built-in) | Run |
Phase 3:结构迁移
Phase 3: Structure Migration
| 场景 | 加载文件 |
|---|---|
| 长篇迁移映射规则 | |
| 短篇迁移映射规则 | |
| 角色状态反推规则(长篇) | |
| 角色状态规则(character-state-reverse.md 依赖) | |
| 短篇正文格式规范 | |
长篇细纲模板格式参见 story-long-write(Phase 3 细纲部分);短篇核心框架模板参见 story-short-write(核心框架部分)。这两项为纯文本指引,story-import 不加载对应 skill 的文件。
| Scenario | Loaded File |
|---|---|
| Long Novel Migration Mapping Rules | |
| Short Story Migration Mapping Rules | |
| Character State Reverse-engineering Rules (Long Novel) | |
| Character State Rules (character-state-reverse.md dependency) | |
| Short Story Manuscript Format Specification | |
The detailed chapter outline template format for long novels can be found in story-long-write (Phase 3 Detailed Outline section); the short story core framework template can be found in story-short-write (Core Framework section). These are plain text guidelines, story-import does not load files from the corresponding skills.
Phase 4:项目激活
Phase 4: Project Activation
| 场景 | 说明 |
|---|---|
| 长篇项目结构规范 | 参见 story-long-write(Phase 4 项目文件结构) |
| 短篇项目结构规范 | 参见 story-short-write(Phase 3 项目结构) |
| 环境部署 | 部署模板由 |
| Scenario | Description |
|---|---|
| Long Novel Project Structure Specification | See story-long-write (Phase 4 Project File Structure) |
| Short Story Project Structure Specification | See story-short-write (Phase 3 Project Structure) |
| Environment Deployment | Deployment template is provided by |
流程衔接
Workflow Connection
流水线: 长篇 / 短篇
位置: 导入(在开书之前)
| 时机 | 跳转到 | 命令 |
|---|---|---|
| 导入完想继续写(长篇) | story-long-write | |
| 导入完想继续写(短篇) | story-short-write | |
| 导入完想审查质量 | story-review | |
| 想深入分析对标(长篇) | story-long-analyze | |
| 想深入分析对标(短篇) | story-short-analyze | |
| 从零开新书(长篇) | story-long-write | |
| 从零开新书(短篇) | story-short-write | |
| 项目未部署环境 | story-setup | |
Pipeline: Long Novel / Short Story
Position: Import (Before Starting a New Book)
| Timing | Jump To | Command |
|---|---|---|
| Want to continue writing after import (Long Novel) | story-long-write | |
| Want to continue writing after import (Short Story) | story-short-write | |
| Want to review quality after import | story-review | |
| Want to deeply analyze reference works (Long Novel) | story-long-analyze | |
| Want to deeply analyze reference works (Short Story) | story-short-analyze | |
| Start a new book from scratch (Long Novel) | story-long-write | |
| Start a new book from scratch (Short Story) | story-short-write | |
| Project has no deployed environment | story-setup | |
语言
Language
- 跟随用户的语言回复,用户用什么语言就用什么语言回复
- 中文回复遵循《中文文案排版指北》
- Reply in the user's language, use the same language as the user
- Chinese replies follow the Chinese Copywriting Guidelines