Skills

dsh-novel-writer

akira399/dsh-novel-writer · ★ 117

akira399

大肥鱼的小说工坊 — DSH 网络小说创作插件:九阶段门禁式创作流程 + 世界书设定注入 + 本地书籍导入 + AI 一键润色 + 去AI味 + 黄金三章诊断 + 百万字一致性 + 市场调研与模板复制。

License
MIT
Added
2026-08-17
Maintenance
active
Install kind
github
Manifest details
Manifest status
Declared
Manifest path
package.json#dsh
Manifest checked
2026-08-19
Lifecycle scripts
None found

Static manifest checks report declarations only; they are not compatibility or security review.

安装

dsh plugin --profile web add github:akira399/dsh-novel-writer

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. Features
  2. Install
  3. A — Let an AI install it (recommended)
  4. B — Manual install
  5. C — Build from source (advanced)
  6. Version compatibility
  7. Quick start
  8. Feature usage guide
  9. Interaction with DSH
  10. Security
  11. Known limitations
  12. Development
  13. License

A web-novel creation plugin for DeepSeek Harness (DSH): nine-phase gated creation workflow + lorebook injection + AI-taste removal + golden-three-chapters diagnosis + million-word consistency + one-click chapter writing.

Features

Capability Description
Nine-phase workflow topic → setting → characters → outline → volumes → chapters → writing → revision → done; phase gating (no skipping), artifact versioning, audit log, revision rollback
Lorebook keyword/regex-triggered + always-active entries; groups & book binding; import from Operit / SillyTavern / character cards; injection token budget
Prompt front/back injection constant directives injected at the front/back of the context packet (unified scope model)
AI-taste detection & removal built-in 234-word, 5-category lexicon + density scoring + one-click rewrite via built-in prompts
Golden-three-chapters diagnosis offline rule layer (hook/opening/conflict/infodump/wordcount/dialogue) + optional model layer
Four-family validation structure/content/plot/consistency, run on commit (wordcount/title/forbidden words/POV/hook/brief coverage)
Million-word consistency fact ledger (auto-extracted from chapter JSONPatch) + timeline regression detection + overdue foreshadowing + sediment suggestions + consistency audit; budget-constant context packets (stress-tested: 1M words, 0 over-budget, 100% conflict coverage)
Per-chapter word stats auto stats on commit (total/CJK/dialogue ratio/sentence length) + target badge + book stats
Chapter context packet L1 book brief + L2 volume/chapter briefs & recent chapters + L3 summaries/variables/lorebook hits
Built-in prompt library 60 templates: creation/styles (8)/depolish/polish/diagnosis/guide/lorebook
Workshop assistant intent parsing (natural language → tool actions) + 5-step creation wizard
GUI sidebar "Novel Workshop" + drawer (projects/create/detail/one-click write/diagnosis/demo import) + settings card
Revision & export proofread/rhythm/style modes (diff stats, original kept); txt/markdown/platform export
Novel Creation Mode preset agent preset ("大肥鱼的小说工坊") selectable when creating a new session — anchors the creation persona and auto-installs the novel-writing-workflow skill + 41 novel_*/lorebook_* tools (three-channel model: preset anchors the mode, skill guides the method, tools enforce the gated workflow). Zero setup: pick it in the new-session preset picker and start chatting ("create a xianxia novel project", "write the next chapter").

Install

Needs DSH installed (Windows/macOS/Linux; runtime Node ≥18). This release targets DSH Desktop / CLI 0.2.0-rc.2 or newer (@deepseek-ai/cordis 4.0.4). The v0.1.x line targets 0.1.0-rc.6 and fails to load on 0.2.0 — see the version table below.

Paste this to any command-capable AI:

Install the DSH plugin "大肥鱼的小说工坊" (dsh-novel-writer), latest 0.2.x only. From https://github.com/akira399/dsh-novel-writer/releases/latest download the newest dsh-external-dsh-novel-writer-*.tgz (highest version; not v0.1.x, which targets the old DSH) → run dsh plugin --profile web add <absolute tgz path> → confirm with dsh plugin list → tell me to refresh the DSH page (Ctrl+Shift+R). Report any error first.

B — Manual install

Download the newest dsh-external-dsh-novel-writer-*.tgz from https://github.com/akira399/dsh-novel-writer/releases/latest, then:

dsh plugin --profile web add <path-to-tgz>
dsh plugin list        # dsh-novel-writer listed = success

