novelws 4.0.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/CHANGELOG.md +100 -623
  2. package/README.md +79 -594
  3. package/dist/cli.js +1 -3
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/init.d.ts.map +1 -1
  6. package/dist/commands/init.js +12 -99
  7. package/dist/commands/init.js.map +1 -1
  8. package/dist/commands/upgrade.d.ts.map +1 -1
  9. package/dist/commands/upgrade.js +17 -108
  10. package/dist/commands/upgrade.js.map +1 -1
  11. package/dist/core/config.d.ts +1 -37
  12. package/dist/core/config.d.ts.map +1 -1
  13. package/dist/core/config.js +6 -45
  14. package/dist/core/config.js.map +1 -1
  15. package/dist/core/errors.d.ts +0 -31
  16. package/dist/core/errors.d.ts.map +1 -1
  17. package/dist/core/errors.js +0 -58
  18. package/dist/core/errors.js.map +1 -1
  19. package/dist/utils/diagnostics.d.ts +2 -16
  20. package/dist/utils/diagnostics.d.ts.map +1 -1
  21. package/dist/utils/diagnostics.js +5 -72
  22. package/dist/utils/diagnostics.js.map +1 -1
  23. package/dist/utils/project.d.ts +1 -1
  24. package/dist/utils/project.d.ts.map +1 -1
  25. package/dist/utils/project.js +3 -3
  26. package/dist/utils/project.js.map +1 -1
  27. package/package.json +1 -2
  28. package/templates/commands/analyze.md +65 -265
  29. package/templates/commands/expand.md +70 -0
  30. package/templates/commands/plan.md +47 -452
  31. package/templates/commands/specify.md +43 -869
  32. package/templates/commands/write.md +49 -643
  33. package/templates/dot-claude/CLAUDE.md +38 -202
  34. package/templates/resources/anti-ai.md +16 -0
  35. package/templates/resources/style-reference.md +19 -0
  36. package/templates/tracking/character-state.json +1 -76
  37. package/templates/tracking/plot-tracker.json +3 -60
  38. package/templates/tracking/relationships.json +1 -68
  39. package/templates/tracking/timeline.json +1 -47
  40. package/dist/commands/plugin.d.ts +0 -6
  41. package/dist/commands/plugin.d.ts.map +0 -1
  42. package/dist/commands/plugin.js +0 -135
  43. package/dist/commands/plugin.js.map +0 -1
  44. package/dist/plugins/identifier.d.ts +0 -13
  45. package/dist/plugins/identifier.d.ts.map +0 -1
  46. package/dist/plugins/identifier.js +0 -72
  47. package/dist/plugins/identifier.js.map +0 -1
  48. package/dist/plugins/installers/base.d.ts +0 -27
  49. package/dist/plugins/installers/base.d.ts.map +0 -1
  50. package/dist/plugins/installers/base.js +0 -30
  51. package/dist/plugins/installers/base.js.map +0 -1
  52. package/dist/plugins/installers/github.d.ts +0 -22
  53. package/dist/plugins/installers/github.d.ts.map +0 -1
  54. package/dist/plugins/installers/github.js +0 -133
  55. package/dist/plugins/installers/github.js.map +0 -1
  56. package/dist/plugins/installers/local.d.ts +0 -16
  57. package/dist/plugins/installers/local.d.ts.map +0 -1
  58. package/dist/plugins/installers/local.js +0 -69
  59. package/dist/plugins/installers/local.js.map +0 -1
  60. package/dist/plugins/installers/npm.d.ts +0 -20
  61. package/dist/plugins/installers/npm.d.ts.map +0 -1
  62. package/dist/plugins/installers/npm.js +0 -99
  63. package/dist/plugins/installers/npm.js.map +0 -1
  64. package/dist/plugins/manager.d.ts +0 -77
  65. package/dist/plugins/manager.d.ts.map +0 -1
  66. package/dist/plugins/manager.js +0 -349
  67. package/dist/plugins/manager.js.map +0 -1
  68. package/dist/plugins/registry.d.ts +0 -48
  69. package/dist/plugins/registry.d.ts.map +0 -1
  70. package/dist/plugins/registry.js +0 -111
  71. package/dist/plugins/registry.js.map +0 -1
  72. package/dist/plugins/types.d.ts +0 -66
  73. package/dist/plugins/types.d.ts.map +0 -1
  74. package/dist/plugins/types.js +0 -2
  75. package/dist/plugins/types.js.map +0 -1
  76. package/dist/plugins/validator.d.ts +0 -19
  77. package/dist/plugins/validator.d.ts.map +0 -1
  78. package/dist/plugins/validator.js +0 -164
  79. package/dist/plugins/validator.js.map +0 -1
  80. package/dist/utils/logger.d.ts +0 -13
  81. package/dist/utils/logger.d.ts.map +0 -1
  82. package/dist/utils/logger.js +0 -48
  83. package/dist/utils/logger.js.map +0 -1
  84. package/plugins/authentic-voice/README.md +0 -31
  85. package/plugins/authentic-voice/commands/authentic-voice.md +0 -73
  86. package/plugins/authentic-voice/commands/authenticity-audit.md +0 -37
  87. package/plugins/authentic-voice/config.yaml +0 -30
  88. package/plugins/authentic-voice/experts/authentic-editor.md +0 -27
  89. package/plugins/export/README.md +0 -319
  90. package/plugins/export/commands/export.md +0 -460
  91. package/plugins/export/commands/generate-cover.md +0 -256
  92. package/plugins/export/commands/metadata.md +0 -309
  93. package/plugins/export/config.yaml +0 -47
  94. package/plugins/export/experts/publishing-expert.md +0 -171
  95. package/plugins/export/templates/epub/chapter-template.html +0 -13
  96. package/plugins/export/templates/epub/cover-template.html +0 -14
  97. package/plugins/export/templates/epub/stylesheet.css +0 -200
  98. package/plugins/export/templates/pdf/ebook-style.css +0 -137
  99. package/plugins/export/templates/pdf/print-style.css +0 -179
  100. package/plugins/export/templates/platforms/jinjiang-format.md +0 -101
  101. package/plugins/export/templates/platforms/qidian-format.md +0 -108
  102. package/plugins/export/templates/platforms/tomato-format.md +0 -95
  103. package/plugins/translate/README.md +0 -265
  104. package/plugins/translate/commands/glossary.md +0 -731
  105. package/plugins/translate/commands/translate-preview.md +0 -543
  106. package/plugins/translate/commands/translate.md +0 -649
  107. package/plugins/translate/config.yaml +0 -43
  108. package/plugins/translate/experts/literary-translator.md +0 -605
  109. package/templates/commands/character.md +0 -287
  110. package/templates/commands/checklist.md +0 -744
  111. package/templates/commands/clarify.md +0 -269
  112. package/templates/commands/constitution.md +0 -269
  113. package/templates/commands/expert.md +0 -188
  114. package/templates/commands/facts.md +0 -552
  115. package/templates/commands/guide.md +0 -900
  116. package/templates/commands/help-me.md +0 -221
  117. package/templates/commands/recap.md +0 -748
  118. package/templates/commands/relations.md +0 -385
  119. package/templates/commands/revise.md +0 -450
  120. package/templates/commands/search.md +0 -531
  121. package/templates/commands/tasks.md +0 -396
  122. package/templates/commands/timeline.md +0 -309
  123. package/templates/commands/track-init.md +0 -149
  124. package/templates/commands/track.md +0 -704
  125. package/templates/commands/volume-summary.md +0 -471
  126. package/templates/knowledge/audit-config.json +0 -26
  127. package/templates/knowledge/character-profiles.md +0 -152
  128. package/templates/knowledge/character-voices.md +0 -137
  129. package/templates/knowledge/locations.md +0 -184
  130. package/templates/knowledge/world-setting.md +0 -121
  131. package/templates/resources/character-archetypes/01-hero.md +0 -233
  132. package/templates/resources/character-archetypes/02-mentor.md +0 -177
  133. package/templates/resources/character-archetypes/03-shadow.md +0 -221
  134. package/templates/resources/character-archetypes/04-ally.md +0 -178
  135. package/templates/resources/character-archetypes/05-shapeshifter.md +0 -177
  136. package/templates/resources/character-archetypes/06-trickster.md +0 -181
  137. package/templates/resources/character-archetypes/07-threshold-guardian.md +0 -177
  138. package/templates/resources/character-archetypes/08-herald.md +0 -180
  139. package/templates/resources/character-archetypes/09-father.md +0 -249
  140. package/templates/resources/character-archetypes/10-mother.md +0 -202
  141. package/templates/resources/character-archetypes/11-child.md +0 -183
  142. package/templates/resources/character-archetypes/12-sage.md +0 -202
  143. package/templates/resources/character-archetypes/README.md +0 -60
  144. package/templates/resources/character-archetypes/application-guide.md +0 -222
  145. package/templates/resources/character-archetypes/archetype-combinations.md +0 -242
  146. package/templates/resources/character-archetypes/config.yaml +0 -28
  147. package/templates/resources/character-archetypes/examples-analysis.md +0 -223
  148. package/templates/resources/config/keyword-mappings.json +0 -226
  149. package/templates/resources/config/specification-example.md +0 -146
  150. package/templates/resources/craft/character-arc.md +0 -1153
  151. package/templates/resources/craft/dialogue.md +0 -1170
  152. package/templates/resources/craft/hook-design.md +0 -345
  153. package/templates/resources/craft/pacing.md +0 -1200
  154. package/templates/resources/craft/power-system.md +0 -254
  155. package/templates/resources/craft/scene-structure.md +0 -1136
  156. package/templates/resources/craft/show-not-tell.md +0 -1012
  157. package/templates/resources/craft/story-structures.md +0 -134
  158. package/templates/resources/craft/tension-management.md +0 -168
  159. package/templates/resources/emotional-beats/01-first-meeting.md +0 -145
  160. package/templates/resources/emotional-beats/02-bonding-moment.md +0 -226
  161. package/templates/resources/emotional-beats/03-declaration.md +0 -284
  162. package/templates/resources/emotional-beats/04-triumph.md +0 -240
  163. package/templates/resources/emotional-beats/05-reunion.md +0 -396
  164. package/templates/resources/emotional-beats/06-forgiveness.md +0 -204
  165. package/templates/resources/emotional-beats/07-betrayal.md +0 -204
  166. package/templates/resources/emotional-beats/08-loss.md +0 -214
  167. package/templates/resources/emotional-beats/09-rejection.md +0 -254
  168. package/templates/resources/emotional-beats/10-failure.md +0 -244
  169. package/templates/resources/emotional-beats/11-misunderstanding.md +0 -205
  170. package/templates/resources/emotional-beats/12-farewell.md +0 -283
  171. package/templates/resources/emotional-beats/13-revelation.md +0 -242
  172. package/templates/resources/emotional-beats/14-point-of-no-return.md +0 -215
  173. package/templates/resources/emotional-beats/15-dark-night.md +0 -244
  174. package/templates/resources/emotional-beats/16-sacrifice.md +0 -246
  175. package/templates/resources/emotional-beats/17-awakening.md +0 -246
  176. package/templates/resources/emotional-beats/18-confrontation.md +0 -217
  177. package/templates/resources/emotional-beats/19-bittersweet-goodbye.md +0 -368
  178. package/templates/resources/emotional-beats/20-moral-dilemma.md +0 -248
  179. package/templates/resources/emotional-beats/21-temptation.md +0 -240
  180. package/templates/resources/emotional-beats/22-redemption.md +0 -210
  181. package/templates/resources/emotional-beats/README.md +0 -104
  182. package/templates/resources/emotional-beats/beat-sequences.md +0 -276
  183. package/templates/resources/emotional-beats/config.yaml +0 -30
  184. package/templates/resources/emotional-beats/pacing-guide.md +0 -390
  185. package/templates/resources/genres/game-lit.md +0 -174
  186. package/templates/resources/genres/historical.md +0 -1127
  187. package/templates/resources/genres/horror.md +0 -211
  188. package/templates/resources/genres/military.md +0 -209
  189. package/templates/resources/genres/mystery.md +0 -1123
  190. package/templates/resources/genres/rebirth.md +0 -177
  191. package/templates/resources/genres/revenge.md +0 -846
  192. package/templates/resources/genres/romance.md +0 -948
  193. package/templates/resources/genres/sci-fi.md +0 -156
  194. package/templates/resources/genres/sports.md +0 -216
  195. package/templates/resources/genres/thriller.md +0 -166
  196. package/templates/resources/genres/urban.md +0 -170
  197. package/templates/resources/genres/workplace.md +0 -214
  198. package/templates/resources/genres/wuxia.md +0 -143
  199. package/templates/resources/genres/xuanhuan.md +0 -234
  200. package/templates/resources/genres/youth.md +0 -219
  201. package/templates/resources/memory/personal-voice.md +0 -113
  202. package/templates/resources/references/README.md +0 -96
  203. package/templates/resources/references/china-1920s/culture.md +0 -423
  204. package/templates/resources/references/china-1920s/daily-life.md +0 -616
  205. package/templates/resources/references/china-1920s/overview.md +0 -298
  206. package/templates/resources/references/china-1920s/society.md +0 -703
  207. package/templates/resources/references/china-1920s/warlords.md +0 -427
  208. package/templates/resources/references/cultivation-world/daily-life.md +0 -108
  209. package/templates/resources/references/cultivation-world/overview.md +0 -64
  210. package/templates/resources/references/cultivation-world/power-system.md +0 -108
  211. package/templates/resources/references/cultivation-world/sects.md +0 -104
  212. package/templates/resources/references/cultivation-world/world-setting.md +0 -108
  213. package/templates/resources/references/modern-workplace/corporate.md +0 -115
  214. package/templates/resources/references/modern-workplace/daily-life.md +0 -129
  215. package/templates/resources/references/modern-workplace/overview.md +0 -73
  216. package/templates/resources/references/modern-workplace/relationships.md +0 -107
  217. package/templates/resources/references/modern-workplace/tech-industry.md +0 -131
  218. package/templates/resources/references/tang-dynasty/culture.md +0 -135
  219. package/templates/resources/references/tang-dynasty/daily-life.md +0 -139
  220. package/templates/resources/references/tang-dynasty/overview.md +0 -76
  221. package/templates/resources/references/tang-dynasty/politics.md +0 -121
  222. package/templates/resources/references/tang-dynasty/society.md +0 -126
  223. package/templates/resources/requirements/README.md +0 -240
  224. package/templates/resources/requirements/anti-ai-v3.md +0 -46
  225. package/templates/resources/requirements/anti-ai-v4-deprecated.md +0 -442
  226. package/templates/resources/requirements/anti-ai-v5-balanced.md +0 -203
  227. package/templates/resources/requirements/concretization.md +0 -90
  228. package/templates/resources/requirements/fast-paced.md +0 -552
  229. package/templates/resources/requirements/no-poison.md +0 -60
  230. package/templates/resources/requirements/romance-angst.md +0 -102
  231. package/templates/resources/requirements/romance-sweet.md +0 -63
  232. package/templates/resources/requirements/serious-literature.md +0 -45
  233. package/templates/resources/requirements/strong-emotion.md +0 -60
  234. package/templates/resources/scripts/README.md +0 -187
  235. package/templates/resources/scripts/bash/analyze-story.sh +0 -170
  236. package/templates/resources/scripts/bash/check-analyze-stage.sh +0 -108
  237. package/templates/resources/scripts/bash/check-consistency.sh +0 -463
  238. package/templates/resources/scripts/bash/check-facts.sh +0 -214
  239. package/templates/resources/scripts/bash/check-plot.sh +0 -374
  240. package/templates/resources/scripts/bash/check-timeline.sh +0 -346
  241. package/templates/resources/scripts/bash/check-world.sh +0 -395
  242. package/templates/resources/scripts/bash/check-writing-state.sh +0 -854
  243. package/templates/resources/scripts/bash/clarify-story.sh +0 -117
  244. package/templates/resources/scripts/bash/common.sh +0 -151
  245. package/templates/resources/scripts/bash/constitution.sh +0 -114
  246. package/templates/resources/scripts/bash/generate-tasks.sh +0 -65
  247. package/templates/resources/scripts/bash/init-tracking.sh +0 -183
  248. package/templates/resources/scripts/bash/manage-relations.sh +0 -174
  249. package/templates/resources/scripts/bash/migrate-tracking.sh +0 -183
  250. package/templates/resources/scripts/bash/plan-story.sh +0 -100
  251. package/templates/resources/scripts/bash/specify-story.sh +0 -93
  252. package/templates/resources/scripts/bash/tasks-story.sh +0 -96
  253. package/templates/resources/scripts/bash/test-word-count.sh +0 -182
  254. package/templates/resources/scripts/bash/tests/bench-preload-cache.sh +0 -100
  255. package/templates/resources/scripts/bash/tests/run-all-benchmarks.sh +0 -16
  256. package/templates/resources/scripts/bash/tests/test-cache-semantics.sh +0 -199
  257. package/templates/resources/scripts/bash/tests/test-cross-platform.sh +0 -35
  258. package/templates/resources/scripts/bash/tests/test-edge-cases-bash.sh +0 -60
  259. package/templates/resources/scripts/bash/tests/test-phase1-bash.sh +0 -28
  260. package/templates/resources/scripts/bash/tests/test-preload-cache.sh +0 -123
  261. package/templates/resources/scripts/bash/tests/test-regex-precompile.sh +0 -89
  262. package/templates/resources/scripts/bash/tests/test-regression-bash.sh +0 -42
  263. package/templates/resources/scripts/bash/tests/test-task6-verification.sh +0 -200
  264. package/templates/resources/scripts/bash/text-audit.sh +0 -144
  265. package/templates/resources/scripts/bash/track-progress.sh +0 -194
  266. package/templates/resources/scripts/powershell/analyze-story.ps1 +0 -174
  267. package/templates/resources/scripts/powershell/check-analyze-stage.ps1 +0 -110
  268. package/templates/resources/scripts/powershell/check-consistency.ps1 +0 -138
  269. package/templates/resources/scripts/powershell/check-facts.ps1 +0 -195
  270. package/templates/resources/scripts/powershell/check-plot.ps1 +0 -139
  271. package/templates/resources/scripts/powershell/check-timeline.ps1 +0 -112
  272. package/templates/resources/scripts/powershell/check-writing-state.ps1 +0 -486
  273. package/templates/resources/scripts/powershell/clarify-story.ps1 +0 -107
  274. package/templates/resources/scripts/powershell/common.ps1 +0 -36
  275. package/templates/resources/scripts/powershell/constitution.ps1 +0 -145
  276. package/templates/resources/scripts/powershell/generate-tasks.ps1 +0 -70
  277. package/templates/resources/scripts/powershell/init-tracking.ps1 +0 -98
  278. package/templates/resources/scripts/powershell/manage-relations.ps1 +0 -134
  279. package/templates/resources/scripts/powershell/migrate-tracking.ps1 +0 -145
  280. package/templates/resources/scripts/powershell/plan-story.ps1 +0 -99
  281. package/templates/resources/scripts/powershell/specify-story.ps1 +0 -85
  282. package/templates/resources/scripts/powershell/tests/bench-ps-cache.ps1 +0 -80
  283. package/templates/resources/scripts/powershell/tests/test-cross-platform.ps1 +0 -27
  284. package/templates/resources/scripts/powershell/tests/test-edge-cases-ps.ps1 +0 -29
  285. package/templates/resources/scripts/powershell/tests/test-phase1-ps.ps1 +0 -28
  286. package/templates/resources/scripts/powershell/tests/test-ps-cache.ps1 +0 -73
  287. package/templates/resources/scripts/powershell/tests/test-regression-ps.ps1 +0 -40
  288. package/templates/resources/scripts/powershell/text-audit.ps1 +0 -102
  289. package/templates/resources/scripts/powershell/track-progress.ps1 +0 -105
  290. package/templates/resources/styles/README.md +0 -302
  291. package/templates/resources/styles/ancient-style.md +0 -579
  292. package/templates/resources/styles/literary.md +0 -439
  293. package/templates/resources/styles/minimal.md +0 -472
  294. package/templates/resources/styles/natural-voice.md +0 -930
  295. package/templates/resources/styles/web-novel.md +0 -525
  296. package/templates/skills/analysis/character-analysis/SKILL.md +0 -71
  297. package/templates/skills/analysis/foreshadow-analysis/SKILL.md +0 -45
  298. package/templates/skills/analysis/hook-analysis/SKILL.md +0 -111
  299. package/templates/skills/analysis/logic-analysis/SKILL.md +0 -58
  300. package/templates/skills/analysis/opening-analysis/SKILL.md +0 -59
  301. package/templates/skills/analysis/pacing-analysis/SKILL.md +0 -55
  302. package/templates/skills/analysis/power-analysis/SKILL.md +0 -148
  303. package/templates/skills/analysis/reader-analysis/SKILL.md +0 -117
  304. package/templates/skills/analysis/style-analysis/SKILL.md +0 -60
  305. package/templates/skills/analysis/voice-analysis/SKILL.md +0 -42
  306. package/templates/skills/auto-tracking/SKILL.md +0 -280
  307. package/templates/skills/genre-knowledge/fantasy/SKILL.md +0 -355
  308. package/templates/skills/genre-knowledge/mystery/SKILL.md +0 -337
  309. package/templates/skills/genre-knowledge/romance/SKILL.md +0 -228
  310. package/templates/skills/genre-knowledge/sci-fi/SKILL.md +0 -65
  311. package/templates/skills/genre-knowledge/thriller/SKILL.md +0 -95
  312. package/templates/skills/planning/volume-detail/SKILL.md +0 -219
  313. package/templates/skills/quality-assurance/consistency-checker/SKILL.md +0 -412
  314. package/templates/skills/quality-assurance/continuity-tracker/SKILL.md +0 -157
  315. package/templates/skills/quality-assurance/facts-checker/SKILL.md +0 -405
  316. package/templates/skills/quality-assurance/forgotten-elements/SKILL.md +0 -147
  317. package/templates/skills/quality-assurance/getting-started/SKILL.md +0 -224
  318. package/templates/skills/quality-assurance/hook-checker/SKILL.md +0 -164
  319. package/templates/skills/quality-assurance/hook-checker/experts/hook-analyst.md +0 -33
  320. package/templates/skills/quality-assurance/long-series-continuity/SKILL.md +0 -570
  321. package/templates/skills/quality-assurance/pacing-monitor/SKILL.md +0 -143
  322. package/templates/skills/quality-assurance/pov-validator/SKILL.md +0 -135
  323. package/templates/skills/quality-assurance/pre-write-checklist/SKILL.md +0 -583
  324. package/templates/skills/quality-assurance/requirement-detector/CONFLICT_RESOLUTION.md +0 -119
  325. package/templates/skills/quality-assurance/requirement-detector/EXAMPLES.md +0 -146
  326. package/templates/skills/quality-assurance/requirement-detector/KEYWORDS.md +0 -160
  327. package/templates/skills/quality-assurance/requirement-detector/SKILL.md +0 -149
  328. package/templates/skills/quality-assurance/setting-detector/SKILL.md +0 -611
  329. package/templates/skills/quality-assurance/style-detector/CONFLICT_RESOLUTION.md +0 -126
  330. package/templates/skills/quality-assurance/style-detector/EXAMPLES.md +0 -206
  331. package/templates/skills/quality-assurance/style-detector/KEYWORDS.md +0 -207
  332. package/templates/skills/quality-assurance/style-detector/SKILL.md +0 -264
  333. package/templates/skills/quality-assurance/voice-consistency-checker/SKILL.md +0 -103
  334. package/templates/skills/quality-assurance/voice-consistency-checker/experts/voice-analyst.md +0 -21
  335. package/templates/skills/quality-assurance/workflow-guide/SKILL.md +0 -381
  336. package/templates/skills/writing-techniques/character-arc/SKILL.md +0 -267
  337. package/templates/skills/writing-techniques/dialogue-techniques/SKILL.md +0 -366
  338. package/templates/skills/writing-techniques/multi-thread-narrative/SKILL.md +0 -708
  339. package/templates/skills/writing-techniques/multi-thread-narrative/experts/thread-analyst.md +0 -226
  340. package/templates/skills/writing-techniques/pacing-control/SKILL.md +0 -480
  341. package/templates/skills/writing-techniques/reader-expectation/SKILL.md +0 -1026
  342. package/templates/skills/writing-techniques/reader-expectation/experts/expectation-analyst.md +0 -209
  343. package/templates/skills/writing-techniques/revision-polish/SKILL.md +0 -496
  344. package/templates/skills/writing-techniques/revision-polish/experts/revision-editor.md +0 -221
  345. package/templates/skills/writing-techniques/scene-structure/SKILL.md +0 -361
  346. package/templates/skills/writing-techniques/style-learning/SKILL.md +0 -436
  347. package/templates/skills/writing-techniques/writing-balance/.gitkeep +0 -0
  348. package/templates/skills/writing-techniques/writing-balance/SKILL.md +0 -460
  349. package/templates/skills/writing-techniques/writing-techniques/SKILL.md +0 -727
  350. package/templates/tracking/story-facts.json +0 -5
  351. package/templates/tracking/summary/characters-summary.json +0 -7
  352. package/templates/tracking/summary/plot-summary.json +0 -13
  353. package/templates/tracking/summary/timeline-summary.json +0 -8
  354. package/templates/tracking/summary/volume-summaries.json +0 -5
  355. package/templates/tracking/tracking-log.md +0 -110
  356. package/templates/tracking/validation-rules.json +0 -128
  357. /package/templates/resources/{memory/constitution.md → constitution.md} +0 -0
