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
@@ -1,27 +1,51 @@
1
- # 小说创作核心原则
1
+ # 小说创作核心规范
2
2
 
3
- > 本文件由 novelws init 生成,包含所有 Slash Command 共享的核心写作规范。
4
- > 修改此文件会影响所有命令的行为。
3
+ > 本文件由 novelws init 生成,定义五命令流水线的共享规范。
5
4
 
6
- ## 反 AI 写作核心
5
+ ## 核心规则
6
+ 1. 请始终用简体中文进行对话和回复。
7
+ 2. 必填项:在每次聊天回复的开头,您必须明确说明“模型名称、模型大小、模型类型及其修订版本(更新日期)”。此规定仅适用于聊天回复,不适用于内联编辑。
8
+ 3. 系统为Windows,执行命令或者脚本需要适配系统
9
+ 4. 不要懒惰
7
10
 
8
- - **段落结构**:单句成段比例 30%-50%,每段 50-100 字
9
- - **句式**:短句优先(15-25 字),白话替代文绉绉
10
- - **描写**:删除装饰性形容词,一个准确细节胜过三个堆砌
11
- - **禁止**:「然而」「殊不知」「缓缓」「深邃」「仿佛...一般」等 AI 高频词
12
- - **完整规范**:`resources/requirements/anti-ai-v4.md`
11
+ ## 五命令流水线
12
+
13
+ ```
14
+ /specify /plan → /write → /expand → /analyze
15
+ ```
16
+
17
+ | 命令 | 职责 |
18
+ |------|------|
19
+ | /specify | 定义故事设定、角色、世界观 |
20
+ | /plan | 生成卷级大纲 |
21
+ | /write | 逐章生成 200-500 字剧情概要 + tracking |
22
+ | /expand | 将概要扩写为 3000-5000 字正文 |
23
+ | /analyze | 质量检查(概要符合度、角色一致性、伏笔、连贯性、AI味) |
13
24
 
14
25
  ## 段落格式规范
15
26
 
16
27
  - ⛔ 禁止使用"一"、"二"、"三"等数字标记分段
17
28
  - ✅ 场景转换用两个空行(一个空白行)分隔
18
- - 📖 原因:数字标记破坏阅读沉浸感
19
29
 
20
- ## 后置 Tracking 处理
30
+ ## 资源文件
31
+
32
+ | 文件 | 用途 | 加载阶段 |
33
+ |------|------|---------|
34
+ | resources/constitution.md | 创作宪法 | /specify |
35
+ | resources/style-reference.md | 风格参考 | /expand |
36
+ | resources/anti-ai.md | 反AI规范 | /expand |
37
+
38
+ ## Tracking 文件
39
+
40
+ | 文件 | 用途 |
41
+ |------|------|
42
+ | tracking/character-state.json | 角色状态(role, status, location, state, lastAppearance) |
43
+ | tracking/relationships.json | 角色关系(from, to, type, note, lastUpdate) |
44
+ | tracking/plot-tracker.json | 情节线和伏笔(plotlines, foreshadowing) |
45
+ | tracking/timeline.json | 时间线(chapter, time, event) |
21
46
 
22
- - `/write` 完成后**自动**更新 4 个 tracking 文件(character-state, relationships, plot-tracker, timeline)
23
- - `/analyze` 完成后**询问用户确认**后更新 tracking 文件
24
- - 格式详情:`.claude/skills/auto-tracking/SKILL.md`
47
+ - /write 完成后自动更新 tracking 骨架
48
+ - /expand 完成后补充 tracking 细节
25
49
 
26
50
  ## 会话级资源复用
27
51
 
@@ -32,191 +56,3 @@
32
56
  - ✅ 已加载:直接使用已有知识,不重新读取文件
33
57
  - ❌ 未加载:读取文件并添加到"已加载列表"
34
58
  3. **例外**:用户明确要求"重新加载"时重新读取
