zenstory-ai/oh-story-claudecode / 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 | 10.9 KB |
| references/benchmark-sync.md | markdown | 4.0 KB |
| references/character-state-reverse.md | markdown | 4.2 KB |
| references/deep-analysis.md | markdown | 4.3 KB |
| references/import-report.md | markdown | 4.4 KB |
| references/import-special-cases.md | markdown | 2.5 KB |
| references/import-tracking.md | markdown | 6.8 KB |
| references/length-routing.md | markdown | 1.5 KB |
| references/outline-reverse-rules.md | markdown | 6.0 KB |
| references/outline-reverse.md | markdown | 2.8 KB |
| references/structure-mapping-long.md | markdown | 20.2 KB |
| references/structure-mapping-short.md | markdown | 10.2 KB |
| references/tracking-initialization.md | markdown | 1.6 KB |
| scripts/build_outline_brief.py | script | 16.2 KB |
| scripts/check-outline-contract.js | script | 28.3 KB |
| scripts/outline_view.py | script | 18.2 KB |
| scripts/tracking_commit.py | script | 89.6 KB |
| scripts/wordcount_core.pyexecutable | script | 18.9 KB |
references/tracking-initialization.md
View on GitHub# 追踪初始化事务
> 谁读:还没有追踪状态、要初始化时读(新书写第 1 章前)。
## 初始化事务
仅尚无追踪状态时初始化。新书从第 0 章开始:把下面的 JSON 写到 `{书目录}/.story/work/init.json`,跑 `{PYTHON} {skill 根}/scripts/tracking_commit.py init --project {书目录} --input {书目录}/.story/work/init.json`,成功后删掉临时文件。`story-import` 导入已有小说时把最后完整章写入 `last_chapter=N`;第 1..N 章不伪造日更记录,常规续写从 N+1 章开始。
```json
{
"schema_version": 1,
"book_title": "让你管账号,你高燃混剪炸全网",
"last_chapter": 0,
"context": {
"position": {
"volume": "第一卷·军宣整顿",
"volume_start_chapter": 1,
"story_time": "江晨到火箭军文工团报到前",
"scene": "火箭军文工团"
},
"long_term_constraints": ["军宣爽点要用作品效果和围观反应链兑现,不能只靠系统播报"],
"active_character_names": [],
"continuity_risks": [],
"recent_chapters": [],
"next_chapter_commitments": ["让江晨报到,并落下五天百万粉的新手任务"]
},
"character_snapshots": {},
"foreshadow": [],
"timeline_events": []
}
```
导入示例须按已读正文改写当前状态,不能照用第 0 章内容;全部导入批次完成后初始化一次,不重置已有 state。传入当前核心角色快照、伏笔当前行、时间线事件与 JSON 中六项 context 输入,由脚本生成七栏 `追踪/上下文.md`。阶段/卷级回看按需查询正文,不作为每章强一致追踪产物。
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 |