novel-write

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

A command workflow for writing a novel from a short request. It runs several stages: writing, review, rewriting, and exporting the chapters.

In plain words
What is it for?
Use it to create novel chapters from text or a requirements file, run the writing pipeline with selected stages, and export writing materials for later reuse.
Why use it?
It turns a broad writing request into a repeatable process and saves the resulting chapters as editable Markdown files. It can run without an interactive terminal, including in automated build systems.

Skill for Claude CodeCodex

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

Good fit Use it to create novel chapters from text or a requirements file, run the writing pipeline with selected stages, and export writing materials for later reuse.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoyangy/novel-studio/novel-write"><img src="https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/novel-write.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 814 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.00075 $0.00814
Opus 5.5 $0.00030 $0.00326
Sonnet 5.5 $0.00015 $0.00163
Haiku 4.5 $0.00007 $0.00081

Measured 3mo ago against content hash d9315af7c72a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

novel-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 3mo 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-write/SKILL.md · 54 lines

What it actually says

novel-write:单句需求跑一次 pipeline 创作

把用户的创作要求作为 prompt 交给 novel-studio --pipeline,由 pipeline 编排写作、评审、 重写和导出。章节落盘到 output/novel/chapters/*.md。无 TTY,可在 CI / 远程 agent 中运行。

--headless --prompt 只保留为兼容别名,命令层会转入 pipeline。新任务一律直接调用 --pipeline,不要绕过流水线。

前置条件

  • 已完成首次配置(见 skills/README.md)。headless 不支持首次引导。

执行

# 直接传文本
novel-studio --pipeline --prompt "写一个赛博朋克背景、主角是义体黑客的长篇开篇"

# 从文件读 prompt(长需求/含换行时推荐)
novel-studio --pipeline --prompt-file ./requirement.md

# 从 stdin 读
echo "需求文本" | novel-studio --pipeline --prompt-file -

参数

参数 说明
--prompt <text> 单句创作需求;与 --prompt-file 互斥
--prompt-file <path> 从文件读需求,- 表示 stdin
--stages <list> 可选,默认 write,review,rewrite,deliver
--config <path> 可选,指定配置文件

产物

  • 章节:output/novel/chapters/*.md
  • 写法资产:output/novel/meta/writing_assets.json(可编辑、复用、由弧摘要持续沉淀)
  • 人工感写法参考:内置 assets/references/human-feel-craft.md 会随 reference_pack.references.human_feel_craft 注入,迁移《同桌是只假装高冷的猫》的物件回扣、主观误判、短对话和现实支架,避免正文只靠解释和模板情绪推进。
  • reference-library 写作技巧总纲:内置 assets/references/refer-writing-techniques-digest.md 会随 reference_pack.references.writing_techniques_digest 注入,来自 data/reference-library/writing-craft 19 篇逐篇提炼,约束全书设计、大纲、人物、单章目标/阻力/代价/新增信息、事件余波和中文标点功能。
  • 本书世界:output/novel/book_world.json(地图、地点、路线、势力图谱)
  • 资源账本:output/novel/meta/resource_ledger.json(已入账事实与待确认提案分离)
  • RAG trace:output/novel/meta/rag/retrieval_trace.jsonl(召回命中原因)
  • 运行日志:项目目录下 headless.log

失败排查

  • 报「首次启动需要先在交互终端运行一次 novel-studio 完成配置引导」→ 先在交互终端跑一次 novel-studio 完成 stdin 配置,或手写 ~/.novel-studio/config.json。
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. 3mo ago First seen · 54 lines · 75 tokens per session scan A d9315af7c72a

Subscribe to this mod's changes

novel-write is a skill published in the GitHub repository Xiaoyangy/novel-studio (169 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 75 tokens to every session and 814 once invoked, about $0.0003 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.

Related

novel-write compared with skills from other repositories

novel-write next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
novel-writeXiaoyangy/novel-studioSkill1692mo agoApache-2.0A75Claude Code, Codex
golang-patternsdeepelementlab/clawcodeSkill1266mo agoGPL-3.0A27Claude Code, Codex
golang-testingaffaan-m/ECCSkill313k7d agoMITA37Claude Code, Kiro
golang-patternsaffaan-m/ECCSkill313k7d agoMITA45Claude Code, Kiro
story-deslopzenstory-ai/oh-story-claudecodeSkill9.0kyesterdayMITA70Claude Code
storyzenstory-ai/oh-story-claudecodeSkill9.0kyesterdayMITA63Claude Code
ax-go-agent-optimizeax-llm/axSkill3.0ktodayApache-2.0A51Claude Code, Codex