package/README.md CHANGED
@@ -6,42 +6,15 @@
6
6
 
7
7
  > 专为 Claude Code 设计的 AI 智能小说创作助手
8
8
  >
9
- > 深度集成 Slash Commands 和 Agent Skills,提供网文和文学创作的最佳体验
9
+ > 五命令流水线,从构思到成稿的极简创作体验
10
10
 
11
11
  ## 核心特性
12
12
 
13
- - **18 Slash Commands** - 七步方法论 + 角色管理 + 智能引导 + 命令发现 + 追踪验证
14
- - **39 Agent Skills** - AI 自动激活的知识库、写作技巧、质量检查和专项分析
15
- - **目录结构重组(NEW v4.0)** - 6+ 层嵌套扁平化为 3 目录布局,资源加载速度大幅提升
16
- - **增量缓存加载(NEW v4.0)** - L0/L1/L2 三层资源分层,`/write` 命令 token 消耗再降 50%+
17
- - **MCP 配置修复(NEW v4.0)** - `--with-mcp` 正确生成配置,MCP 模式开箱即用
18
- - **AI 去味智能化(v3.1)** - 从"禁止列表"转向"智能平衡"
19
- - **writing-balance Skill**:6 维度评分系统(句长分布、词汇丰富度、描写层次、成语使用、句式变化、自然度)
20
- - **writing-techniques Skill**:8 模块写作技巧教学
21
- - **anti-ai-v5-balanced**:平衡版去 AI 规则,替代旧版禁止列表
22
- - **用户体验提升(NEW v3.1)**
23
- - **`/help-me` 命令**:自然语言命令发现(50+ 场景映射)
24
- - **`/guide` 增强**:上下文感知推荐引擎
25
- - **统一错误框架**:4 种错误类型 + 修复建议
26
- - **诊断系统**:5 项自动检查 + 修复命令生成
27
- - **AI 模型智能选择(NEW v3.1)** - 每个命令标注推荐模型(opus/sonnet/haiku)
28
- - **超长篇小说支持(v3.0)** - 支持 300+ 章节超长篇创作
29
- - **三层数据架构**:MCP 服务器 + 分片 JSON + 单文件模式
30
- - **性能提升 100x-600x**:查询速度从秒级降至毫秒级
31
- - **智能分层**:根据项目规模自动选择最佳模式
32
- - **全文搜索**:FTS5 索引,500x 搜索加速
33
- - **卷级操作**:`/volume-summary`、`--volume vol-XX` 参数
34
- - **连贯性守护**:long-series-continuity Skill 自动监控
35
- - **16 大类型知识库** - 言情、悬疑、玄幻、都市、游戏文、重生、武侠、历史、科幻、惊悚、恐怖、青春、军事、竞技、职场等
36
- - **网文深度优化** - 爽点管理、钩子设计、节奏控制、智能 AI 去味
37
- - **Token 优化** - 三大核心命令精简 77%,track 命令精简 35%,典型会话 token 消耗降低 76%
38
- - **智能资源加载** - 三层架构(推断 + 配置 + 关键词触发),按需加载
39
- - **批量操作** - 多章节分析、多卷规划、批量同步追踪数据
40
- - **命令链式提示** - 每个命令执行后自动推荐下一步操作
41
- - **高级创作引擎** - 多线叙事管理、声纹指纹、伏笔健康度、风格一致性、智能推荐、反馈循环
42
- - **创作数据统计** - 字数详情、角色出场频率、内容构成、伏笔状态、情节线进度
43
- - **灵感管理** - 灵感扫描、灵感分配、灵感快速捕捉
44
- - **插件系统** - 可扩展功能,如真实人声、翻译等
13
+ - **五命令流水线** specify plan write expand analyze,覆盖从构思到质检的完整创作流程
14
+ - **概要先行架构** 先生成 200-500 字剧情概要,再扩写为 3000-5000 字正文,确保情节连贯
15
+ - **自动 Tracking** 4 JSON 文件自动追踪角色状态、关系、情节线、时间线
16
+ - **精准上下文加载** 每个命令只加载最小必要上下文,控制 token 消耗
17
+ - **质量检查** 概要符合度、角色一致性、伏笔完整性、连贯性、AI味检测
45
18
 
