nw-release

nw-release is a command for Claude Code from zhiliyouxian/claude-novel-writer. It costs 16 tokens per session (3,952 once invoked), scanned A, original, MIT.

A release command that turns completed novel chapters into files for reading, publishing, audio, or video work. It can produce plain text, Markdown, speech scripts, audio-related files, and video preparation files.

In plain words
What is it for?
Use it to export a complete book or selected release formats, such as a TXT collection, cleaned Markdown, text for speech, an audiobook, storyboards, or a finished video.
Why use it?
It removes the repeated work of preparing chapters for different outputs. It also performs checks before exporting and sends each format through the relevant processing steps.

Command for Claude Code

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

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

Good fit Use it to export a complete book or selected release formats, such as a TXT collection, cleaned Markdown, text for speech, an audiobook, storyboards, or a finished video.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/zhiliyouxian/claude-novel-writer/nw-release"><img src="https://agentmods.dev/badge/commands/zhiliyouxian/claude-novel-writer/nw-release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,952 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.00016 $0.03952
Opus 5 $0.00008 $0.01976
Sonnet 5 $0.00003 $0.00790
Haiku 4.5 $0.00002 $0.00395

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

Security

Grade A, and why

nw-release 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.

commands/nw-release.md · 561 lines

How it starts

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

发布导出命令

执行者: release-manager agent

本命令由 release-manager agent 执行,该 agent 会:

  1. 进行发布前检查(书名、章节状态、完整性)
  2. 根据格式调用相应 Skill(audiobook-optimizer、format-exporter 等)
  3. 传递正确的参数并协调执行

将创作内容导出为多种发布格式。

用法

/nw-release <格式>

格式说明

格式 输出 说明
tts releases/{project_id}/tts/scripts/ 语音文本(去换行、优化朗读)
txt releases/{project_id}/text/full.txt 完整合集(单文件)
md releases/{project_id}/markdown/ 发布版 Markdown(去 yml 头)
audio releases/{project_id}/tts/audio/ 有声书音频 + 字幕
video-char releases/{project_id}/video/prompts/characters/ 角色视觉提示词
video-prep releases/{project_id}/video/storyboard/ + prompts/scenes/ 分镜 + 场景提示词
video-assemble releases/{project_id}/video/output/ 拼接最终视频
all 以上全部(不含 video)

示例

# 导出语音朗读文本
/nw-release tts

# 导出完整合集
/nw-release txt

# 导出发布版 Markdown
/nw-release md

# 导出所有格式
/nw-release all

# 生成有声书音频 + 字幕
/nw-release audio

# === 视频发布 ===

# 生成角色视觉提示词
/nw-release video-char

# 生成分镜脚本和场景提示词
/nw-release video-prep

# 拼接最终视频(需先放置图片)
/nw-release video-assemble

也可以通过自然语言触发,如:

  • "导出有声书文本"
  • "生成语音版本"
  • "合成音频" → 会生成 tts/scripts + audio + subtitles
  • "制作视频" → 启动完整视频发布流程
  • "生成角色参考图提示词"
  • "生成分镜脚本"

支持的导出格式

1. TXT纯文本 (txt)

文件: releases/{project_id}/text/full.txt

特点:

  • 所有章节合并为单文件
  • 移除YAML frontmatter
  • 移除Markdown标记
  • 统一中文标点
  • 章节间空行分隔

示例输出:

第1章 {章节标题1}

{起始城镇},{主角家族}。

"{主角}哥哥,这是我给你带的糕点。"{女主}提着食盒,轻声说道。
...

第2章 {章节标题2}

...

2. 带目录TXT (txt-toc)

文件: releases/{project_id}/text/full-with-toc.txt

特点:

  • 文件开头包含目录
  • 目录包含章节名和字数
  • 便于快速定位

示例输出:

【目录】

第1章 {章节标题1} (3,200字)
第2章 {章节标题2} (3,150字)
第3章 {章节标题3} (2,980字)
...

总字数: 93,000字
总章节: 30章

═══════════════════════════════

第1章 {章节标题1}

{起始城镇},{主角家族}。
...

3. 分章TXT (txt-chapters)

目录: releases/{project_id}/text/chapters/

特点:

  • 每章单独文件
  • 文件名: 0001_{章节标题}.txt
  • 便于分章上传

4. 起点中文网格式 (qidian)

目录: releases/{project_id}/platforms/qidian/

Read the full file on GitHub · 561 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. 12d ago First seen · 561 lines · 0 tokens per session scan A 2f5b7b25aa07

Subscribe to this mod's changes

nw-release is a command published in the GitHub repository zhiliyouxian/claude-novel-writer (5 stars, last pushed 8mo ago), licensed MIT. It adds 16 tokens to every session and 3,952 once invoked, about $0.0001 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.