35
-
36
- ## 前文内容加载策略
37
-
38
- 写作下一章时的前文加载规则:
39
- 1. 读取上一章的完整文件
40
- 2. 如果 > 1500 字,只保留最后 1000 字(覆盖最后 1-2 个场景)
41
- 3. 如果 ≤ 1500 字,保留全部内容
42
- 4. 额外读取上一章的标题和开篇第一段
43
-
44
- **补充上下文来源**(不依赖前文全文):
45
- - `creative-plan.md`:章节大纲和情节走向
46
- - `tasks.md`:当前章节具体写作任务
47
- - `tracking/*.json`:角色状态、关系、情节线、时间线
48
-
49
- ## /compact 使用建议
50
-
51
- 每写完 2-3 章后,建议执行 `/compact` 压缩对话历史:
52
- - compact 会保留:已加载资源列表、最近章节要点、角色状态概要
53
- - compact 会清除:完整的旧章节文本、工具调用详细日志
54
- - 原因:tracking 系统已捕获关键信息,不依赖对话历史
55
-
56
- ## 超长篇支撑(分片模式)
57
-
58
- 当项目章节数超过 100 时,tracking 数据可以从单文件模式迁移到分卷分片模式:
59
-
60
- ### 目录结构(分片模式)
61
-
62
- ```
63
- tracking/
64
- ├── story-facts.json # 全局事实库
65
- ├── tracking-log.md # 全局更新日志
66
- ├── summary/ # 全局摘要(跨卷查询入口)
67
- │ ├── characters-summary.json
68
- │ ├── plot-summary.json
69
- │ ├── timeline-summary.json
70
- │ └── volume-summaries.json
71
- ├── volumes/ # 分卷详情
72
- │ ├── vol-01/ # 第 1 卷(如第 1-50 章)
73
- │ │ ├── character-state.json
74
- │ │ ├── plot-tracker.json
75
- │ │ ├── timeline.json
76
- │ │ └── relationships.json
77
- │ ├── vol-02/ # 第 2 卷(如第 51-100 章)
78
- │ │ └── ...
79
- │ └── vol-XX/
80
- └── novel-tracking.db # SQLite 数据库(MCP 使用,可选)
81
- ```
82
-
83
- ### 数据加载规则
84
-
85
- 所有命令遵循 **三层 Fallback**:
86
-
87
- 1. **MCP 查询**(最优,需安装 novelws-mcp)
88
- - 毫秒级响应
89
- - 自动聚合统计
90
- - 支持全文搜索(FTS5)
91
-
92
- 2. **分片 JSON**(按卷加载,体积可控)
93
- - 读取 `summary/` 获取全局概览
94
- - 读取 `volumes/vol-XX/` 获取指定卷详情
95
- - 性能提升 10x+(相比单文件)
96
-
97
- 3. **单文件 JSON**(兜底,完全兼容)
98
- - 向下兼容小型项目(< 100 章)
99
- - 如果 `volumes/` 不存在,自动使用单文件模式
100
-
101
- ### 迁移命令
102
-
103
- 当 `/guide` 提示 tracking 文件过大时,执行以下命令进行分片迁移:
104
-
105
- ```bash
106
- /track --migrate
107
- ```
108
-
109
- **迁移流程**:
110
- 1. **检查模式**:分析当前 tracking 文件大小
111
- 2. **备份数据**:创建时间戳备份(`tracking-backup-YYYYMMDD/`)
112
- 3. **自动分片**:
113
- - 创建 `summary/` 和 `volumes/` 目录
114
- - 按卷拆分 tracking 数据(默认每卷 50 章)
115
- - 生成全局摘要文件
116
-
117
- **迁移后**:
118
- - 所有命令自动切换到分片模式
119
- - 支持 `--volume vol-XX` 参数进行卷级操作
120
- - 原单文件保留作为备份
121
-
122
- ### 卷级操作
123
-
124
- 分片模式下,多数命令支持 `--volume` 参数:
125
-
126
- ```bash
127
- # 卷级分析
128
- /analyze --volume vol-03
129
-
130
- # 卷级回顾
131
- /recap --volume vol-02
132
-
133
- # 卷级摘要
134
- /volume-summary vol-03 --export
135
-
136
- # 卷级搜索
137
- /search "关键词" --volume vol-01
138
-
139
- # 卷级检查
140
- /checklist --volume vol-03
141
- ```
142
-
143
- ### MCP 加速(可选)
144
-
145
- **安装 MCP 服务器**(推荐 >300 章项目):
146
-
147
- ```bash
148
- # 初始化时启用 MCP
149
- novelws init my-novel --with-mcp
150
-
151
- # 或在现有项目中配置
152
- # 编辑 resources/config/config.json,添加:
153
- {
154
- "mcp": true
155
- }
156
- ```
157
-
158
- **MCP 优势**:
159
- - 查询速度提升 **100x+**
160
- - 支持中文全文搜索(FTS5)
161
- - 自动聚合统计(卷统计、一致性检查等)
162
- - 跨卷关联查询
163
-
164
- **MCP 工具**:
165
- - `query_characters` - 查询角色数据
166
- - `query_plot` - 查询伏笔/情节
167
- - `query_timeline` - 查询时间线
168
- - `query_relationships` - 查询关系网络
169
- - `query_facts` - 查询事实库
170
- - `search_content` - 全文搜索
171
- - `stats_volume` - 卷统计
172
- - `stats_consistency` - 一致性统计
173
-
174
- ### 新增命令(超长篇专用)
175
-
176
- **`/volume-summary vol-XX`**:生成卷级摘要报告
177
- - 章节统计(字数、平均长度、更新频率)
178
- - 角色分析(出场统计、关系变化、弧线进度)
179
- - 情节推进(伏笔铺设/回收、主线进度)
180
- - 质量指标(节奏评分、一致性检查、爽点密度)
181
- - 关键事件时间线
182
-
183
- **`/search <关键词>`**:全文搜索引擎
184
- - 搜索章节内容和 tracking 数据
185
- - 支持中文分词(MCP FTS5)
186
- - 支持正则表达式(`--regex`)
187
- - 支持模糊匹配(`--fuzzy`)
188
- - 支持卷级过滤(`--volume vol-XX`)
189
-
190
- ### 自动激活 Skill
191
-
192
- **`long-series-continuity`** skill 在章节数 > 100 时自动激活:
193
-
194
- **监控维度**:
195
- 1. **角色出场间隔**:提醒久未出场的角色(>50 章)
196
- 2. **伏笔到期**:提醒超期伏笔(>200 章)
197
- 3. **设定一致性**:检测跨卷设定矛盾
198
- 4. **称呼一致性**:监控角色称呼变化合理性
199
-
200
- **协作命令**:
201
- - `/write`:实时提醒 + 自动更新 lastSeen
202
- - `/recap`:附加超期伏笔和久未出场角色列表
203
- - `/track --check`:提供跨卷一致性检查
204
-
205
- ### 性能对比
206
-
207
- | 场景 | 单文件模式 | 分片模式 | MCP 模式 | 提升 |
208
- |------|-----------|---------|---------|------|
209
- | 加载 1000 章 tracking | ~2000ms | ~200ms | ~50ms | **40x** |
210
- | 搜索关键词 | ~5000ms | ~500ms | ~10ms | **500x** |
211
- | 卷级摘要生成 | ~8000ms | ~800ms | ~100ms | **80x** |
212
- | 伏笔查询(紧急度筛选) | ~3000ms | ~300ms | ~5ms | **600x** |
213
-
214
- ### 最佳实践
215
-
216
- 1. **章节数 < 100**:使用单文件模式(默认),无需迁移
217
- 2. **章节数 100-300**:执行 `/track --migrate`,启用分片模式
218
- 3. **章节数 > 300**:安装 MCP 服务器(`--with-mcp`),获得最佳性能
219
- 4. **定期维护**:
220
- - 每写完一卷后执行 `/volume-summary`
221
- - 每 50 章执行 `/track --check` 深度检查
222
- - 使用 `/search` 快速定位历史内容
@@ -0,0 +1,16 @@
1
+ # 反AI写作规范
2
+
3
+ ## 核心原则
4
+ 自然表达,像真人写的。
5
+
6
+ ## 必须做到
7
+ - 句长混合:短句(30-40%)、中句(40-50%)、长句(10-20%)
8
+ - 单句成段比例 30%-50%,每段 50-100 字
9
+ - 用具体细节替代抽象描写
10
+ - 对话符合角色身份,不千人一面
11
+
12
+ ## 必须避免
13
+ - 「然而」「殊不知」「缓缓」「深邃」「不禁」等AI高频词
14
+ - 连续使用相同句式结构
15
+ - 空洞的心理描写和环境渲染
16
+ - 每段都以角色名开头
@@ -0,0 +1,19 @@
1
+ # 风格参考
2
+
3
+ > 本文件定义你的写作风格偏好。在 /specify 阶段根据你的选择自动生成。
4
+ > 扩写阶段会加载此文件作为风格锚点。
5
+
6
+ ## 叙述视角
7
+ [第一人称/第三人称有限/第三人称全知]
8
+
9
+ ## 语言风格
10
+ [简洁利落/细腻优美/口语化/古风]
11
+
12
+ ## 节奏偏好
13
+ [快节奏/中等/慢节奏]
14
+
15
+ ## 对话风格
16
+ [简短有力/生活化/文学化]
17
+
18
+ ## 特殊要求
19
+ [用户自定义的风格要求]
@@ -1,78 +1,3 @@
1
1
  {
2
- "novel": "[小说名称]",
3
- "lastUpdated": "",
4
-
5
- "protagonist": {
6
- "name": "[主角名]",
7
- "currentStatus": {
8
- "alive": true,
9
- "health": "良好",
10
- "mentalState": "正常",
11
- "location": "[当前位置]",
12
- "chapter": 1,
13
- "age": null,
14
- "position": "[身份/职位]",
15
- "possessions": [],
16
- "skills": [],
17
- "knowledge": []
18
- },
19
- "development": {
20
- "arc": "[成长弧线描述]",
21
- "milestones": [],
22
- "currentPhase": "起点",
23
- "nextGoal": ""
24
- },
25
- "relationships": {
26
- "summary": "见relationships.json详细信息",
27
- "key": {}
28
- }
29
- },
30
-
31
- "supportingCharacters": {
32
- "[配角名]": {
33
- "role": "[角色功能]",
34
- "importance": "high|medium|low",
35
- "status": {
36
- "alive": true,
37
- "lastSeen": {
38
- "chapter": null,
39
- "location": ""
40
- },
41
- "currentLocation": "unknown",
42
- "occupation": ""
43
- },
44
- "arc": {
45
- "planned": "",
46
- "current": ""
47
- },
48
- "secrets": [],
49
- "motivations": []
50
- }
51
- },
52
-
53
- "characterGroups": {
54
- "active": [],
55
- "inactive": [],
56
- "deceased": []
57
- },
58
-
59
- "appearanceTracking": [
60
- {
61
- "chapter": 1,
62
- "appearances": [
63
- {
64
- "character": "[角色名]",
65
- "role": "主要|次要|背景",
66
- "significance": ""
67
- }
68
- ]
69
- }
70
- ],
71
-
72
- "consistency": {
73
- "physicalTraits": {},
74
- "personalityTraits": {},
75
- "speechPatterns": {},
76
- "warnings": []
77
- }
2
+ "characters": {}
78
3
  }