46
19
  ## 快速开始
47
20
 
@@ -60,17 +33,8 @@ novelws init my-novel
60
33
  # 在当前目录初始化
61
34
  novelws init --here
62
35
 
63
- # 超长篇项目(100-300 章)- 启用分片模式
64
- novelws init my-novel --scale large
65
-
66
- # 超长篇项目(300+ 章)- 启用 MCP 服务器(最佳性能)
67
- novelws init my-novel --with-mcp
68
-
69
36
  # 指定命令使用的 AI 模型
70
37
  novelws init my-novel --model claude-sonnet-4-5-20250929
71
-
72
- # 预装插件
73
- novelws init my-novel --plugins authentic-voice
74
38
  ```
75
39
 
76
40
  ### 3. 在 Claude Code 中开始创作
@@ -78,600 +42,129 @@ novelws init my-novel --plugins authentic-voice
78
42
  在 Claude Code 中打开项目,使用斜杠命令:
79
43
 
80
44
  ```text
81
- /constitution # 1. 创建创作宪法
82
- /specify # 2. 定义故事规格
83
- /clarify # 3. 澄清关键决策
84
- /plan # 4. 制定创作计划
85
- /tasks # 5. 分解任务清单
86
- /write # 6. AI 辅助写作
87
- /analyze # 7. 质量验证分析
45
+ /specify # 1. 定义故事设定、角色、世界观
46
+ /plan # 2. 生成卷级大纲
47
+ /write # 3. 逐章生成剧情概要
48
+ /expand # 4. 将概要扩写为正文
49
+ /analyze # 5. 质量检查
88
50
  ```
89
51
 
90
- ## Slash Commands 完整列表
91
-
92
- ### 七步方法论(核心流程)
93
-
94
- | 命令 | 功能 | 说明 |
95
- |------|------|------|
96
- | `/constitution` | 创建创作宪法 | 定义最高创作原则 |
97
- | `/specify` | 定义故事规格 | 支持 `--world` 世界观构建、`--feedback` 反馈接收 |
98
- | `/clarify` | 澄清关键决策 | 5 个核心问题 |
99
- | `/plan` | 制定创作计划 | 支持 `--detail vol-XX`、`--detail vol-XX-YY` 多卷规划、`--feedback` 反馈接收、网文结构模板 |
100
- | `/tasks` | 分解任务清单 | 生成可执行的写作任务 |
101
- | `/write` | 执行章节写作 | 支持 `--fast` 快写模式、断点续写、灵感扫描、智能推荐、自动 Tracking 更新 |
102
- | `/analyze` | 质量验证分析 | 10 种专项分析、`--range` 批量分析、反馈建议 |
103
-
104
- ### 角色与引导
105
-
106
- | 命令 | 功能 | 说明 |
107
- |------|------|------|
108
- | `/character` | 统一角色管理 | create / list / show / update / relate / voice / timeline |
109
- | `/guide` | 智能引导 | 三层优先级推荐引擎(P0/P1/P2),上下文感知推荐,自动推荐唯一最佳下一步 + 备选操作 |
110
- | `/help-me` | 命令发现(NEW v3.1)| 自然语言描述需求,智能匹配最佳命令(50+ 场景映射) |
111
-
112
- ### 追踪与验证
113
-
114
- | 命令 | 功能 | 说明 |
115
- |------|------|------|
116
- | `/track-init` | 初始化追踪系统 | 创建 4 个 tracking JSON 文件 |
117
- | `/track` | 综合追踪更新 | 支持 `--check` 节奏健康检测、`--sync` 批量同步、`--stats` 创作数据统计、`--migrate` 迁移到分片/MCP 模式 |
118
- | `/recap` | 上下文重建 | 支持 `--brief` 快速模式、预测性提示 |
119
- | `/timeline` | 时间线管理 | 时间线可视化、多线程时间对齐、时间冲突检测 |
120
- | `/relations` | 角色关系追踪 | 关系图谱可视化、关系变化追踪、关系冲突检测 |
121
- | `/volume-summary` | 卷级摘要(NEW v3.0)| 生成指定卷的摘要统计(角色出场、情节进度、伏笔状态) |
122
- | `/search` | 全文搜索(NEW v3.0)| FTS5 全文搜索(需 MCP),500x 速度提升 |
52
+ ## 五命令流水线
123
53
 
124
- ### 修改与辅助
125
-
126
- | 命令 | 功能 | 说明 |
54
+ | 命令 | 职责 | 输出 |
127
55
  |------|------|------|
128
- | `/revise` | 系统性修改 | 四层修改(结构/节奏/一致性/润色) |
129
- | `/checklist` | 质量检查清单 | 阶段性检查模板(写前/写后/卷末)、自动修复建议 |
130
- | `/expert` | 专家咨询 | 五大领域专家(角色/情节/世界观/文笔/类型)+ 咨询流程 |
131
-
132
- ### `/analyze` 专项分析模式
133
-
134
- | 模式 | 说明 |
135
- |------|------|
136
- | `--focus=opening` | 开篇专项(前 3 章) |
137
- | `--focus=pacing` | 节奏专项(爽点/冲突分布) |
138
- | `--focus=character` | 人物专项(人物弧光) |
139
- | `--focus=foreshadow` | 伏笔专项(埋设与回收) |
140
- | `--focus=logic` | 逻辑专项(逻辑漏洞) |
141
- | `--focus=style` | 风格专项(文笔一致性) |
142
- | `--focus=reader` | 读者体验(爽点密度、钩子强度、信息投喂) |
143
- | `--focus=hook` | 钩子专项(章末钩子评分) |
144
- | `--focus=power` | 力量体系(等级一致性、战力平衡) |
145
- | `--focus=voice` | 对话一致性(角色声纹指纹分析) |
146
- | `--range ch-XX-YY` | 批量章节范围分析 |
147
- | `--range vol-XX` | 单卷分析 |
148
- | `--range vol-XX-YY` | 多卷对比分析 |
149
-
150
- ## Agent Skills
151
-
152
- ### 类型知识库(Genre Knowledge)
153
-
154
- 当你提到特定类型时,相应的知识库会自动激活:
155
-
156
- | 知识库 | 覆盖内容 |
157
- |--------|---------|
158
- | **Romance** | 言情小说惯例和情感节奏 |
159
- | **Mystery** | 推理悬疑技巧和线索管理 |
160
- | **Xuanhuan** | 玄幻修仙(力量体系、宗门、境界) |
161
- | **Urban** | 都市现代(职场、城市、现实题材) |
162
- | **Game-lit** | 游戏/系统文(面板、副本、系统设定) |
163
- | **Rebirth** | 重生/穿越(前世记忆、蝴蝶效应、时间线) |
164
- | **Wuxia** | 武侠(江湖、武功、侠义) |
165
- | **Historical** | 历史(朝代、宫廷、考据) |
166
- | **Sci-fi** | 科幻(太空、未来、星际) |
167
- | **Thriller** | 惊悚(悬念、紧张、心理博弈) |
168
- | **Horror** | 恐怖(氛围营造、恐惧递进、心理恐怖)(NEW v3.1) |
169
- | **Youth** | 青春(校园、成长、青涩情感)(NEW v3.1) |
170
- | **Military** | 军事(战争、军旅、战术谋略)(NEW v3.1) |
171
- | **Sports** | 竞技(体育、比赛、热血成长)(NEW v3.1) |
172
- | **Workplace** | 职场(商战、职场博弈、行业深耕)(NEW v3.1) |
173
-
174
- ### 写作技巧(Writing Techniques)
175
-
176
- | Skill | 功能 |
177
- |-------|------|
178
- | **Dialogue Techniques** | 对话自然度和角色声音 |
179
- | **Scene Structure** | 场景构建和节奏控制 |
180
- | **Character Arc** | 角色弧线和成长逻辑 |
181
- | **Pacing Control** | 章内节奏检测、多章单调预警、满足间隔追踪 |
182
- | **Reader Expectation** | 期待自动识别、满足/颠覆节奏规划、情绪预测曲线 |
183
- | **Multi-Thread Narrative** | 多线叙事管理(视角切换、信息差追踪、叙事线交汇设计) |
184
- | **Writing Balance(NEW v3.1)** | 6 维度写作平衡评分(句长分布、词汇丰富度、描写层次、成语使用、句式变化、自然度) |
185
- | **Writing Techniques(NEW v3.1)** | 8 模块写作技巧教学(标点艺术、句式变化、描写手法、对话真实化、节奏控制、留白艺术、词汇丰富化、AI模式规避) |
186
-
187
- ### 写作工艺知识库(Craft Knowledge)
188
-
189
- | 知识库 | 覆盖内容 |
190
- |--------|---------|
191
- | **Hook Design** | 6 种钩子类型、钩子链设计、章末钩子模板 |
192
- | **Power System** | 力量体系设计框架、战斗标准化、升级节奏 |
193
- | **Tension Management** | 紧张感管理(信息差、时间压力、两难抉择) |
194
- | **Story Structures** | 4 种网文结构模板(升级流/副本流/任务流/日常流) |
195
- | **Anti-AI v5 Balanced(v3.1)** | 智能平衡版去 AI 规则,6 维度评分替代简单禁止列表 |
196
- | **Concretization** | 具象化写作检查清单、四维对照表、示例对比 |
197
-
198
- ### 智能检查(Quality Assurance)
199
-
200
- | Skill | 功能 |
201
- |-------|------|
202
- | **Consistency Checker** | 一致性自动监控(角色、世界观、时间线) |
203
- | **Hook Checker** | 5 维钩子评分(悬念强度、情感牵引、信息差、行动暗示、节奏适配) |
204
- | **Voice Consistency Checker** | 对话一致性检查(语言指纹六维分析) |
205
- | **Style Detector** | 风格基线建立、风格偏移检测、跨章节一致性评分 |
206
- | **Workflow Guide** | 七步方法论引导 |
207
- | **Long-Series Continuity(NEW v3.0)** | 超长篇连贯性守护(自动激活于 100+ 章项目)<br>四大监控:角色出场间隔、伏笔到期、设定一致性、称呼变化 |
208
-
209
- ### 专项分析(Analysis Skills)
210
-
211
- 按 `--focus` 参数按需加载,不占用基础 token:
212
-
213
- | Skill | 触发参数 | 功能 |
214
- |-------|---------|------|
215
- | **Opening Analysis** | `--focus=opening` | 黄金开篇法则、钩子评估、前三章节奏 |
216
- | **Pacing Analysis** | `--focus=pacing` | 冲突分布、爽点间隔、高潮放置 |
217
- | **Character Analysis** | `--focus=character` | 角色弧追踪、一致性检查、关系网络 |
218
- | **Foreshadow Analysis** | `--focus=foreshadow` | 伏笔埋设/回收追踪、密度评估 |
219
- | **Logic Analysis** | `--focus=logic` | 时间线、因果、能力一致性、世界观 |
220
- | **Style Analysis** | `--focus=style` | 词汇、句式、叙事风格 |
221
- | **Reader Analysis** | `--focus=reader` | 爽点密度、钩子强度、信息投喂 |
222
- | **Hook Analysis** | `--focus=hook` | 逐章钩子扫描、类型分布、回收率 |
223
- | **Power Analysis** | `--focus=power` | 等级一致性、战力平衡、升级节奏 |
224
- | **Voice Analysis** | `--focus=voice` | 对话一致性(语言指纹分析) |
225
-
226
- ### 自动化 Skills
227
-
228
- | Skill | 功能 |
229
- |-------|------|
230
- | **Auto-Tracking** | 写作完成后自动更新 4 个 tracking 文件,记录日志 |
231
- | **Volume Detail Planning** | 卷级详细规划流程(6 步)、多卷批量规划 |
232
-
233
- ## 智能资源加载
234
-
235
- ### 三层加载架构
236
-
237
- 系统采用三层智能资源加载机制,自动为你的创作提供所需知识:
238
-
239
- **Layer 1: 智能推断**(自动加载)
240
- - 根据 `specification.md` 中的 `genre`、`tone`、`target-audience` 等字段
241
- - 自动加载对应的类型知识库和写作技巧
242
- - 无需配置,开箱即用
243
-
244
- **Layer 2: 配置覆盖**(可选)
245
- - 在 `specification.md` 中添加 `resource-loading` 配置
246
- - 精确控制每个命令加载哪些资源
247
- - 适合有明确需求的场景
248
-
249
- **Layer 3: 关键词触发**(运行时)
250
- - AI 扫描你的输入、任务描述,识别关键词
251
- - 实时提示:"检测到'对话'关键词,是否加载对话技巧?[Y/N/S]"
252
- - 你决定是否加载,灵活可控
253
- - 关键词映射表支持自定义扩展(`keyword-mappings.json`)
254
-
255
- ### 配置示例
256
-
257
- 在 `stories/your-story/specification.md` 中添加:
258
-
259
- ```yaml
260
- resource-loading:
261
- # 全局配置(所有命令)
262
- auto-load:
263
- knowledge-base:
264
- craft: [dialogue, scene-structure, show-not-tell, hook-design]
265
- genres: [xuanhuan]
266
- skills:
267
- writing-techniques: [dialogue-techniques, pacing-control]
268
-
269
- # 命令级配置(覆盖全局)
270
- write:
271
- knowledge-base:
272
- craft: [pacing, character-arc, tension-management]
273
-
274
- # 关键词触发配置
275
- keyword-triggers:
276
- enabled: true
277
- custom-mappings:
278
- "情感节奏": "resources/craft/pacing.md"
279
- ```
280
-
281
- ### 关键词触发示例
282
-
283
- 当你在 `/write` 或 `/plan` 时提到关键词,系统会提示:
284
-
285
- ```text
286
- 你: /write chapter-3 --focus 对话和情感节奏
287
-
288
- AI: 🔍 检测到关键词触发:
289
- - "对话" → resources/craft/dialogue.md
290
- - "节奏" → resources/craft/pacing.md
291
-
292
- 是否加载这些资源?
293
- [Y] 全部加载 [N] 跳过 [S] 选择性加载
294
- ```
56
+ | `/specify` | 交互式定义故事核心要素 | `stories/<story>/specification.md` |
57
+ | `/plan` | 基于规格生成卷级大纲 | `stories/<story>/creative-plan.md` |
58
+ | `/write` | 逐章生成 200-500 字剧情概要 + tracking | `content/chapter-XXX-synopsis.md` |
59
+ | `/expand` | 将概要扩写为 3000-5000 字正文 | `content/chapter-XXX.md` |
60
+ | `/analyze` | 5 项质量检查,输出分析报告 | 终端输出 |
295
61
 
296
- ### 完整文档
62
+ ### /specify — 定义故事
297
63
 
298
- 详细配置指南、四种场景示例(言情/悬疑/网文/严肃文学)、性能优化等:
64
+ 交互式引导定义故事类型、一句话概要、核心设定、主角、配角、核心冲突、目标规模、写作风格。输出结构化的 `specification.md`。
299
65
 
300
- [资源加载完整指南](docs/guides/resource-loading-guide.md)
66
+ ### /plan — 生成大纲
301
67
 
302
- ## 网文创作特色功能
68
+ specification.md 转化为卷级大纲,为每卷规划核心冲突、转折点、高潮事件、结尾钩子、角色变动、伏笔规划。
303
69
 
304
- ### 爽点与钩子管理
70
+ ### /write — 生成概要
305
71
 
306
- - **爽点密度统计** - 自动识别打脸、升级、逆袭等爽点类型,计算密度和间隔
307
- - **钩子评分系统** - 5 维评分(悬念强度、情感牵引、信息差、行动暗示、节奏适配)
308
- - **满足间隔追踪** - 监控读者期待的满足频率,防止拖沓
72
+ 为每章生成 200-500 字纯剧情概要,包含核心事件、出场角色、情感走向、章末钩子。同步更新 4 个 tracking 文件。
309
73
 
310
- ### 节奏控制
74
+ 支持批量模式:`/write 1 --batch 20` 一次生成 20 章概要。
311
75
 
312
- - **章内节奏检测** - 分析单章内的节奏变化(开场/发展/高潮/收尾)
313
- - **多章单调预警** - 检测连续章节的节奏模式是否重复
314
- - **节奏健康报告** - `/track --check` 生成节奏多样性、情绪曲线等指标
76
+ ### /expand 扩写正文
315
77
 
316
- ### 智能 AI 去味(v3.1 升级)
78
+ 将概要扩写为 3000-5000 字完整正文。精准加载当前章概要、前章末尾、出场角色状态、活跃伏笔、风格参考、反AI规范。总上下文控制在 2000-3000 字。
317
79
 
318
- - **6 维度写作平衡评分** - 句长分布、词汇丰富度、描写层次、成语使用、句式变化、自然度
319
- - **智能平衡替代禁止列表** - 从"一刀切禁用"转向"评分引导",保留创作自由度
320
- - **8 模块写作技巧教学** - 标点艺术、句式变化、描写手法、对话真实化等
321
- - **自然化写作原则** - 历史白描法、口语化处理、短句节奏、克制描写
80
+ 支持批量模式:`/expand 1 --batch 10`。
322
81
 
323
- ### 网文结构模板
82
+ ### /analyze — 质量检查
324
83
 
325
- `/plan` 内置 4 种网文结构模板:
84
+ 5 项检查:
326
85
 
327
- | 模板 | 适用类型 |
328
- |------|---------|
329
- | 升级流 | 修仙、玄幻、都市异能 |
330
- | 副本流 | 游戏文、无限流 |
331
- | 任务流 | 冒险、佣兵、赏金猎人 |
332
- | 日常流 | 经营、种田、慢节奏 |
86
+ | 检查项 | 说明 |
87
+ |--------|------|
88
+ | 概要符合度 | 正文是否忠实于概要 |
89
+ | 角色一致性 | 角色行为是否符合 tracking 记录 |
90
+ | 伏笔完整性 | 伏笔是否按计划埋设/回收 |
91
+ | 连贯性 | 与前后章的衔接是否自然 |
92
+ | AI味检测 | 高频词、句式重复、空洞描写 |
333
93
 
334
- ## Token 优化
94
+ 支持范围分析:`/analyze --range 1-20`。
335
95
 
336
- v2.1.0 对三大核心命令进行了深度 token 优化,v3.1.0 进一步优化 track 命令:
96
+ ## 资源文件
337
97
 
338
- | 命令 | 精简前 | 精简后 | 精简率 |
339
- |------|--------|--------|--------|
340
- | `/write` | 1,617 行 | 438 行 | 72.8% |
341
- | `/analyze` | 2,071 行 | 329 行 | 84.1% |
342
- | `/plan` | 1,286 行 | 380 行 | 70.5% |
343
- | `/track`(v3.1) | 1,080 行 | 704 行 | 35% |
344
-
345
- **典型会话**(`/write` ×5 + `/plan` ×1 + `/analyze` ×1):~110,000 tokens → ~26,000 tokens(**节省 76%**)
346
-
347
- ### 优化策略
348
-
349
- - **分层缓存**:共享规范放入 `CLAUDE.md`(system prompt 自动缓存,90% 折扣)
350
- - **按需加载**:10 种专项分析、网文结构模板等提取为独立文件,仅在使用时读取
351
- - **会话级复用**:已加载的资源在同一对话中复用,不重复读取
352
- - **前文智能裁剪**:上一章 >1500 字时只保留最后 1000 字,配合 tracking 数据补充上下文
353
-
354
- ## AI 模型智能选择(NEW in v3.1)
355
-
356
- v3.1.0 为每个命令标注了推荐模型,根据任务复杂度自动匹配最佳性价比:
357
-
358
- | 级别 | 模型 | 适用命令 |
98
+ | 文件 | 用途 | 加载阶段 |
359
99
  |------|------|---------|
360
- | **深度分析** | opus | `/analyze --type=framework`、`/plan`、`/revise` |
361
- | **平衡任务** | sonnet | `/write`、`/track --check`、`/character` |
362
- | **速度优先** | haiku | `/track --sync`、`/search`、`/help-me` |
363
-
364
- ## 命令链式提示
365
-
366
- 每个命令执行完成后,自动推荐下一步操作:
100
+ | `resources/constitution.md` | 创作宪法,定义最高创作原则 | /specify |
101
+ | `resources/style-reference.md` | 风格参考,叙述视角/语言/节奏 | /expand |
102
+ | `resources/anti-ai.md` | 反AI写作规范 | /expand |
367
103
 
368
- ```text
369
- ✅ /write chapter-05 完成
370
-
371
- 💡 下一步建议:
372
- 1️⃣ /write chapter-06 — 继续写作下一章
373
- 2️⃣ /analyze — 每5章执行一次质量分析(已写5章)
374
- 3️⃣ /recap --brief — 快速回顾上下文(如需刷新记忆)
375
- ```
376
-
377
- 所有 18 个命令均支持链式提示,形成完整的创作工作流图。
378
-
379
- ## 插件系统
380
-
381
- ### 安装插件
382
-
383
- ```bash
384
- # 列出可用插件
385
- novelws plugin:list
104
+ ## Tracking 系统
386
105
 
