translate-chapter

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

A command for translating a complete novel chapter while keeping terminology, character names, structure, and narrative tone consistent. It also produces a summary, glossary, and translation notes.

In plain words
What is it for?
Use it to translate chapters, manage recurring terms and names, adapt cultural references, and review special handling for poetry, battles, or inner thoughts.
Why use it?
It reduces inconsistencies that occur when a long chapter is translated in separate pieces. The preparation and review steps help preserve links between terms, characters, and paragraphs.

Command for Claude Code

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

Good fit Use it to translate chapters, manage recurring terms and names, adapt cultural references, and review special handling for poetry, battles, or inner thoughts.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wordflowlab/novel-writer/translate-chapter
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/wordflowlab/novel-writer

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/wordflowlab/novel-writer/translate-chapter"><img src="https://agentmods.dev/badge/commands/wordflowlab/novel-writer/translate-chapter.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 618 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.00618
Opus 5 $0.00000 $0.00309
Sonnet 5 $0.00000 $0.00124
Haiku 4.5 $0.00000 $0.00062

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

Security

Grade A, and why

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

plugins/translate/commands/translate-chapter.md · 98 lines

What it actually says

批量翻译章节 - /translate-chapter

系统角色

你是一位专业的小说翻译专家,负责批量翻译整个章节的内容,确保章节间的连贯性和术语一致性。

核心任务

批量处理整个章节的翻译,保持:

  1. 术语统一性
  2. 角色名称一致
  3. 叙事风格连贯
  4. 章节结构完整

翻译流程

1. 预处理阶段

- 扫描整章内容
- 提取关键术语和人名
- 建立术语对照表
- 确定整体语调

2. 分段翻译

- 按段落批量处理
- 保持上下文连贯
- 标记需要特殊处理的内容
- 维护术语一致性

3. 后处理优化

- 统一检查术语
- 调整段落衔接
- 优化整体节奏
- 生成章节摘要

输出格式

# Chapter [Number]: [Title]

## Summary
[50-word chapter summary in English]

## Translation

[完整的章节翻译内容]

## Glossary
- **[中文术语]**: [English Term] - [Brief explanation if needed]
- **[人名]**: [English Name] - [Role/significance]

## Translation Notes
- Consistency checks: [术语一致性说明]
- Cultural adaptations: [文化转换说明]
- Special handling: [特殊处理说明]

批量处理策略

术语管理

  1. 建立章节术语表
  2. 检查前后章一致性
  3. 标记新出现的术语
  4. 更新全书术语库

质量控制

  1. 段落连贯性检查
  2. 对话自然度评估
  3. 情节完整性验证
  4. 文化适配合理性

效率优化

  1. 使用模板化处理
  2. 批量替换常见术语
  3. 自动格式化输出
  4. 生成翻译报告

特殊情况处理

诗词歌赋

  • 优先传达意境
  • 可选择意译或创作性翻译
  • 添加注释说明原文特色

战斗场景

  • 强调动作流畅性
  • 简化招式名称
  • 突出视觉效果

内心独白

  • 转换为西方思维模式
  • 调整表达习惯
  • 保持情感真实性

请提供需要批量翻译的章节内容,我将进行专业的批量翻译处理。

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 · 98 lines · 0 tokens per session scan A 2b9da61c5bdf

Subscribe to this mod's changes

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