@@ -1,62 +1,5 @@
1
1
  {
2
- "novel": "[小说名称]",
3
- "lastUpdated": "",
4
- "currentState": {
5
- "chapter": 1,
6
- "volume": 1,
7
- "mainPlotStage": "开端",
8
- "location": "[当前地点]",
9
- "timepoint": "[故事时间]"
10
- },
11
-
12
- "plotlines": {
13
- "main": {
14
- "name": "[主线名称]",
15
- "description": "[主线描述]",
16
- "status": "active",
17
- "currentNode": "[当前节点]",
18
- "completedNodes": [],
19
- "upcomingNodes": [],
20
- "plannedClimax": {
21
- "chapter": null,
22
- "description": ""
23
- }
24
- },
25
- "subplots": []
26
- },
27
-
28
- "foreshadowing": [
29
- {
30
- "id": "foreshadow-001",
31
- "content": "[伏笔内容]",
32
- "planted": {
33
- "chapter": null,
34
- "description": ""
35
- },
36
- "hints": [],
37
- "plannedReveal": {
38
- "chapter": null,
39
- "description": ""
40
- },
41
- "status": "active",
42
- "importance": "high"
43
- }
44
- ],
45
-
46
- "conflicts": {
47
- "active": [],
48
- "resolved": [],
49
- "upcoming": []
50
- },
51
-
52
- "checkpoints": {
53
- "volumeEnd": [],
54
- "majorEvents": []
55
- },
56
-
57
- "notes": {
58
- "plotHoles": [],
59
- "inconsistencies": [],
60
- "reminders": []
61
- }
2
+ "currentChapter": 0,
3
+ "plotlines": [],
4
+ "foreshadowing": []
62
5
  }