387
- # 安装插件
388
- novelws plugin:add authentic-voice
106
+ 4 个 JSON 文件自动维护创作数据:
389
107
 
390
- # 移除插件
391
- novelws plugin:remove authentic-voice
392
- ```
393
-
394
- ### 官方插件
108
+ | 文件 | 内容 |
109
+ |------|------|
110
+ | `tracking/character-state.json` | 角色状态(身份、位置、状态、最后出场) |
111
+ | `tracking/relationships.json` | 角色关系(类型、状态、最后更新) |
112
+ | `tracking/plot-tracker.json` | 情节线和伏笔(状态、关键章节) |
113
+ | `tracking/timeline.json` | 时间线事件 |
395
114
 
396
- - **authentic-voice** - 真实人声写作插件,提升原创度和生活质感
397
- - 更多插件开发中...
115
+ - `/write` 完成后自动更新 tracking 骨架
116
+ - `/expand` 完成后补充 tracking 细节
398
117
 
399
118
  ## 项目结构
400
119
 
401
120
  ```text
402
121
  my-novel/
403
122
  ├── .claude/
404
- │ ├── CLAUDE.md # 共享核心规范(自动缓存)
405
- ├── commands/ # Slash Commands (18 个)
406
- ├── skills/ # Agent Skills (39 个)
407
- └── .cache/ # 增量缓存
408
- │ ├── resource-digest.json # 资源文件摘要
409
- └── write-context.json # 写作上下文缓存
123
+ │ ├── CLAUDE.md # 共享核心规范
124
+ └── commands/ # 5 个 Slash Commands
125
+ ├── specify.md
126
+ ├── plan.md
127
+ │ ├── write.md
128
+ ├── expand.md
129
+ │ └── analyze.md
410
130
 
