by zenstory-ai
网文/小说写作 skill 包,覆盖长篇与短篇网络小说的扫榜、拆文、写作、去AI味、封面图全流程 | An all-in-one skill pack for long- and short-form web fiction.
# Add to your Claude Code skills
git clone https://github.com/zenstory-ai/oh-story-claudecodeGuides for using ai agents skills like oh-story-claudecode.
Last scanned: 8/25/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-25T04:37:03.023Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}oh-story-claudecode is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by zenstory-ai. 网文/小说写作 skill 包,覆盖长篇与短篇网络小说的扫榜、拆文、写作、去AI味、封面图全流程 | An all-in-one skill pack for long- and short-form web fiction. It has 6,535 GitHub stars.
Yes. oh-story-claudecode passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/zenstory-ai/oh-story-claudecode" and add it to your Claude Code skills directory (see the Installation section above).
oh-story-claudecode is primarily written in JavaScript. It is open-source under zenstory-ai on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh oh-story-claudecode against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
English | 中文
网文写作 skill 包,覆盖长篇与短篇网络小说的扫榜、拆文、写作、去AI味、封面图全流程。内置适配 Claude Code、Google Antigravity、OpenCode、ZCode、OpenClaw、Codex CLI、Reasonix;能读取项目文件的 Web AI / Agent 环境也可按通用 skills 路径使用。
套路 = 确定性的情绪满足
专业作者的方法论三步走:
围绕四条线展开:爆款逆向 · 剧情模块化重组 · 上下文状态分层管理 · 人机协同。
Antigravity 支持预览:
story-setup可把 13 个 Skills、7 个 custom agents、Always-On Rule 和 workspace Hooks 完整部署到项目.agents/。部署器不修改~/.gemini/,不依赖全局目录或 symlink;.agents/hooks.json只替换顶层oh-story管理组并保留用户组。本契约沿用agents_version: 29,部署后需新开 Antigravity conversation;IDE 与交互式agy建议分别试用。
v0.7.9 — 短篇按场景功能校准:短篇移除逐节最低字数、每节 3-5 个子事件、对白占比和固定钩子节距等机械配额,改按「本场是否改变风险、信息、关系、资源、决定、行动或读者理解」判断;导语作为正文第一场,第 1 章从其后果或新行动继续。新增细纲结构验收,细纲的目标情绪与主角关键选择不再接受占位符。升级后需重跑
/story-setup、新开会话;本版agents_version为 29。完整变更v0.7.8 — 参考拆分与门禁:长短篇参考资料按消费者拆开改名,写正文与短篇构思前新增会阻断的 Reference Gate,短篇 Phase 2 与交付各加一个确定性 verifier;短篇总字数以用户给的范围为准。升级后需重跑
/story-setup、新开会话;本版agents_version为 28。完整变更v0.7.7 — 记忆与收口:长篇正文改用唯一机器字数口径,欠字不自动加戏,超字最多压缩一次;新增跨会话作者记忆、Codex 内置 ImageGen,并修复 story-setup 递归复制。缺少合法「字数目标」现在会停止,不再回退到 3000。升级后需重跑
/story-setup、新开会话;本版agents_version为 26。完整变更更早版本变更见 CHANGELOG.md。
flowchart LR
classDef entry fill:#f0f0f0,color:#333,stroke:#999,stroke-width:1px
classDef phase fill:#e8f4fd,color:#1a1a2e,stroke:#4a9be8,stroke-width:1px
classDef final fill:#fce4ec,color:#333,stroke:#e57373,stroke-width:1px
entry_l{{"长篇作者"}}:::entry
entry_s{{"短篇作者"}}:::entry
entry_r{{"已有方向"}}:::entry
entry_i{{"已有小说"}}:::entry
subgraph S0 [" 环境部署"]
setup["/story-setup"]:::phase
end
subgraph S1 [" 扫榜选材"]
direction TB
scan_l["长篇扫榜"]:::phase
scan_s["短篇扫榜"]:::phase
end
subgraph S2 [" 拆文学习"]
direction TB
analyze_l["长篇拆文"]:::phase
analyze_s["短篇拆文"]:::phase
import_l["已有小说导入"]:::phase
end
subgraph S3 [" 落笔创作"]
direction TB
write_l["长篇写作"]:::phase
write_s["短篇写作"]:::phase
end
subgraph S4 [" 精修定稿"]
deslop["去 AI 味"]:::final
end
entry_l --> setup
entry_s --> setup
setup --> scan_l
setup --> scan_s
scan_l --> analyze_l
scan_s --> analyze_s
analyze_l --> write_l
analyze_s --> write_s
entry_r -.->|跳过准备| write_l
entry_r -.->|跳过准备| write_s
entry_i -.->|推荐先部署| setup
setup -.->|逆向导入| import_l
import_l -.->|续写| write_l
write_l --> deslop
write_s --> deslop
方式一 直接告诉 Claude Code / Antigravity / OpenCode / ZCode / OpenClaw / Codex / Reasonix,或其他支持导入 GitHub 仓库/skill 的 Web AI / Agent 平台:
安装这个 skill https://github.com/zenstory-ai/oh-story-claudecode
升级时再说一次同一句话即可。
方式二 命令行:
npx skills add zenstory-ai/oh-story-claudecode -y -g
-g 全局安装,所有目录可用;去掉 -g 则只装到当前目录。更新时重新执行同一条命令即可。
Windows 上偶尔会看到 ENOENT ... mkdir 报错但末尾仍显示 Done!,这是有技能没装全。story-setup 的参考资料目录整个缺了一块时,跑 /story-setup 会提示参考资料包不完整;其它形式的残缺不一定有提示。无论有没有报错,重跑同一条安装命令即可修复。
Antigravity 用户: 先用 /skills 或自然语言运行 story-setup,选择 target_cli=antigravity。它只在当前写作项目创建/更新 13 个 .agents/skills/ 已知目录、7 个 .agents/agents/agent-name/agent.md 已知定义(agent-name 替换为实际名称)、.agents/rules/oh-story.md、两个 .agents/hooks/ runtime 文件与 .agents/hooks.json 的 oh-story 管理组;其他用户 Skills、Agents、Rules、Hooks 和 hook groups 都保留,部署器本身不会写 ~/.gemini/。项目内 Skills 使用真实目录;若 .agents/skills 已是 symlink,会先解释 git diff 并征求明确迁移同意,未同意绝不沿链接写入。Hook 依赖 PATH 中的 node;部署后新开 conversation,再分别在 IDE 与交互式 agy 中 smoke test。agy 1.1.22 -p 暂不在支持面内:每次 headless 进程都可能在静默鉴权完成前扫描 workspace,鉴权后又不重载 custom agents/hooks,导致 skill 回退、subagent not found,甚至把普通模型输出写到 ~/.gemini/antigravity-cli/scratch/。命令行写作请从项目目录启动交互式 agy,确认 /skills、/agents、/hooks 已发现 oh-story 后再发任务;测试后检查 scratch 没有意外小说产物。
Codex 用户: repo 内直接使用:Codex 会扫描 $REPO_ROOT/.agents/skills(指向 skills/ 的 symlink)发现 13 个 skill;用 $story、$story-setup 或 /skills 调用。Windows 上 git 需开 core.symlinks=true,否则 symlink 失效,改走下方 $story-setup 部署。
跑 $story-setup 部署到写作项目后,会写入 .codex/agents/*.toml、.codex/hooks.json、.codex/hooks/{story_codex_hook.py,run-story-hook.sh,run-story-hook.cmd} 和 .codex/skills/story-setup/references/agent-references/;请信任项目 .codex/ 配置层并在 /hooks review/trust hooks、新开 Codex 会话,让 custom agents 生效。
ZCode 用户: 在 Plugin Management 中把本仓库加入 marketplace,安装 oh-story 后可用 $story、$story-setup 或 / 面板调用 13 个 Skills/Commands。$story-setup 选择 target_cli=zcode 会部署 .zcode/skills/、.zcode/commands/、.zcode/hooks/story_zcode_hook.js,安全合并 .zcode/config.json 与根 AGENTS.md;Hook 依赖 PATH 中的 node。ZCode 3.3.4 不执行项目/plugin custom agents,也没有 PreCompact / SessionEnd,相关流程会明确降级 solo/direct,compact 后由 SessionStart 恢复上下文。
OpenCode 用户: 全局安装后 opencode 自动从 ~/.claude/skills/ 发现 skills;首次用自然语言触发 story-setup(如「用 story-setup 部署网文写作环境」),部署后退出重进 opencode -c 才能用 slash command。部分 hook 行为与 Claude Code 有差异(session-start / session-end / compact 等),详见 CONTRIBUTING.md 的 OpenCode 章节。
OpenClaw 用户: 当前支持 skills-only:OpenClaw 可从 workspace skills/、.agents/skills、~/.agents/skills、~/.openclaw/skills 等 skill root 发现本项目 13 个 skill;SKILL.md 已按 OpenClaw 要求使用单行 name / description 与单行 JSON metadata.openclaw。story-setup 选择 target_cli=openclaw 时会把 skills 复制到项目 skills/ 并写入 OpenClaw 版 AGENTS.md;agents/hooks 暂不部署,写正文前大纲守卫在 OpenClaw 下是 skill 内软约束。部署后如未显示新 skills,请新开 OpenClaw session 或等待 watcher 刷新。
Reasonix 用户: 当前支持 skills + 原生 plugin manifest:Reasonix 原生扫描项目 skill root(.agents/skills 等,指向 skills/ 的 symlink)发现 13 个 skill,用 reasonix doctor capabilities 校验;也可用根 reasonix-plugin.json 走 reasonix plugin install。story-setup 选择 target_cli=reasonix 时会把 skills 复制到项目 skills/ 并写入 Reasonix 版 AGENTS.md;hooks/custom agents 暂不部署,涉及专业 Agent 的 skill 走 solo/direct fallback。Windows 未启用 symlink 时改走原生 plugin。
Web AI / 通用 Agent 用户: 平台能读取 GitHub 仓库或项目文件时,可让 Agent 读取 skills/*/SKILL.md 与对应 references/;需要本地副本时,story-setup 可选 target_cli=generic,只写通用 AGENTS.md 和 skills/。无本项目 hooks/custom agents 的环境按 skill 内软约束或 solo/direct fallback 执行。
OpenClaw / Reasonix / 通用路径的目录残留要手动清: 这三条路径的 skill 副本在项目 skills/ 里,重跑 /story-setup 执行的就是项目里那份,自动清理到不了。项目里若出现 skills/story-setup/references/agent-references/agent-references/(可能嵌了多层)或 skills/story-setup/skills/,手动删掉。要让项目里的 skill 文本本身更新,还需要重新安装本项目后,用新包覆盖项目 skills/ 下这 13 个目录。
升级后如果项目里已经跑过 /story-setup,建议在项目根重跑一次 /story-setup,同步 hooks / agents / references。每版变更见 CHANGELOG.md 与 Releases。
多 agent 协作要先部署再新开会话: 7 个专业 agent(story-architect、narrative-writer、consistency-checker 等)由 /story-setup 写入项目 .claude/agents/,由 $story-setup 写入 .codex/agents/*.toml,或由 Antigravity story-setup 生成 .agents/agents/agent-name/agent.md(agent-name 替换为实际名称)。Antigravity 使用 invoke_subagent + 同名 TypeName;运行时未暴露 custom subagent 时按 skill 明确降级 solo/direct。判断是否生效:新会话里跑 /story-review,报告头是 Effective Mode: full/lean 即注册成功,是 Fallback: ... -> solo 说明当前运行时未暴露该 agent。
导入续写顺序: 推荐先在写作项目根运行 /story-setup(部署 hooks/agents/AGENTS),新开/刷新会话后运行 /story-import 导入已有小说,再用 /story-long-write 日更 或 /story-long-write 写第N章 续写。也可以直接运行 /story-import;它会先检测是否已 setup,未部署时让你选择先去 setup 或继续串行导入。
作者习惯会跨会话延续: 对 /story 说“记住我的写作习惯”,稳定偏好会进入工作区 .story/作者记忆/;看到 Author Memory Receipt 才算写入成功。普通写作只查询本次相关的已确认条目,输出硬上限 2KB,不把完整画像、候选和历史塞进正文 prompt。它与每本书的剧情追踪分开,当前要求、本书设定和硬性门禁始终优先。
| Skill | 触发 | 说明 |
|---|---|---|
story-setup |
/story-setup $story-setup /准备写书 |
环境部署 · Claude/Antigravity/OpenCode/Codex/ZCode/OpenClaw/Reasonix + generic(已有配置安全合并) |
story |
/story $story /story dashboard |
工具箱路由 · 模糊意图分发 + 作者习惯管理 + 本地拆文/项目 Dashboard |
story-long-write |
/story-long-write /写长篇 |
长篇写作 · 大纲搭建、人物设定、正文输出 |
story-long-analyze |
/story-long-analyze |
长篇拆文 · 黄金三章、爽点设计、节奏分析 |
story-long-scan |
/story-long-scan |
长篇扫榜 · 起点/番茄/晋江市场趋势 |
story-short-write |
/story-short-write |
短篇写作 · 情绪设计、反转构思、精修出稿 |
story-short-analyze |
/story-short-analyze |
短篇拆文 · 故事核、结构分析、情感线、反转设计、写作手法、共鸣分析 |
story-short-scan |
/story-short-scan |
短篇扫榜 · 知乎盐言/番茄短篇风口数据 |
story-deslop |
/story-deslop /去AI味 |
去AI味 · 检测并清除 AI 写作痕迹 |
story-import |
/story-import /导入小说 |
逆向导入 · 将已有小说反向解析为标准项目结构 |
story-review |
/story-review /审查 |
多视角审查 · 4 Agent 多视角审稿 + 番茄/起点/知乎评分标准 |
story-cover |
/story-cover /封面 |
封面生成 · 书名题材分析 + GPT-Image-2(Codex 内置用量 / API 回退) |
browser-cdp |
/browser-cdp |
浏览器操控 · CDP 协议复用登录态抓取数据 |
story-deslop的本地检查是写作 lint:blocking 只限确定性句式/标点问题,其他提示按读感判断;朱雀等外部检测只作自测参考,不替代人工读感。
自然语言同样触发:
story-long-writestory-deslopstory-importstory dashboard(本机浏览拆文库与写作项目,可轻量编辑)story 作者记忆(原话证据、待确认、冲突替代)story-explorer agent运行 /story dashboard(Codex 用 $story dashboard)打开本地写作工作台,浏览拆文库与
长/短篇项目文件树,并完成搜索、Markdown 预览、文本编辑、冲突保护保存和确认删除。
服务仅监听 127.0.0.1,小说内容不会上传。


使用 /story-long-analyze 深度模式分析《盘龙》前23章的完整输出:
demo/拆文库/盘龙/
├── 概要.md # 全书概要 + 章节索引
├── 拆文报告.md # 五维评分 + 爽点密度 + 可借鉴套路
├── 文风.md # 句长/标点/对话潜台词/情绪节奏 + 原文锚点
├── 章节/
│ ├── 第1章_深度拆解.md … 第3章_深度拆解.md # 黄金三章逐章深度分析
│ └── 第1章_摘要.md … 第23章_摘要.md # 每章一个摘要文件
├── 角色/
│ ├── 林雷.md # 主角完整档案
│ ├── 霍格.md # 核心配角
│ ├── 希尔曼.md