@@ -1,70 +1,3 @@
1
1
  {
2
- "novel": "[小说名称]",
3
- "lastUpdated": "",
4
-
5
- "characters": {
6
- "[主角名]": {
7
- "relationships": {
8
- "allies": [],
9
- "enemies": [],
10
- "romantic": [],
11
- "family": [],
12
- "mentors": [],
13
- "neutral": [],
14
- "unknown": []
15
- },
16
- "dynamicRelations": [
17
- {
18
- "character": "[角色名]",
19
- "initial": "陌生人",
20
- "current": "朋友",
21
- "trajectory": "positive",
22
- "keyEvents": []
23
- }
24
- ]
25
- }
26
- },
27
-
28
- "factions": {
29
- "[派系名]": {
30
- "description": "",
31
- "leader": "",
32
- "members": [],
33
- "goals": [],
34
- "alliedWith": [],
35
- "opposedTo": [],
36
- "status": "active"
37
- }
38
- },
39
-
40
- "relationshipMatrix": {
41
- "说明": "角色间关系的快速查询矩阵",
42
- "matrix": {}
43
- },
44
-
45
- "conflicts": {
46
- "personal": [],
47
- "factional": [],
48
- "ideological": []
49
- },
50
-
51
- "history": [
52
- {
53
- "chapter": 1,
54
- "changes": [
55
- {
56
- "type": "new",
57
- "characters": ["A", "B"],
58
- "relation": "初次相遇",
59
- "impact": "low"
60
- }
61
- ]
62
- }
63
- ],
64
-
65
- "predictions": {
66
- "说明": "基于当前关系预测的发展",
67
- "likely": [],
68
- "possible": []
69
- }
2
+ "relationships": []
70
3
  }