411
- ├── resources/ # 所有资源文件(v4 扁平化)
412
- │ ├── memory/
413
- │ └── constitution.md
414
- │ ├── craft/ # 写作工艺 (hook-design, power-system, story-structures...)
415
- ├── genres/ # 类型知识 (xuanhuan, urban, game-lit, rebirth...)
416
- │ ├── styles/ # 写作风格
417
- │ ├── requirements/ # 写作规范 (anti-ai-v5, concretization...)
418
- │ ├── emotional-beats/ # 情感节拍
419
- │ ├── character-archetypes/ # 角色原型
420
- │ ├── references/ # 参考资料
421
- │ ├── config/
422
- │ │ └── keyword-mappings.json # 关键词触发映射表
423
- │ └── scripts/ # 命令行脚本工具
424
- │ ├── bash/
425
- │ └── powershell/
131
+ ├── resources/ # 3 个资源文件
132
+ │ ├── constitution.md
133
+ ├── style-reference.md
134
+ │ ├── anti-ai.md
135
+ └── config.json
426
136
 
427
- ├── tracking/ # 追踪数据(v4 提升至顶级)
428
- │ ├── plot-tracker.json
429
- │ ├── timeline.json
137
+ ├── tracking/ # 4 个 tracking 文件
430
138
  │ ├── character-state.json
