メインコンテンツへスキップ
K

dsh-novel-plugin

k39846336-collab/dsh-novel-plugin

Long-form web-novel pipeline with platform-accurate word counting: scaffold a book, outline volumes from a target length, report progress, audit the manuscript for repeated paragraphs, colliding titles and numbering gaps, then export an upload-ready chapter package. Ships three workflow skills and has zero dependencies.

インストール

dsh plugin --profile web add github:k39846336-collab/dsh-novel-plugin

README

dsh-novel-plugin

写长篇网文的一站式 DSH 插件:大纲、章节、审查、上架打包。

写一部 30 万字的长篇小说,最难的不是灵感,是一致性和收尾。 这个插件把完整的写作流程固化成了工具和技能,避免"写崩"和"字数注水"。

功能

工具(模型可调用)

工具作用
novel_init初始化项目骨架(设定/章节/伏笔/上架包 + 模板)
novel_outline按目标字数与分卷数生成大纲骨架
novel_stats统计进度:章数、正文字符、平均、缺口、还需几章
novel_audit全稿审查:章内重复、重复标题、过短章、缺章号
novel_pack导出上架包:N 个 txt + 卷章对照表 CSV + 发布清单

命令(人不经模型)

  • /novel-new <目录> <书名> — 初始化新书
  • /novel-stats <目录> — 快速看进度

技能

  • novel-workflow — 从设定到大纲到上架的完整流程
  • novel-chapter — 单章写作规范(字数校准、段落密度、钩子)
  • novel-audit — 全稿体检流程(判读、修复顺序、误判识别)

核心设计:字数口径

网文平台按正文非空白字符计数,文件里的 #、---、** 都不算。

这个插件的所有统计都走同一套清洗规则,所以:

  • novel_stats 报的数字 = 平台看到的数字
  • 不会出现"文件 2 万字节其实只有 8 千字"的误判

安装

从本地目录

dsh plugin --profile desktop add D:\path\to\dsh-novel-plugin

从 npm(发布后)

dsh plugin --profile desktop add dsh-novel-plugin

在 DSH 里

plugin_manager install_bundle  target=D:\path\to\dsh-novel-plugin

安装后需要重启 DSH(替换已安装包代码必须重启)。

使用

你:帮我开一本仙侠,目标 30 万字
AI:(调用 novel_init → novel_outline)

你:开始写第 1 章
AI:(按 novel-chapter 技能写,写完调 novel_stats 核对)

你:检查一下
AI:(调 novel_audit,报告重复/短章/标题冲突)

你:准备上传
AI:(调 novel_pack,导出上架包)

目录

dsh-novel-plugin/
├── package.json
├── cordis.patch.yml
├── index.js
├── skills/
│   ├── novel-workflow/SKILL.md
│   ├── novel-chapter/SKILL.md
│   └── novel-audit/SKILL.md
├── locale/{zh,en}.json
├── icon.svg
├── README.md
└── LICENSE

兼容性

  • DSH >=0.2.2-rc.5 <0.3.0-0
  • Node >=20
  • 零第三方依赖

许可

MIT

関連プラグイン