@@ -1,49 +1,3 @@
1
1
  {
2
- "novel": "[小说名称]",
3
- "lastUpdated": "",
4
-
5
- "storyTime": {
6
- "start": "[故事开始时间]",
7
- "current": "[当前故事时间]",
8
- "end": "[预计结束时间]",
9
- "format": "说明:可以是年代、季节、具体日期等"
10
- },
11
-
12
- "events": [
13
- {
14
- "chapter": 1,
15
- "date": "[故事内时间]",
16
- "event": "[事件描述]",
17
- "duration": "[持续时间]",
18
- "participants": []
19
- }
20
- ],
21
-
22
- "parallelEvents": {
23
- "说明": "同时发生的事件,按时间点分组",
24
- "timepoints": {}
25
- },
26
-
27
- "historicalContext": {
28
- "说明": "历史背景事件(历史小说适用)",
29
- "events": []
30
- },
31
-
32
- "timeLogic": {
33
- "travelTimes": {
34
- "说明": "地点间的旅行时间",
35
- "routes": {}
36
- },
37
- "constraints": [
38
- {
39
- "description": "时间限制说明",
40
- "rule": ""
41
- }
42
- ]
43
- },
44
-
45
- "anomalies": {
46
- "说明": "时间逻辑问题记录",
47
- "issues": []
48
- }
2
+ "events": []
49
3
  }
@@ -1,6 +0,0 @@
1
- /**
2
- * plugin 系列命令 - 插件管理
3
- */
4
- import { Command } from '@commander-js/extra-typings';
5
- export declare function registerPluginCommands(program: Command): void;
6
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/commands/plugin.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAUtD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA4I7D"}