431
139
  │ ├── relationships.json
432
- │ ├── write-checkpoint.json # 断点续写
433
- │ └── tracking-log.md # 更新日志
434
-
435
- ├── stories/
436
- │ └── 001-my-story/
437
- │ ├── specification.md
438
- │ ├── creative-plan.md
439
- │ ├── tasks.md
440
- │ └── content/
441
- │ ├── chapter-01.md
442
- │ └── ...
443
-
444
- ├── knowledge/ # 知识库
445
- │ ├── characters/
446
- │ ├── worldbuilding/
447
- │ └── references/
140
+ │ ├── plot-tracker.json
141
+ │ └── timeline.json
448
142
 
449
- └── README.md
143
+ └── stories/
144
+ └── <story>/
145
+ ├── specification.md
146
+ ├── creative-plan.md
147
+ └── content/
148
+ ├── chapter-001-synopsis.md
149
+ ├── chapter-001.md
150
+ └── ...
450
151
  ```
451
152
 
452
- ## 与 novel-writer 的关系
453
-
454
- | 特性 | novel-writer | novel-writer-skills |
455
- |------|-------------|-------------------|
456
- | **支持平台** | 13个AI工具(Claude、Cursor、Gemini等) | Claude Code 专用 |
457
- | **核心方法论** | 七步方法论 | 七步方法论 |
458
- | **Slash Commands** | 7 个跨平台命令 | 18 个 Claude 优化命令 |
459
- | **Agent Skills** | 不支持 | 39 个深度集成 |
460
- | **智能检查** | 手动执行 | 自动监控 |
461
- | **类型知识库** | 需手动查阅 | 15 种类型自动激活 |
462
- | **网文优化** | 基础支持 | 深度优化(爽点/钩子/节奏/反AI) |
463
- | **批量操作** | 不支持 | 多章分析/多卷规划/批量同步 |
464
- | **适用场景** | 需要跨平台支持 | 追求最佳体验(Claude Code) |
465
-
466
- **选择建议**:
467
-
468
- - 如果你使用多个AI工具 → 选择 **novel-writer**
469
- - 如果你专注 Claude Code → 选择 **novel-writer-skills**
470
-
471
153
  ## CLI 命令
472
154
 
473
- ### 项目管理
474
-
475
155
  ```bash
