novel-pipeline

novel-pipeline is a skill for Claude Code, Codex from Xiaoyangy/novel-studio. It costs 85 tokens per session (1,248 once invoked), scanned A, original, Apache-2.0.

A staged workflow for creating a complete novel: writing, chapter review, rewriting, and delivery. It records progress so an interrupted run can continue from the last finished stage.

In plain words
What is it for?
Running an end-to-end novel project from one prompt, reviewing or rewriting selected chapters, and producing final delivery files and project records.
Why use it?
It avoids manually restarting long writing jobs and repeating stages that already finished. You can also choose only the stages or chapters you need.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Running an end-to-end novel project from one prompt, reviewing or rewriting selected chapters, and producing final delivery files and project records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoyangy/novel-studio/novel-pipeline
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 novel-pipeline
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 novel-pipeline

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoyangy/novel-studio/novel-pipeline"><img src="https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/novel-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,248 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.00085 $0.01248
Opus 5 $0.00043 $0.00624
Sonnet 5 $0.00017 $0.00250
Haiku 4.5 $0.00009 $0.00125

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

Security

Grade A, and why

novel-pipeline 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 11d ago.

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/novel-pipeline/SKILL.md · 74 lines

How it starts

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

novel-pipeline:可恢复流水线

按阶段顺序跑完整流程,状态存 output/novel/meta/pipeline.json已完成的阶段重跑时自动跳过, 从断点继续。流水线只做阶段编排;每个阶段复用对应子命令逻辑,阶段内部还有更细的恢复 (write 走 checkpoint、review/rewrite 按章号),两层恢复叠加。

阶段

cocreate(可选,多轮澄清)→ write(创作)→ review(评审)→ rewrite(重写)→ deliver(交付沉淀:推进台账 + RAG 事实入库 + 交付快照)

默认序列:write,review,rewrite,deliver(假设已有创作指令)。

前置条件

  • 已完成首次配置(见 skills/README.md),LLM 可用(先 novel-check)。
  • cocreate 阶段时需要交互终端。

执行

# 标准:给创作指令,跑写作→评审→重写→交付
novel-studio --pipeline --prompt "写一本东方玄幻长篇,主角从边陲小城起步"

# 从文件读创作指令
novel-studio --pipeline --prompt-file ./requirement.md

# 先共创澄清再一条龙(首阶段交互,之后无人值守)
novel-studio --pipeline --stages cocreate,write,review,rewrite,deliver

# 自定义阶段子集
novel-studio --pipeline --prompt "..." --stages write,deliver

# 单阶段评审 / 重写也走 pipeline,可指定章号范围
novel-studio --pipeline --stages review --from 3 --to 8 --budget 5m
novel-studio --pipeline --stages rewrite --from 3 --to 8 --role coordinator

# 中断后再次运行同一命令即从断点继续;要从头重跑用 --restart
novel-studio --pipeline --prompt "..."
novel-studio --pipeline --prompt "..." --restart

参数

参数 默认 说明
--prompt <text> / --prompt-file <path> 创作指令(write 阶段用;- 表示 stdin)
--stages a,b,c write,review,rewrite,deliver 阶段子集与顺序
--write-to <n> 0 write 阶段写到指定章节后暂停;0 表示写到全书完结
--from <n> / --to <n> 0 review / rewrite 阶段章号范围
--budget <dur> 阶段默认 review / rewrite 阶段每章 LLM 调用预算
--role <name> writer rewrite 阶段模型角色
--restart 清空已保存状态,从头重跑

恢复语义

  • 每个阶段成功返回后还要通过证据校验,才写入 pipeline.jsoncompletedevidence;失败或证据不足的阶段不标记完成,下次重跑从它继续
  • write 阶段:本书已完结则跳过;已有进度则恢复创作;全新项目用创作指令起新书
  • 已标记完成的阶段重跑时会先复核证据;若产物被删或 checkpoint 缺失,会清掉完成标记并重跑该阶段
  • 证据口径:writeprogress.phase=complete、章节文件和 commit_chapter checkpoint;reviewreviews/*.mdmeta/review-summary.mdrewrite 看章节文件和 .pre-rewrite.md 备份;delivermeta/delivery_log.jsonl / meta/delivery_log.md
  • novel-studio --diag 会只读报告 meta/pipeline.json 的证据漂移;真正清标记和重跑只发生在再次执行 --pipeline
  • 改了 --stages 列表会重置进度(保留已捕获的创作指令)
  • 状态文件用临时文件 + rename 原子写入,写一半崩溃不损坏
  • --headless --prompt--review-existing--rewrite-existing 只保留为兼容别名,新任务应直接调用 --pipeline

Read the full file on GitHub · 74 lines

Files

What ships with it

2 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. 11d ago First seen · 74 lines · 85 tokens per session scan A bd90d45b6136

Subscribe to this mod's changes

novel-pipeline is a skill published in the GitHub repository Xiaoyangy/novel-studio (107 stars, last pushed 2d ago), licensed Apache-2.0. It adds 85 tokens to every session and 1,248 once invoked, about $0.0004 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.