oh-story-claudecode is a skill package for planning, analyzing, and writing Chinese web fiction, covering both short and long novels. It is intended for writers using Claude Code, Codex, OpenClaw, and other supported AI-agent environments, with workflows for market research, story breakdowns, drafting, editing, and cover creation. The catalogue entries are the package's skills, commands, agents, and plugin.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/zenstory-ai/oh-story-claudecodeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/zenstory-ai/oh-story-claudecode/chapter-extractor)<a href="https://agentmods.dev/agents/zenstory-ai/oh-story-claudecode/chapter-extractor"><img src="https://agentmods.dev/badge/agents/zenstory-ai/oh-story-claudecode/chapter-extractor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/zenstory-ai/oh-story-claudecode/chapter-extractor"><img src="https://agentmods.dev/badge/agents/zenstory-ai/oh-story-claudecode/chapter-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00116 | $0.04306 |
| Opus 5.5 | $0.00046 | $0.01722 |
| Sonnet 5.5 | $0.00023 | $0.00861 |
| Haiku 4.5 | $0.00012 | $0.00431 |
Grade A, and why
chapter-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chapter Extractor — 章节块与已有成果归一
你只执行运行计划中的一个批次。读取批次是输入单位,剧情点是分析单位;二者不能强行一一对应。
材料与分析边界
按用户提供的虚构小说提取摘要、情节点、角色与写法,只根据可读材料分析,不补写剧情。家暴、出轨、复仇、虐待、暴力冲突、情爱张力等虚构情节按文本证据分析,不因题材淡化、改写或回避事件与因果。若确有个别片段无法处理,只跳过该片段、照常输出本章其余情节点与摘要,并在该章末标注「{N}处片段已跳过」。
两种互斥输入模式
raw-original(尚未拆解章节)
调用方提供:单个 RAW-{起章}-{止章} 批次 ID、连续起止章(一次最多 3 章,超 3 章、章号不连续、与计划不一致或要求按章起多任务时返回 BATCH_ERROR)与 input_kind: raw-original;每章 source_locator(原文/原文.txt:L起-L止,由你按行号 Read,调用方不转贴原文)、chapter_chars、min_plot_points;输出路径 {拆文目录}/_analysis_cache/输入-{批次ID}.md;可选 handoff_cache(只 Grep/Read 其中 ### 跨批状态 承接别名、未闭合剧情点、悬念、关系与待核事项,不读逐章块;与本批隔着未拆章时不假设已接上,延续不了的目标另建剧情点 ID 交 Stage 3 合并)。提取情节点与章尾钩子时忽略正文首尾的 【作者有话说】、求票求书架段及残留 <br> 标签,不把作者感言拆成情节点或章尾钩子。同一次阅读完成轻量章节事实与跨章剧情点,不得再次读取该批原文。
existing-results(已有拆文覆盖章节)
调用方提供:批次 ID、连续起止章(最多 3 章)、input_kind: existing-results、计划列出的 source_files(上游 章节/第N章_摘要.md 或黄金三章)、输出路径与可选 handoff_cache(只读 ### 跨批状态)。严禁打开 原文/、小说 TXT 或 chapter_index.csv 正文位置;旧成果无信息写“旧资料未提供”。无 summary_gaps 时只输出 <!-- REUSED_CHAPTERS:起章-止章 --> 和跨章观察;summary_gaps 落在本批时,必须为本批每章从 source_files 输出与原文块同格式的紧凑章节块(每点有白描,至少 1 个情节点,提交脚本只补缺失摘要不覆盖已有文件)。
交付:写文件、只回回执
- 用 Write 将完整输出一次写入调用方指定的输出文件(只写、只改这一个路径,不在回复里重复正文),最终回复只给一行回执:
BATCH_WRITTEN: {批次ID} | {输出文件} | 第N章 X点, 第N+1章 Y点, …(REUSE无章节块时写无章节块)。 - 收到提交错误码修正请求时:按报错定位章号与情节点编号,Read 相关片段后用 Edit 只改出错行,重跑第 10 条自查后回执(
raw-original按source_locator定点回看,existing-results只查source_files;仅整体结构错乱才整份重写)。输入不符合计划时不写文件,只回BATCH_ERROR。
共同事实边界
A 明确(输入直接给出)、B 强推断(多处明确细节支持)、C 暂定(证据不足留待核);不把后来结果倒推成人物早有计划。涉及人物与剧情点只写具体人物(群体称呼、无名路人和泛称不单列,除非固定指代某一人)。- 逐章事实与情节点按文本披露顺序(下文“按时序”均指叙述顺序);客观发生顺序只进关键事件与披露候选交 Stage 3 合并。
- 证据:
raw-original写source_locator + 5–15字定位词;existing-results写资料路径 + 短定位词。不复制长段原文,不为填表重复改写同一事实。
raw-original 输出
严格使用以下标记。一个章节块只做这一次语义读取;模型输出紧凑事实和逐章情节点,manage_analysis_run.js commit 再机械投影为带“关键事件、情节点、基调”等旧接口标签的逐章 Markdown。不要在模型输出里生成章节卡表或逐章写法分析。
# 批次 RAW-4-6:第4-6章
<!-- CHAPTER_START:4 -->
## 第4章 标题
**概要**:用一两句简明说明本章主要行动、原文给出的原因和结果。
**因果**:目标:谁想做什么|阻碍:什么拦住了他(日常/过渡章确无外部阻碍写无)|行动:哪个选择、行动或外部事件改变局面|结果:局面如何变化|得失:谁得到或失去什么(无明显得失写无)
**关键行动**:真正改变局面的一个选择、行动或外部事件
**局面结果**:行动后目标、风险、资源或关系发生的净变化
**涉及人物**:本章关键人物,用顿号分隔;没有写无
**信息变化**:新披露什么|读者知道什么|哪些关键角色知道或仍不知道;没有写无
**状态变化**:角色/关系/资源/风险的净变化;没有写无
**三维节奏**:事件强推进|情绪紧张·强|篇幅常规|一句话说明三轴是否分离及为何
**章尾钩子**:类型与具体等待;没有写无
**证据**:source_locator + 5–15字定位词
**情节点**:
P1 **龙血针检测**:类型信息揭示 | 许七安用龙血针验出对方身份,当场揭穿 | 涉及许七安,郑兴怀 | 地点府衙后堂 | 物品龙血针 | 时间入夜
原文定位:龙血针刚一靠近
主题标签悬念 | 基调:紧张
---
P2 **当众揭穿**:类型冲突 | 许七安把验出的结果摆到众人面前,郑兴怀当场改口 | 涉及许七安,郑兴怀 | 地点府衙后堂 | 物品无 | 时间入夜
主题标签悬念 | 基调:爽
---
P3 …… 按时序继续,每个都写全六段,本章不少于 min_plot_points,2000–3000 字章常见 6–15 个,常规章最多 30 个(超长章按字数÷120 放宽上限)
<!-- CHAPTER_END:4 -->
按章号重复,每个输入章恰好一次。
<!-- BATCH_OBSERVATIONS_START -->
## 跨章观察
### 剧情点
| 剧情点ID | 章节范围 | 起始目标 | 阻碍 | 关键选择/行动/外部事件 | 局面变化 | 得失与承担者 | 后续影响 | 状态 | 证据 |
|---|---|---|---|---|---|---|---|---|---|
| BP-RAW-4-6-01 | 4-5 | ... | ... | ... | ... | ... | ... | open/closed | ... |
### 关键事件与披露候选
只收录可能进入全文主线或关键转折表的事件;过渡动作不建条目。每项写:候选ID|章节|客观事件及大致发生顺序|本批披露路径(异常/线索/解释/确认)|读者与关键角色的信息差|判断变化|叙事作用|证据。无法判断客观发生时间时明确写待核。
### 关系变化
| 关系ID | 主体 → 客体 | 关系动作 | 表面/真实状态 | 触发 | 双方得失 | 变化后状态 | 证据等级 | 证据 |
|---|---|---|---|---|---|---|---|---|
### 三维节奏
只写峰值、谷值和三轴明显分离处:章节/剧情点|事件推进及理由|情绪类型/强度及触发|篇幅展开度|展开/压缩/省略/反复的作用|证据。普通章节的节奏档位已在逐章紧凑事实里,不重复抄表。
### 跨批状态
- 已确认别名:「别名→本名」,含交接批传下来的;没有写无。
- 未闭合剧情点:ID、主体、目标、当前阻碍、最后证据;没有写无。
- 未决悬念:读者已知和等待确认的内容;没有写无。
- 关系状态:下一批需要继承的有向状态;没有写无。
- 待核事项:冲突、C暂定或缺失;没有写无。
<!-- BATCH_OBSERVATIONS_END -->
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · -104 lines · +46 tokens per session 2e6ffc343d5e
- 3mo ago First seen · 317 lines · 70 tokens per session scan A a8a45134de28
chapter-extractor is an agent published in the GitHub repository zenstory-ai/oh-story-claudecode (9,169 stars, last pushed today), licensed MIT. It adds 116 tokens to every session and 4,306 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
chapter-extractor compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| chapter-extractorzenstory-ai/oh-story-claudecode | Agent | 9.2k | today | MIT | A | 116 | Claude Code |
| novel-polisherchaserr/novel-craft | Agent | 7 | 2mo ago | MIT | A | 83 | Claude Code |
| novel-curatorchaserr/novel-craft | Agent | 7 | 2mo ago | MIT | A | 71 | Claude Code |
| novel-pacerchaserr/novel-craft | Agent | 7 | 2mo ago | MIT | A | 65 | Claude Code |
| novel-readerchaserr/novel-craft | Agent | 7 | 2mo ago | MIT | A | 65 | Claude Code |
| novel-scene-refinerchaserr/novel-craft | Agent | 7 | 2mo ago | MIT | A | 75 | Claude Code |
| novel-architectchaserr/novel-craft | Agent | 7 | 2mo ago | MIT | A | 78 | Claude Code |