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 $0.00037 $0.00407
Sonnet 5 $0.00015 $0.00163
Haiku 4.5 $0.00007 $0.00081

Measured 9d ago against content hash d9315af7c72a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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. 9d 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 (102 stars, last pushed today), licensed Apache-2.0. It adds 75 tokens to every session and 814 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.

Related

Other skills, from other repositories

story-review

A review workflow for finding story problems from several viewpoints, including issues with structure, characters, wording, and fictional world rules. It can use multiple reviewer agents or work alone.

zenstory-ai/oh-story-claudecode · 74 tokens

story-cover

A novel-cover generator that creates a cover with the book title and author name. It chooses a visual style from the book information and can use Codex's image-generation tool.

zenstory-ai/oh-story-claudecode · 93 tokens

shogun-screenshot

A screenshot tool for getting images from a computer or web page and then cropping, resizing, or masking sensitive information. Playwright is a browser-automation tool used here to capture web pages.

yohey-w/multi-agent-shogun · 149 tokens

html-artifact

Create polished single-file HTML artifacts for plans, reports, explainers, code reviews, lightweight dashboards, prototypes, and one-off editing tools. Use when the user asks for a standalone HTML file, single HTML, HTML artifact, interactive report, shareable local artifact, Alpine.js artifact, custom CSS artifact…

CherryHQ/stella · 80 tokens

ocr

A decision guide for choosing between OCR, which reads text from an image, and visual description, which explains what a scene or object shows. It also covers cases where both kinds of understanding are needed.

radif-ru/ai-multi-agent-system · 44 tokens

video-generation

Guide to video generation in MassGen. Use when creating videos from text prompts or images across Grok, Google Veo, and OpenAI Sora backends.

massgen/MassGen · 36 tokens