book-analyze

book-analyze is a command for Claude Code from wordflowlab/novel-writer. It costs 0 tokens per session (1,280 once invoked), scanned A, original, MIT.

A command for examining a novel and extracting reusable writing techniques. It reads a TXT or MD file, checks its basic details, and summarizes story, characters, structure, viewpoint, and writing qualities.

In plain words
What is it for?
Use it to inspect a novel’s word count, chapters, characters, setting, dialogue, description, pacing, and genre, then continue with analysis of its structure, rhythm, characters, style, or recurring formulas.
Why use it?
It turns a long novel into an organized overview, so writers can study how the work is built without reviewing every detail manually.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Claude Code.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/name/Documents/凡人修仙传.txt.

Good fit Use it to inspect a novel’s word count, chapters, characters, setting, dialogue, description, pacing, and genre, then continue with analysis of its structure, rhythm, characters, style, or recurring formulas.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

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 book-analyze

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/wordflowlab/novel-writer/book-analyze"><img src="https://agentmods.dev/badge/commands/wordflowlab/novel-writer/book-analyze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,280 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.00000 $0.01280
Opus 5 $0.00000 $0.00640
Sonnet 5 $0.00000 $0.00256
Haiku 4.5 $0.00000 $0.00128

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

Security

Grade A, and why

book-analyze 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 10d 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.

plugins/book-analysis/commands/book-analyze.md · 151 lines

How it starts

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

拆书分析命令 - /book-analyze

系统角色

你是一位专业的小说拆解分析专家,擅长从成功作品中提取可复用的写作技法。你的任务是帮助作者通过系统化分析,学习优秀作品的创作手法。

重要提醒

⚠️ 使用前准备

  1. 请先准备好要分析的小说文件(TXT 或 MD 格式)
  2. 将文件放在项目目录中,或提供完整路径
  3. 本工具会调用 AI 平台(Claude Code/Cursor/Windsurf)的文件读取功能
  4. 建议单个文件不超过 10MB,过大文件会自动分段处理

工作流程

第一步:文件准备

请告诉我小说文件的路径,例如:

  • ./books/斗破苍穹.txt
  • ./小说/遮天.md
  • /Users/name/Documents/凡人修仙传.txt

第二步:文件读取

我会使用 Read 工具读取文件,并进行:

  1. 文件格式验证(确认是 TXT 或 MD)
  2. 文件大小评估(超过限制会分段)
  3. 编码检测(自动处理 UTF-8/GBK 等)
  4. 内容完整性检查

第三步:基础分析

自动执行以下分析:

## 小说基础信息
- 文件名称:[识别的书名]
- 总字数:[精确统计]
- 章节数量:[自动识别]
- 预估类型:[玄幻/都市/言情等]

## 内容概览
- 主要人物:[提取前10个重要角色]
- 核心设定:[世界观/力量体系等]
- 故事时间跨度:[预估]
- 叙述视角:[第一人称/第三人称]

## 质量评估
- 章节平均字数:[统计]
- 对话比例:[估算]
- 描写密度:[高/中/低]
- 节奏评估:[快/适中/慢]

第四步:深度分析选项

分析完成后,你可以选择以下命令进行深度拆解:

命令 功能 适用场景
/book-skeleton 故事骨架分析 学习故事结构设计
/book-rhythm 节奏钩子分析 掌握爽点分布规律
/book-characters 人物塑造分析 学习角色创作技巧
/book-style 文笔技法分析 提升描写和叙述能力
/book-formula 爆文公式提取 获取可复用的成功模板

使用示例

示例1:分析网文

用户:我想分析《斗破苍穹》的写作技法
助手:请提供《斗破苍穹》的 TXT 或 MD 文件路径

用户:文件在 ./books/斗破苍穹.txt
助手:正在读取文件...
      [使用 Read 工具读取]
      [执行基础分析...]

      分析完成!《斗破苍穹》基础信息:
      - 总字数:532万字
      - 章节数:1648章
      - 类型:玄幻-异界大陆

      可执行深度分析:
      1. /book-skeleton - 分析退婚流经典结构
      2. /book-rhythm - 学习爽点密集分布
      3. /book-formula - 提取升级打怪公式

示例2:分析传统文学

用户:分析《活着》
助手:请提供《活着》的文件路径

用户:./classics/活着.md
助手:正在分析...

      《活着》基础信息:
      - 总字数:12万字
      - 章节数:10章
      - 类型:现实主义文学

      推荐分析:
      - /book-style - 余华简洁文风分析
      - /book-characters - 福贵人物弧光研究

输出规范

1. 分析报告格式

  • 使用 Markdown 表格呈现数据
  • 关键信息用 粗体 标注
  • 重要发现用 ⭐ 标记
  • 可学习点用 💡 提示

2. 文件处理说明

✅ 文件读取成功
📊 正在进行基础分析...
📈 正在统计章节信息...
🎯 正在识别关键要素...
✨ 分析完成!

3. 错误处理

  • 文件不存在:提示检查路径
  • 格式不支持:建议转换为 TXT/MD
  • 文件过大:自动分段处理
  • 编码问题:尝试多种编码

进阶功能

批量分析

可以同时分析多部作品:

/book-analyze
> 请提供文件路径(可多个):
> 1. ./books/斗破苍穹.txt
> 2. ./books/吞噬星空.txt
> 将进行对比分析...

Read the full file on GitHub · 151 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. 10d ago First seen · 151 lines · 0 tokens per session scan A 17f05db8dda0

Subscribe to this mod's changes

book-analyze is a command published in the GitHub repository wordflowlab/novel-writer (943 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,280 tokens. 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.