chapter-writer

chapter-writer is an agent for Claude Code from zhiliyouxian/claude-novel-writer. It costs 106 tokens per session (6,097 once invoked), scanned A, original, MIT.

An agent that writes or revises Chinese web-novel chapters from an approved outline. It follows the project's writing rules and keeps track of story entities such as characters, places, and important objects.

In plain words
What is it for?
Use it to write new chapters, continue a novel, revise existing chapters, update entity records, and add an engaging ending hook.
Why use it?
It reduces drift from the planned story and helps keep style, chapter structure, continuity, and story records consistent.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the novel-writer plugin — 9 skills, 11 commands, 9 agents shipped together

Good fit Use it to write new chapters, continue a novel, revise existing chapters, update entity records, and add an engaging ending hook.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zhiliyouxian/claude-novel-writer/chapter-writer
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.

Clone the repo
git clone --depth 1 https://github.com/zhiliyouxian/claude-novel-writer

Made for: Claude Code.

Or install novel-writer, the plugin that ships this one along with the rest of its 9 skills, 11 commands, 9 agents.

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 chapter-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/zhiliyouxian/claude-novel-writer/chapter-writer/github.svg)](https://agentmods.dev/agents/zhiliyouxian/claude-novel-writer/chapter-writer)
Your own site
<a href="https://agentmods.dev/agents/zhiliyouxian/claude-novel-writer/chapter-writer"><img src="https://agentmods.dev/badge/agents/zhiliyouxian/claude-novel-writer/chapter-writer/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 chapter-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/zhiliyouxian/claude-novel-writer/chapter-writer"><img src="https://agentmods.dev/badge/agents/zhiliyouxian/claude-novel-writer/chapter-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,097 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.
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.00106 $0.06097
Opus 5 $0.00053 $0.03048
Sonnet 5 $0.00021 $0.01219
Haiku 4.5 $0.00011 $0.00610

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

Security

Grade A, and why

chapter-writer 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.

agents/chapter-writer.md · 727 lines

How it starts

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

章节作家

你是一位融合麦基戏剧理论网文技法的中文网络小说作家,擅长创作引人入胜的章节内容。

规范引用

  • 目录结构: specs/directory-structure.md
  • 书写风格: specs/writing-style.md
  • 实体格式: templates/entities-template.yaml
  • 角色格式: templates/character-template.md
  • 卷大纲格式: templates/outline-vol-template.md
  • 章节格式: templates/chapter-template.md(YAML Front Matter)
  • 故事理论: libraries/knowledge/_base/story-structures.md(麦基理论)

核心职责

  1. 根据大纲创作: 严格按照outline.md中的章节梗概进行创作
  2. 遵守书写规范: 100%遵守 specs/writing-style.md 的所有规范
  3. 保持风格一致: 参考项目README.md中的风格配置和style-guide
  4. 管理实体: 自动提取新实体,更新data/entities.md,复用已有实体
  5. 设置钩子: 每章结尾必须设置引导钩子

创作流程

步骤0: 蓝图状态检查(前置)

重要:创作前必须检查蓝图状态是否为 ready

检查蓝图状态:

1. 读取 blueprints/{project_id}/proposal.md
2. 检查「蓝图状态」字段

如果状态 = ready:
  ✅ 可以开始创作
  继续步骤1

如果状态 = drafting:
  ⚠️ 蓝图尚未通过审核,不建议创作

  输出警告:
  ⚠️ 蓝图状态为 drafting,尚未通过审核。

  建议操作:
  1. 运行蓝图审核: "验证蓝图 {project_id}"
  2. 修正审核发现的问题
  3. 审核通过后再开始创作

  是否仍要继续创作?(用户确认后才继续)

原因:确保创作基于已审核通过的蓝图,避免因蓝图不完整或有问题导致返工。


步骤1: 读取必要文件

必读文件(分层蓝图结构):

1. 确定章节所属卷:
   blueprints/{project_id}/outline.md - 查看章节范围,确定属于哪一卷

2. 读取分卷大纲(获取详细章节规划):
   blueprints/{project_id}/outlines/vol-{N}.md - 本章的详细内容规划

3. 读取世界观(总览优先,按需读取模块):
   blueprints/{project_id}/worldview.md - 世界观总览
   blueprints/{project_id}/worldview/power-system.md - 如涉及境界/战斗
   blueprints/{project_id}/worldview/factions.md - 如涉及势力
   blueprints/{project_id}/worldview/geography.md - 如涉及地点

4. 读取角色信息(总览优先,按需读取详情):
   blueprints/{project_id}/characters.md - 角色总览和关系网
   blueprints/{project_id}/characters/character-{角色名}.md - 出场角色的详细档案

5. 其他必读:
   productions/{project_id}/data/entities.md - 获取已有实体列表
   specs/writing-style.md - 确认书写规范

注: project_id 从 productions/{project_id}/blueprint.link 读取对应的蓝图路径

可选文件:
- productions/{project_id}/data/style-guide.md - 如果有融合风格指南
- 前1-2章内容 - 保持连贯性

读取策略:

  • 先读总览文件(outline.md, worldview.md, characters.md)获取全局信息
  • 再根据本章需要,读取对应的详细文件(分卷大纲、角色档案、世界观模块)
  • 按需读取,避免一次性加载过多内容

Read the full file on GitHub · 727 lines

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 · 727 lines · 106 tokens per session scan A eed8f3e1b463

Subscribe to this mod's changes

chapter-writer is an agent published in the GitHub repository zhiliyouxian/claude-novel-writer (5 stars, last pushed 8mo ago), licensed MIT. It adds 106 tokens to every session and 6,097 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-31.

Related

Other agents, from other repositories

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

proposal-writer

Specialized agent for generating professional, branded proposals using a presentation-generation tool. Creates polished presentations and documents for sales opportunities from your project and CRM context.

Zeekeey-jpeg/LeRoy-HQ · 34 tokens

cover-artist

Generate book cover art prompts from story content. Produces optimized prompts for image generation models (GPT Image, Gemini, FLUX, etc.) that conform to Kindle dimensions.

howells/fiction · 38 tokens

ollama-vision

Use this agent to analyze images, screenshots, UI mockups, diagrams, or any visual content. Delegates vision analysis to a local Qwen2.5-VL model. Use when the user wants to describe, debug, or extract information from an image file.

PratikHotchandani22/claude-ollama-agents · 59 tokens

forge-modeler

Headless 3D geometry specialist for the Forge suite. Builds, repairs, and validates polygon meshes, parametric CAD (CadQuery/Build123d/OpenSCAD), and procedural geometry (Geometry Nodes, SDF, L-systems) via Python — no GUI. Use for mesh construction, parametric modeling, procedural generation, topology/retopo/LOD…

luminary19/atelier · 126 tokens

gds-agent-game-designer

Game designer for creative vision, GDD creation, and narrative design. Use when the user asks to talk to Samus Shepard or requests the Game Designer.

PabloLION/bmad-plugin · 38 tokens