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.
git clone --depth 1 https://github.com/zhiliyouxian/claude-novel-writerWrote 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.
[](https://agentmods.dev/commands/zhiliyouxian/claude-novel-writer/nw-migrate)<a href="https://agentmods.dev/commands/zhiliyouxian/claude-novel-writer/nw-migrate"><img src="https://agentmods.dev/badge/commands/zhiliyouxian/claude-novel-writer/nw-migrate/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.
<a href="https://agentmods.dev/commands/zhiliyouxian/claude-novel-writer/nw-migrate"><img src="https://agentmods.dev/badge/commands/zhiliyouxian/claude-novel-writer/nw-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00023 | $0.00506 |
| Opus 5 | $0.00012 | $0.00253 |
| Sonnet 5 | $0.00005 | $0.00101 |
| Haiku 4.5 | $0.00002 | $0.00051 |
Grade A, and why
nw-migrate 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.
What it actually says
项目迁移命令
将旧版项目一键升级到新版结构,完成后可继续创作。
用法
# 指定项目
/nw-migrate xuanhuan_001
# 自动检测(工作区只有一个项目时)
/nw-migrate
功能
自动完成所有升级操作:
- 检测版本 - 识别当前项目结构
- Git 备份 - 自动提交当前状态
- 结构升级 - 拆分文件为分层结构
- 内容升级 - 补充戏剧理论字段
- 章节重命名 - 3位数升级到4位数
- 完成提交 - 自动提交迁移结果
升级内容
| 旧版 | 新版 |
|---|---|
worldview.md |
worldview.md + worldview/*.md |
characters.md |
characters.md + characters/*.md |
outline.md |
outline.md + outlines/vol-*.md |
chapter-001.md |
chapter-0001.md |
新增字段:
- 控制思想、五大转折点、递进压力链
- 场景极性、双层欲望、压力人格
- 对抗力量、冲突层次框架
执行流程
/nw-migrate xuanhuan_001
↓
检测项目 → Git备份 → 执行升级 → 提交结果
↓
✅ 迁移完成,可继续创作
回滚
如需回滚:
git revert HEAD
输出示例
🔄 开始迁移: xuanhuan_001
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Git 备份... ✓
📂 结构升级... ✓
📝 内容升级... ✓
🔢 章节重命名... ✓
💾 提交结果... ✓
✅ 迁移完成!
可继续创作:
/nw-ch-write 下一章
"继续写第X章"
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.
- 12d ago First seen · 80 lines · 0 tokens per session scan A 5d9f47901450
nw-migrate is a command published in the GitHub repository zhiliyouxian/claude-novel-writer (5 stars, last pushed 8mo ago), licensed MIT. It adds 23 tokens to every session and 506 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.
Other commands, from other repositories
commit
A command that examines staged Git changes and proposes a commit message using the Conventional Commits format, such as feat, fix, or docs. Git is a tool for tracking changes to code.
release-notes
Generate consistent, well-structured release notes from git history. Triggered on release tags following semver patterns (v..) to produce categorized changelog with breaking changes, features, fixes, and contributor attribution.
doctor
Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…
handoff
Export a Waybill Bundle by default, or import one when requested.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
release-plan
A release-planning command for a software change. It documents the release scope, rollback plan, gradual or full rollout, and monitoring before waiting for human approval.