siweina / dsh-novel-writer

Listed

DSH / DeepSeek Harness 小说写作助手插件:章节库管理、句式模式分析(九类句式/情感曲线/风格指纹)、风格自检、伏笔登记、批量导入、续写辅助。Novel writing assistant plugin for DeepSeek Harness: chapter library, sentence pattern analysis, style check, plot tracking, batch import, AI-assisted novel writing. dsh-plugin novel-writing ai-writing

mainModel View source

Installation

npm install dsh-novel-writer

This command is generated from the GitHub repository address. Inspect the upstream README and source before running it; pin a release or commit when reproducibility matters.

README

Maintainer-authored documentation snapshot.

View on GitHub ↗
Commit 227214aSynced Aug 17, 2026

📚 dsh-novel-writer — 小说写作助手

English | 中文

Awesome DSH Plugin Awesome DeepSeek Harness

npm version License: MIT GitHub stars GitHub release DSH plugin

DeepSeek Harness (DSH) 打造的小说写作助手插件:章节库管理、句式模式分析、风格自检、伏笔登记、设定管理、世界观/语用检测、批量导入与 AI 续写辅助。宿主端零第三方依赖(仅 Node 内置模块),浏览器端仅依赖 Web GUI 自带的 react。


安装

方式一:npm(推荐)

npm install dsh-novel-writer
# 或
dsh plugin --profile web add dsh-novel-writer

方式二:从 GitHub 安装

dsh plugin --profile web add github:siweina/dsh-novel-writer#main

安装后重启 web 应用生效(宿主端注册 13 个工具与 state/reveal 路由,浏览器端挂载侧边栏「写作助手功能」开关面板)。


功能

  1. 章节库管理:章节存放于 novels/<书名>/第N章.md(或 .txt/.markdown),章号支持任意位置与中文数字(第一章/第十四章),编码自动探测(UTF-8/UTF-16/GBK)。
  2. 句式模式分析novel_sentence_analysis 输出九类句式分布、排列规律、句长节奏、情感曲线(喜怒哀惧惊)、风格指纹与节奏建议,带分析缓存与报告导出。
  3. 风格自检novel_style_check 章节 vs 全书 → 余弦相似度 + 句式/句长/情绪偏差清单 + 续写建议。
  4. 伏笔登记表novel_plot 维护伏笔/剧情钩子(open/done),字段化 + 章节提及自动追踪。
  5. 设定管理novel_settings 五张表——人物/地点/道具/时间线/世界观(用语+语用规范)
  6. 世界观与语用检测(v0.9.0/v1.0.0):detect 自动判断文化基准(西/东/混合)+ 置信度;worldview 表含 speechStyle——称谓规范(title)、客套禁词(honorBad)+ 替代(honorGood)、仪式禁式通配(ritualBadPatterns,如"上X柱香")、语气指导(tone);basis 含 west 时自动注入默认欧式语用。
  7. 章节摘要novel_summary 每章摘要 + 关键事件,长书续写先读摘要。
  8. 连贯性审计novel_continuity_check 设定矛盾 + 语用冲突(客套/仪式/称谓三类)候选,带建议替换。
  9. 批量导入novel_import 原稿件自动识别书名与章节号分类导入。
  10. 续写辅助:先读后写、保持文风/伏笔/世界观一致,novel_new_chapter 创建新章节。
  11. 全工具 UI 开关:侧边栏「写作助手功能」面板统一管理。

提供的工具

工具说明
novel_books列出章节库全部作品
novel_chapters列出某作品章节清单
novel_read阅读某章正文(分段)
novel_keywords关键词:二字组/三字组/疑似人名
novel_new_chapter创建新章节文件
novel_import原稿件批量导入/分类
novel_sentence_analysis句式模式分析(九类/情感曲线/指纹)
novel_sentence_config查看/修改工具开关
novel_style_check风格自检(相似度+偏差清单)
novel_plot伏笔/剧情线登记表
novel_settings设定管理(人物/地点/道具/时间线/世界观)
novel_summary章节摘要(长书续写辅助)
novel_continuity_check连贯性审计(设定矛盾+语用冲突候选)

配置

- id: novel-writer
  config:
    root: 'D:/我的小说库'
    allowLanState: false   # true=局域网访问 GUI 时也允许保存开关

数据目录

<书库根>/.novel-writer/plots(伏笔)/ settings(设定)/ summaries(摘要)/ analysis(分析报告)/ audits(审计报告)。


许可证

MIT

Project files and signals

Shown items are public repository signals detected in the directory snapshot.

TestsDetected

Repository information

Language
JavaScript
License
MIT
Latest release
v1.0.1
Last updated
Aug 17, 2026, 6:56 AM

Install deliberately

Review source code, permissions, lifecycle hooks, dependencies and network access. Test untrusted plugins in an isolated environment.