C — Build from source (advanced)

Needs Node ≥22 and Git:

git clone https://github.com/akira399/dsh-novel-writer.git && cd dsh-novel-writer
npm install && npm run verify && npm run build && npm pack
dsh plugin --profile web add ./dsh-external-dsh-novel-writer-0.2.0.tgz

(Use Git Bash on Windows for the shell build script.)

After install: the sidebar-footer "大肥鱼的小说工坊" entry and the Settings → Plugins tab appear; if not, refresh/restart DSH and check the plugin is enabled.

Version compatibility

Plugin Target DSH Settings namespace Settings page
0.2.0 (current) 0.2.0-rc.2+ (cordis 4.0.4) dsh-novel-writer Settings → Plugins → tab
0.1.x (legacy) 0.1.0-rc.6 dsh-novel-writer settings card (settings.plugin.item, slot removed)

0.2.0 adaptation: DSH removed the @deepseek-ai/dsh-client-runtime package, the settingsNamespace() / settings.register() API, and the settings.plugin.item slot. This version uses ctx.configForms plus the settings.plugins.tab and sidebar.footer.action slots.

Quick start

  1. Open the drawer → "Import demo 《青云问道》" (or create your own project)
  2. Open project detail → "Write chapter" → the session writes from the context packet → review & save
  3. Or just chat: "create a fantasy novel project", "write the next chapter", "remove AI taste", "diagnose the opening"

Data lives in ~/.dsh/dsh-novel-writer/ by default.

Feature usage guide

Every capability is reachable two ways — the GUI drawer and plain chat. Example triggers:

  • Create a book: drawer "create" + pick a genre (27) · chat: "create a xianxia novel project"
  • Walk the 9 phases: chat "generate the worldbuilding", "design the characters", "submit the outline" → novel_phase / novel_commit
  • Write a chapter: drawer "一键写章并保存" · chat: "write the next chapter"
  • Polish + diff: drawer "一键润色" → review marked changes → 确认保存 / 放弃还原; undo with the "↶ 撤销" button
  • Worldbook (lorebook): drawer "本书世界书" → "AI 一键生成设定" or "+ 新建条目"; import Operit/SillyTavern/character-card
  • Import a local book: drawer "导入本地书籍" (txt/md) → auto-chapters & builds a book
  • Quality checks: drawer "结构诊断"; chat "把这章去 AI 味", "校验这章" → novel_validate
  • Consistency: chat "跑一遍一致性巡检" → novel_consistency_audit; "林远现在什么境界" → novel_ledger; foreshadow/timeline via chat
  • Revise & export: chat "修订第 3 章查错别字" → novel_revise; drawer "导出 txt" or chat "导出成稿"
  • Market research & clone: chat "调研下仙侠市场" → novel_market_research; "以《青云问道》做模板开新书" → novel_clone_project
  • Start a session: new session → preset picker → "大肥鱼的小说工坊" → just chat your intent

Tip: you don't need to memorize commands — the creation-mode agent picks the right novel_*/lorebook_* tool for you and asks for confirmation on writes. Ask "what can the workshop do?" anytime.

Interaction with DSH

  • 41 agent tools: novel_* + lorebook_* + novel_prompts
  • Two-phase chapter protocol: novel_write_chapter (context packet) → model writes → novel_commit_chapter (stats/ledger/audit)
  • Skill: novel-writing-workflow
  • GUI API: /api/novel-writer/* (fence-header protected)

Security

Local-only storage; audit-logged writes; LLM helper calls reuse the session's model route; GUI routes require a custom fence header; disabled plugin returns 503.

Known limitations

  • Model-layer features degrade to detection/rule layers when no model route is available
  • One-click chapter text backfill is best-effort (manual paste supported)
  • Scheduled serialization (browser cron) not yet implemented
  • Sediment suggestions require confirmation before writing to the lorebook

Development

npm run typecheck   # host + client
npm test            # vitest (331 specs)
npm run build       # tsc host + tsdown client (pure Node; no bash needed on Windows)
npm run build:host:bash   # only when a host hard-codes `bash scripts/build.sh`
node scripts/simulate-1m.mjs   # million-word consistency stress test

Target DSH version: 0.2.0-rc.2 (@deepseek-ai/cordis 4.0.4). When upgrading DSH, update peerDependencies / devDependencies and dsh.client.inject, then re-run npm run verify.

Module discipline: one module → tests → review per step (see docs/MODULE-LOG.md).

License

MIT