story-long-write

story-long-write is a skill for Claude Code, Codex from Xiaoyangy/novel-studio. It costs 102 tokens per session (21,257 once invoked), scanned A, original, Apache-2.0.

A planning and pipeline adapter for writing long online novels. It organizes requests such as opening a book, creating an outline, continuing chapters, or rewriting chapters for the novel-studio pipeline.

In plain words
What is it for?
Use it to prepare prompts, start or continue a long novel, write selected chapters, review a project, or request rewrites through novel-studio.
Why use it?
It keeps writing, review, and rewriting in one controlled workflow instead of producing chapters directly from the adapter. It also defines how to handle new projects, existing projects, and selected chapter ranges.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Good fit Use it to prepare prompts, start or continue a long novel, write selected chapters, review a project, or request rewrites through novel-studio.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoyangy/novel-studio/story-long-write
Install

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.

Any agent
npx skills add Xiaoyangy/novel-studio --skill story-long-write
Clone the repo
git clone --depth 1 https://github.com/Xiaoyangy/novel-studio

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for story-long-write

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/story-long-write/github.svg)](https://agentmods.dev/skills/xiaoyangy/novel-studio/story-long-write)
Your own site
<a href="https://agentmods.dev/skills/xiaoyangy/novel-studio/story-long-write"><img src="https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/story-long-write/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.

agentmods 80×15 button for story-long-write

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoyangy/novel-studio/story-long-write"><img src="https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/story-long-write.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 21,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.21257
Opus 5 $0.00051 $0.10629
Sonnet 5 $0.00020 $0.04251
Haiku 4.5 $0.00010 $0.02126

Measured 12d ago against content hash b7fb35650c41, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

story-long-write 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 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/check-ai-patterns.js, scripts/check-degeneration.js, scripts/normalize-punctuation.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/story-long-write/SKILL.md · 590 lines

How it starts

The opening of the file, as written. The whole thing — 590 lines — stays where its author put it; the contents beside it link to each section on GitHub.

story-long-write:长篇网文写作

你是网络小说创作教练和 pipeline 适配器。你的任务是把用户的长篇写作需求整理成可执行输入,交给 novel-studio pipeline 统一产出。

最高优先级:novel-studio 强制 pipeline

当前目录或任一父目录包含 cmd/novel-studio 时,本 skill 只能作为 pipeline 适配器:

  • 禁止直接生成、续写或改写正文;禁止直接修改 正文/chapters/output/novel/chapters/ 等章节产物。
  • 无论用户如何描述,包括“继续生成鬼城小说”“日更”“续写”“修改第 X 章”“直接用 story-long-write”,都必须调用 novel-studio --pipeline,不能在本 skill 内直写章节。
  • 新书或需求变更:先把题材、平台、字数、章节范围、对标和硬约束写入 run-prompts/<书名或任务>.md,再执行 novel-studio --pipeline --prompt-file <需求文件>
  • 已有项目续写:优先执行 novel-studio --pipeline;指定章节范围时用 novel-studio --pipeline --stages write --from <N> --write-to <M>
  • 只评审或只返修:使用 novel-studio --pipeline --stages review|rewrite,不要回到本 skill 单独写作。

后续 Phase 1-5 只提供需求整理、题材方法和 prompt 增强材料;它们不是 novel-studio 仓库内的正文产出路径。


Agent 兼容性:检查专业 agent 是否可用时,按 .claude/agents/{agent}.md.opencode/agents/{agent}.md.codex/agents/{agent}.toml 的顺序查找。Codex 原生子代理调用优先使用同名 agent_type;如果当前 Codex 运行时返回 unknown agent_type 或未暴露 custom-agent registry,必须降级为 solo/direct 执行并报告 fallback。Claude/OpenCode 兼容面保留 subagent_type。Codex 不会因为“可并行/调用 agent”这类描述自动开子代理;需要并行时,主会话必须明确写出 spawn N agents并行拆给 N 个 agent,并实际发起 N 个 agent 调用。

多小说调度与上下文保护

如果用户一次给出多个不同题材、书名或核心设定,必须先拆成多本小说任务:

  • 每本小说独立建 {书名}/ 目录、设定、大纲、追踪和章节文件,不共享正文上下文。
  • 能调用子代理时,为不同小说并发启动独立 agent;单批最多 5 个 agentN = min(待处理小说数, 5)。待处理小说超过 5 本时,先 spawn 5 agents / 并行拆给 5 个 agent,其余进入 pending 队列,等本批全部完成后再开下一批。
  • Codex 执行并行批次前必须在调度说明里显式写 spawn {N} agents并行拆给 {N} 个 agent,否则不要假定 Codex 会自动开 subagent。
  • 每个 agent 只处理一本书,并只接收该书输入、当前阶段、当前章号和必要文件路径。
  • 单本小说内部必须逐章串行:第 N 章写完、字数达标、质量审核通过、追踪文件回写后,才能开始第 N+1 章。
  • 主会话只保留轻量调度表(书名、题材、当前章、最后审核结论、下一步、状态 running/pending/done),长正文和详细设定都落盘按需读取,避免多本书挤爆上下文或触发压缩。

核心方法

我们写网文先抓情绪,再用验证过的方法可靠地交付这个情绪,灵感只做素材来源。

  1. 先定情绪,再定故事。每个场景都必须服务于一个明确的情绪目标。说不清交付什么情绪的场景不该存在。
  2. 从验证过的模式出发。先问"什么被验证过有效,我如何重新交付",少从"我想写什么"直接起步。扫榜找方向,拆文找模块,对标找节奏。
  3. 用模块组装,不要重新发明。每个题材都有验证过的剧情模式——反转怎么铺、爽点怎么爆、感情怎么拉扯。找到对的模块,把对标书的具体角色看成功能位(对手/盟友/催化剂),再映射到你的角色。用你自己的素材填充这些功能位。
  4. 只加载必需信息。写每章时只加载"不知道就会写错"的信息。涉及角色的状态、待回收的伏笔、相关设定。其余留在文件系统里。

Read the full file on GitHub · 590 lines

Files

What ships with it

46 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 12d ago First seen · 590 lines · 102 tokens per session scan A b7fb35650c41

Subscribe to this mod's changes

story-long-write is a skill published in the GitHub repository Xiaoyangy/novel-studio (109 stars, last pushed 3d ago), licensed Apache-2.0. It adds 102 tokens to every session and 21,257 once invoked, about $0.0005 per session on Opus 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.