476
156
  # 初始化项目
477
157
  novelws init <project-name>
158
+ novelws init --here
159
+ novelws init my-novel --model claude-sonnet-4-5-20250929
478
160
 
479
161
  # 检查环境
480
162
  novelws check
481
163
 
482
- # 升级项目(命令 + Skills + 脚本)
164
+ # 升级项目(更新命令和资源文件)
483
165
  novelws upgrade
484
-
485
- # 仅升级命令,并指定模型
486
- novelws upgrade --commands --model claude-sonnet-4-5-20250929
487
-
488
- # 仅升级脚本
489
- novelws upgrade --scripts
490
166
  ```
491
167
 
492
- ### 插件管理
493
-
494
- ```bash
495
- # 列出已安装插件
496
- novelws plugin:list
497
-
498
- # 安装插件
499
- novelws plugin:add <plugin-name>
500
-
501
- # 移除插件
502
- novelws plugin:remove <plugin-name>
503
- ```
504
-
505
- ## 命令行脚本(可选)
506
-
507
- 除了 Claude Code 中的 Slash Commands,项目还包含命令行脚本工具:
508
-
509
- ### 脚本位置
510
-
511
- 初始化项目后,脚本位于:`resources/scripts/`
512
-
513
- ```text
514
- resources/scripts/
515
- ├── bash/ # macOS/Linux 脚本
516
- └── powershell/ # Windows 脚本
517
- ```
518
-
519
- ### 使用场景
520
-
521
- - **命令行替代** - 在终端中直接执行七步方法论
522
- - **自动化工作流** - 集成到 CI/CD 或批处理脚本
523
- - **批量操作** - 处理多个故事或批量检查
524
- - **独立使用** - 不依赖 Claude Code 的场景
525
-
526
- ### 快速示例
527
-
528
- **macOS/Linux:**
529
-
530
- ```bash
531
- # 创建宪法
532
- bash resources/scripts/bash/constitution.sh
533
-
534
- # 定义规格
535
- bash resources/scripts/bash/specify-story.sh
536
-
537
- # 追踪进度
538
- bash resources/scripts/bash/track-progress.sh
539
- ```
540
-
541
- **Windows:**
542
-
543
- ```powershell
544
- # 创建宪法
545
- .\resources\scripts\powershell\constitution.ps1
546
-
547
- # 定义规格
548
- .\resources\scripts\powershell\specify-story.ps1
549
-
550
- # 追踪进度
551
- .\resources\scripts\powershell\track-progress.ps1
552
- ```
553
-
554
- ### 何时使用脚本 vs Slash Commands
555
-
556
- | 场景 | 推荐方式 |
557
- |-----|---------|
558
- | 日常创作、需要 AI 协助 | Slash Commands (优先) |
559
- | 批量处理、自动化 | 命令行脚本 |
560
- | CI/CD 集成 | 命令行脚本 |
561
- | 快速检查验证 | 命令行脚本 |
562
-
563
- [脚本详细文档](templates/resources/scripts/README.md)
564
-
565
- ## 超长篇小说支持(NEW in v3.0)
566
-
567
- **v3.0.0 引入了全面的超长篇小说(300+ 章)支持能力**,通过三层数据架构实现 100x-600x 性能提升。
568
-
569
- ### 三层数据架构
570
-
571
- 系统根据项目规模自动选择最佳数据存储和加载方式:
572
-
573
- | 层级 | 模式 | 适用规模 | 性能 | 说明 |
574
- |-----|------|---------|------|------|
575
- | **Layer 1** | 单文件 JSON | < 100 章 | 基准 | 默认模式,向下兼容 |
576
- | **Layer 2** | 分片 JSON | 100-300 章 | **40倍提升** | 按卷分片,按需加载 |
577
- | **Layer 3** | MCP 服务器 | > 300 章 | **100-600倍提升** | SQLite + FTS5,毫秒级查询 |
578
-
579
- ### 性能对比
580
-
581
- | 操作 | 单文件模式 | 分片模式 | MCP 模式 |
582
- |-----|---------|---------|---------|
583
- | 加载 character-state | ~800 ms | ~20 ms (**40倍**) | ~3 ms (**266倍**) |
584
- | 查询单个角色 | ~1000 ms | ~50 ms (**20倍**) | ~2 ms (**500倍**) |
585
- | 搜索历史内容 | ~1200 ms | ~60 ms (**20倍**) | ~2 ms (**600倍**) |
586
-
587
- ### 如何启用
588
-
589
- #### 新项目
590
-
591
- ```bash
592
- # 100-300 章项目 - 启用分片模式
593
- novelws init my-novel --scale large
594
-
595
- # 300+ 章项目 - 启用 MCP 模式(最佳性能)
596
- novelws init my-novel --with-mcp
597
- ```
598
-
599
- #### 现有项目迁移
600
-
601
- ```bash
602
- # 在 Claude Code 中执行
603
- /track --migrate # 自动检测并推荐迁移方案
604
- /track --migrate --target sharded # 迁移到分片 JSON
605
- /track --migrate --target mcp # 迁移到 MCP 模式
606
- ```
607
-
608
- ### 核心功能
609
-
610
- #### 1. 分片 JSON 系统
611
-
612
- ```
613
- tracking/
614
- ├── summary/ # 全局摘要(跨卷查询入口)
615
- │ ├── characters-summary.json
616
- │ ├── plot-summary.json
617
- │ ├── timeline-summary.json
618
- │ └── volume-summaries.json
619
- └── volumes/ # 分卷详情
620
- ├── vol-01/
621
- │ ├── character-state.json
622
- │ ├── plot-tracker.json
623
- │ ├── timeline.json
624
- │ └── relationships.json
625
- └── vol-02/
626
- └── ...
627
- ```
628
-
629
- #### 2. MCP 查询工具
630
-
631
- - **query_chapter_entities** - 查询指定章节的角色、地点、事件
632
- - **query_plot** - 查询情节线、伏笔、钩子
633
- - **query_facts** - 查询世界观知识库
634
- - **search_content** - FTS5 全文搜索(500x 速度提升)
635
-
636
- #### 3. 卷级操作
637
-
638
- ```bash
639
- /volume-summary --volume vol-03 # 生成第 3 卷摘要
640
- /analyze --range vol-05-07 # 分析第 5-7 卷
641
- /track --volume vol-02 # 更新第 2 卷追踪数据
642
- ```
643
-
644
- #### 4. 连贯性守护
645
-
646
- **long-series-continuity Skill** 在 100+ 章项目中自动激活,监控:
647
-
648
- - **角色出场间隔**:50 章未出场 → 警告,100 章 → 严重警告
649
- - **伏笔到期**:200 章未回收 → 提醒,500 章 → 紧急提醒
650
- - **设定一致性**:跨卷验证力量体系、世界观规则
651
- - **称呼变化**:监控角色称呼/关系的合理性过渡
652
-
653
- ### 最佳实践
654
-
655
- 1. **< 100 章**:使用默认单文件模式,无需迁移
656
- 2. **100-300 章**:执行 `/track --migrate`,启用分片模式
657
- 3. **> 300 章**:安装 MCP 服务器(`--with-mcp`),获得最佳性能
658
- 4. **维护建议**:
659
- - 每写完一卷后执行 `/volume-summary`
660
- - 每 50 章执行 `/track --check` 深度检查
661
- - 使用 `/search` 快速定位历史内容
662
- - 关注 long-series-continuity skill 的提醒
663
-
664
-
665
-
666
- ## 文档
667
-
668
- - [入门指南](docs/guides/getting-started.md) - 详细安装和使用教程
669
- - [命令详解](docs/guides/commands.md) - 所有命令的完整说明
670
- - [Skills 指南](docs/guides/skills-guide.md) - Agent Skills 工作原理
671
- - [资源加载指南](docs/guides/resource-loading-guide.md) - 三层资源加载配置
672
- - [脚本工具集](templates/resources/scripts/README.md) - 命令行脚本使用指南
673
- - [插件开发](docs/plugin-development.md) - 如何开发自己的插件
674
-
675
168
  ## 贡献
676
169
 
677
170
  欢迎提交 Issue 和 Pull Request!
@@ -681,11 +174,3 @@ tracking/
681
174
  ## 许可证
682
175
 
683
176
  MIT License
684
-
685
- ## 致谢
686
-
687
- 本项目基于 [novel-writer](https://github.com/wordflowlab/novel-writer) 的方法论,专为 Claude Code 深度优化。
688
-
689
- ---
690
-
691
- **Novel Writer Skills** - 让 Claude Code 成为你的最佳创作伙伴!