novel-rewrite

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

A chapter-by-chapter rewriting workflow for an existing novel, based on review feedback. It changes the original chapter files and can process the whole project or a selected range of chapters.

In plain words
What is it for?
Rewriting chapters after review, improving story structure and scene details, and revising only specified chapters or using a selected writing role.
Why use it?
It turns review comments into changes in the text instead of leaving the author to apply every suggestion manually. The work can be repeated in batches as new feedback arrives.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd ./output/novel.

Good fit Rewriting chapters after review, improving story structure and scene details, and revising only specified chapters or using a selected writing role.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Xiaoyangy/novel-studio
agentmods
npx agentmods add skills/xiaoyangy/novel-studio/novel-rewrite

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-rewrite

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoyangy/novel-studio/novel-rewrite"><img src="https://agentmods.dev/badge/skills/xiaoyangy/novel-studio/novel-rewrite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 646 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.00065 $0.00646
Opus 5 $0.00032 $0.00323
Sonnet 5 $0.00013 $0.00129
Haiku 4.5 $0.00006 $0.00065

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

Security

Grade A, and why

novel-rewrite 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.

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-rewrite/SKILL.md · 49 lines

What it actually says

novel-rewrite:pipeline rewrite 阶段重写

读取已有项目的评审反馈,逐章调用 Writer(或 coordinator 角色)重写章节正文。 会改动 chapters/*.md 原文,建议先用版本控制或备份。 重写时 Writer 会使用 human_feel_craft:把评审中的 AI 腔、解释感、模板情绪问题转成现场物件、主观误判、短对话/动作拍和可复核因果链,而不是只替换形容词。 Writer 同时会使用 writing_techniques_digest:把 data/reference-library/writing-craft 的逐篇提炼落到目标/阻力/代价/新增信息、钩子接力、事件铺垫/过程/余波、过渡章期待铺垫和标点功能上。结构缺口先补任务和场景, 再做句子级润色。

前置条件

  • 已完成首次配置(见 skills/README.md)。
  • 一个已跑过 novel-review 的项目(有评审反馈可依据)。项目根 = 当前工作目录,不能用 位置参数传路径,需先 cd 进项目目录。

执行

# 先进入项目目录,再按反馈重写
cd ./output/novel
novel-studio --pipeline --stages rewrite

# 只重写第 3–8 章
novel-studio --pipeline --stages rewrite --from 3 --to 8

# 用 coordinator 角色而非默认 writer
novel-studio --pipeline --stages rewrite --role coordinator

参数

参数 默认 说明
--stages rewrite 只执行 pipeline 的 rewrite 阶段
--from <n> 0(自动) 起始章号(含)
--to <n> 0(自动) 结束章号(含)
--role <name> writer 调用的模型角色:writer / coordinator
--budget <dur> --help 每章 Writer 调用硬时间预算

产物

  • 改写后的 chapters/*.md(原文被覆盖)

配套流程

novel-review → 人工/自动确认意见 → novel-rewrite。两者都经 pipeline 按章号范围工作,可分批迭代。

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. 12d ago First seen · 49 lines · 65 tokens per session scan A cf5919d38dde

Subscribe to this mod's changes

novel-rewrite is a skill published in the GitHub repository Xiaoyangy/novel-studio (109 stars, last pushed 3d ago), licensed Apache-2.0. It adds 65 tokens to every session and 646 once invoked, about $0.0003 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

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, UI mockups, product shots, or transparent-background cutouts. Use when the result should be an image asset rather than repo-native SVG, HTML/CSS, or canvas.

nexus-research-lab/nexus · 65 tokens

visualize

A Chinese-language guide for creating interactive charts, diagrams, simulations, visual explanations, dashboards, visual comparisons, SVG or Canvas artwork, and interface prototypes in a Nexus conversation.

nexus-research-lab/nexus · 76 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