zjs105910/workbuddy-market / bundled/novel-writing-suite/skills/story-import
story-import
Verified逆向导入已有小说。将已写好的小说(半成品或完本)反向解析为标准项目目录结构,兼容 story-long-write / story-short-write 后续写作流程;内部复用 story-long-analyze / story-short-analyze 的拆解管道,按篇幅自动分流。触发方式:/story-import、「导入小说」「反向解析」「导入」「把我的书导进来」。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.0 KB |
| references/character-state-reverse.md | markdown | 4.2 KB |
| references/deep-analysis.md | markdown | 5.8 KB |
| references/format-and-structure.md | markdown | 10.4 KB |
| references/import-report.md | markdown | 3.9 KB |
| references/import-special-cases.md | markdown | 3.9 KB |
| references/import-tracking.md | markdown | 7.8 KB |
| references/length-routing.md | markdown | 6.2 KB |
| references/outline-reverse-rules.md | markdown | 5.7 KB |
| references/outline-reverse.md | markdown | 2.7 KB |
| references/state-tracking.md | markdown | 2.2 KB |
| references/structure-mapping-long.md | markdown | 22.0 KB |
| references/structure-mapping-short.md | markdown | 10.7 KB |
| references/tracking-initialization.md | markdown | 1.3 KB |
| references/tracking-transaction.md | markdown | 14.9 KB |
| scripts/build_outline_brief.py | script | 16.3 KB |
| scripts/check-outline-contract.js | script | 23.4 KB |
| scripts/tracking_commit.py | script | 81.8 KB |
| scripts/wordcount_core.py | script | 17.9 KB |
references/outline-reverse.md
View on GitHub# 逐批反推细纲(长篇导入)
卷纲写定后,从章节摘要反推每章细纲,一批一个任务包。进度记在导入记录(`{书目录}/.story/work/导入记录.md`)的「细纲:已验收到第 B 章」;续跑从第 B+1 章起整批重做,这一批里已经存在但没验收的细纲文件按新任务包重写覆盖。
## Step 1:生成本批任务包
按当前平台探测 Python 3(`python3` → `python` → `py -3`),请求第 B+1 章起的 20 章(剩下不足 20 章就到最后一章):
```text
{PYTHON} {story-import skill 根}/scripts/build_outline_brief.py --project {书目录} --chapters {A-B}
```
脚本把反推规则与模板([outline-reverse-rules.md](outline-reverse-rules.md) 全文)、每章按 `visible_chars_v1` 测好的历史长度与摘要要点、卷纲里覆盖本批的剧情单元行,拼成 `{书目录}/.story/work/排纲/导入细纲_第AAA-BBB章.md`。执行者要读的总量超过约 25K 字时脚本自动少排几章(可少于 10 章),以 stdout JSON 的 `chapters` 为本批实际范围、`next` 为下一批起点。缺摘要的章改用简化摘要或正文,已算进总量。
长度必须由脚本测,不得用模型估算或静默跳过。找不到 Python 3 或脚本报错时停下,用一句话告诉作者卡在哪(如「第 12 章正文读不到,先把正文迁完」),原文报错放技术备注;卷纲缺失时先回结构迁移补卷纲。
## Step 2:写本批细纲
- **有 story-architect**(导入记录写着可用,按 SKILL.md 顶部的 Agent 兼容性检查 canonical 目录):主会话只取任务包路径,不读包的内容。Prompt:`项目目录:{dir}\n任务包:{任务包路径}\n先完整读取任务包,按包里的规则与模板完成;作者已定的事在 .story/work/导入记录.md,对话内容不会传给你\n交付后只回任务包开头要求的几项`。Antigravity 用 `invoke_subagent` + `TypeName: "story-architect"`。
- **没有**:主会话完整读取任务包,自己按包写本批;不另读本文件以外的规则,也不整读拆文库摘要。
## Step 3:验收与交接
每批写完由主会话运行 `node {story-import skill 根}/scripts/check-outline-contract.js --json <本批细纲路径...>`:exit 1 时只按报告补缺的字段或小节(有 story-architect 时把报错原样交回同一 agent 修一次)。通过后把导入记录的细纲进度改成「已验收到第 B 章」。还有下一批时,向作者一句话说到第几章了,末尾按 [SKILL.md 的换上下文规则](../SKILL.md#时刻表与交接) 建议新开对话说「继续导入」;没有子代理时每批都这样建议。全部章节细纲写完再进 Phase 4。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |