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,280 +0,0 @@
1
- # Auto-Tracking Skill
2
-
3
- > 自动更新 Tracking 文件的详细格式和流程规范
4
-
5
- ## 概述
6
-
7
- 写作完成后,自动分析章节内容并更新 4 个 tracking 文件,记录角色状态、关系变化、情节推进和时间线信息。
8
-
9
- ## 自动更新的文件(4 个)
10
-
11
- ### 1. character-state.json
12
-
13
- **更新内容**:
14
- - 角色最后出场位置(`lastAppearance`)
15
- - 角色关键状态变化(`keyStates`)
16
- - 角色情绪变化(如配置了 emotions 字段)
17
-
18
- **更新依据**:
19
- - 分析本章中出现的所有角色
20
- - 识别角色状态的关键变化点
21
- - 记录角色在本章的重要决策或转折
22
-
23
- **示例更新**:
24
- ```json
25
- {
26
- "林晓": {
27
- "lastAppearance": "chapter-05",
28
- "keyStates": {
29
- "mental": "焦虑",
30
- "physical": "疲惫"
31
- }
32
- }
33
- }
34
- ```
35
-
36
- ### 2. relationships.json
37
-
38
- **更新内容**:
39
- - 新增或更新角色关系
40
- - 关系强度变化
41
- - 关系类型变化
42
-
43
- **更新依据**:
44
- - 分析角色互动场景
45
- - 识别关系的关键变化点(冲突、和解、信任建立等)
46
- - 量化关系强度变化
47
-
48
- **示例更新**:
49
- ```json
50
- {
51
- "relationships": [
52
- {
53
- "from": "林晓",
54
- "to": "队长",
55
- "type": "信任",
56
- "strength": 0.6,
57
- "lastUpdate": "chapter-05",
58
- "note": "首次合作任务中建立初步信任"
59
- }
60
- ]
61
- }
62
- ```
63
-
64
- ### 3. plot-tracker.json
65
-
66
- **更新内容**:
67
- - 情节线推进状态
68
- - 新增情节事件
69
- - 伏笔埋设记录
70
-
71
- **更新依据**:
72
- - 识别本章推进的情节线
73
- - 记录重要情节转折点
74
- - 标记埋下的伏笔(待后续回收)
75
-
76
- **示例更新**:
77
- ```json
78
- {
79
- "plotLines": [
80
- {
81
- "id": "主线-001",
82
- "name": "寻找真相",
83
- "status": "进行中",
84
- "progress": 0.3,
85
- "lastUpdate": "chapter-05",
86
- "events": [
87
- {
88
- "chapter": "chapter-05",
89
- "description": "发现第一条线索",
90
- "importance": "high"
91
- }
92
- ]
93
- }
94
- ],
95
- "foreshadowing": [
96
- {
97
- "chapter": "chapter-05",
98
- "content": "神秘人物的出现",
99
- "payoffChapter": null,
100
- "status": "planted"
101
- }
102
- ]
103
- }
104
- ```
105
-
106
- ### 4. timeline.json
107
-
108
- **更新内容**:
109
- - 新增时间线事件
110
- - 更新故事时间进度
111
-
112
- **更新依据**:
113
- - 分析本章的时间跨度
114
- - 识别标志性时间点
115
- - 记录重要事件的时间戳
116
-
117
- **示例更新**:
118
- ```json
119
- {
120
- "events": [
121
- {
122
- "day": 15,
123
- "time": "14:00",
124
- "chapter": "chapter-05",
125
- "event": "首次合作任务",
126
- "participants": ["林晓", "队长"],
127
- "location": "城市中心"
128
- }
129
- ]
130
- }
131
- ```
132
-
133
- ## 更新执行流程
134
-
135
- ### Step 1: 分析本章内容
136
-
137
- 分析刚完成的章节内容(`stories/*/content/chapter-XX.md`):
138
- 1. 提取所有出现的角色
139
- 2. 识别角色互动和关系变化
140
- 3. 识别情节推进点
141
- 4. 识别时间线信息
142
-
143
- ### Step 2: 生成更新内容
144
-
145
- 基于分析结果,生成 4 个 tracking 文件的更新内容(JSON diff 格式)
146
-
147
- ### Step 3: 自动应用更新
148
-
149
- **无需用户确认**(/write 模式),直接更新文件:
150
- 1. 读取现有 tracking 文件
151
- 2. 合并新内容(保持 JSON 格式正确)
152
- 3. 写入更新后的文件
153
- 4. 验证 JSON 格式有效性
154
-
155
- **需用户确认**(/analyze 模式),展示更新内容后等待确认。
156
-
157
- ### Step 4: 记录到 tracking-log.md
158
-
159
- 追加更新记录到 `tracking/tracking-log.md`。
160
-
161
- **日志格式**:
162
- ```markdown
163
- ## [时间戳] - /write chapter-XX
164
-
165
- ### 命令执行
166
- - **命令**: `/write chapter-XX`
167
- - **章节**: Chapter XX - [章节标题]
168
- - **字数**: XXXX 字
169
- - **执行者**: AI
170
- - **状态**: 已自动更新
171
-
172
- ### 自动更新内容
173
-
174
- #### character-state.json
175
- \`\`\`diff
176
- "林晓": {
177
- - "lastAppearance": "chapter-04",
178
- + "lastAppearance": "chapter-05",
179
- "keyStates": {
180
- - "mental": "平静",
181
- + "mental": "焦虑"
182
- }
183
- }
184
- \`\`\`
185
-
186
- #### relationships.json
187
- \`\`\`diff
188
- + {
189
- + "from": "林晓",
190
- + "to": "队长",
191
- + "type": "信任",
192
- + "strength": 0.6,
193
- + "lastUpdate": "chapter-05"
194
- + }
195
- \`\`\`
196
-
197
- #### plot-tracker.json
198
- \`\`\`diff
199
- "plotLines": [
200
- {
201
- "id": "主线-001",
202
- - "progress": 0.2,
203
- + "progress": 0.3,
204
- - "lastUpdate": "chapter-04",
205
- + "lastUpdate": "chapter-05"
206
- }
207
- ]
208
- \`\`\`
209
-
210
- #### timeline.json
211
- \`\`\`diff
212
- + {
213
- + "day": 15,
214
- + "time": "14:00",
215
- + "chapter": "chapter-05",
216
- + "event": "首次合作任务"
217
- + }
218
- \`\`\`
219
-
220
- ### 更新依据
221
- - **角色分析**: [角色变化说明]
222
- - **关系分析**: [关系变化说明]
223
- - **情节推进**: [情节推进说明]
224
- - **时间线**: [时间线更新说明]
225
-
226
- ---
227
- ```
228
-
229
- ## Checkpoint 完成标记
230
-
231
- 写作正常完成后,更新 `write-checkpoint.json` 的 `status` 为 `completed`:
232
-
233
- ```json
234
- {
235
- "progress": {
236
- "status": "completed",
237
- "wordsWritten": "[最终字数]"
238
- },
239
- "timestamps": {
240
- "updatedAt": "[当前时间]"
241
- }
242
- }
243
- ```
244
-
245
- ## 错误处理
246
-
247
- ### 如果 tracking 文件不存在
248
-
249
- ```
250
- ⚠️ 警告:tracking 文件不存在
251
- - 文件:[文件路径]
252
- - 建议:运行 `/track --init` 初始化 tracking 文件
253
- - 跳过本次更新
254
- ```
255
-
256
- ### 如果 JSON 格式错误
257
-
258
- ```
259
- ❌ 错误:tracking 文件格式错误
260
- - 文件:[文件路径]
261
- - 错误:[JSON 解析错误信息]
262
- - 建议:手动修复文件格式后重试
263
- - 跳过本次更新
264
- ```
265
-
266
- ### 如果更新失败
267
-
268
- ```
269
- ❌ 错误:更新 tracking 文件失败
270
- - 文件:[文件路径]
271
- - 错误:[写入错误信息]
272
- - 建议:检查文件权限和磁盘空间
273
- - 更新内容已记录到 tracking-log.md,可手动补充
274
- ```
275
-
276
- ## 性能考虑
277
-
278
- - **批量更新**: 4 个文件一次性更新,减少 I/O 操作
279
- - **增量写入**: 仅更新变化部分,保留其他内容
280
- - **异步日志**: tracking-log.md 追加操作可异步执行
@@ -1,355 +0,0 @@
1
- ---
2
- name: fantasy-world-building
3
- description: "Use when user mentions fantasy, magic system, or world-building for fantastical settings - provides fantasy genre conventions, magic system design patterns, and world-building frameworks"
4
- allowed-tools: Read, Grep
5
- ---
6
-
7
- # 奇幻小说世界构建规范
8
-
9
- ## 快速参考
10
-
11
- | 元素 | 指导原则 | 关键点 |
12
- |------|---------|-------|
13
- | **魔法系统** | 必须有清晰规则 | 限制比力量更重要 |
14
- | **世界设定** | 内在自洽 | 每个规则都有原因 |
15
- | **种族/生物** | 独特且有逻辑 | 避免单纯的人类翻版 |
16
- | **历史深度** | 至少三代历史 | 过去影响现在 |
17
- | **政治结构** | 权力分布清晰 | 冲突有根源 |
18
-
19
- ## 核心原则
20
-
21
- ### Sanderson 魔法法则
22
-
23
- **第一法则**:读者从魔法中获得的满足感,与其理解魔法的程度成正比
24
- - 如果魔法要解决问题,读者必须理解它的规则
25
- - 软魔法系统(神秘)用于氛围和奇观
26
- - 硬魔法系统(规则明确)用于解决问题
27
-
28
- **第二法则**:限制比力量更有趣
29
- - 强大的魔法需要强大的代价
30
- - 限制创造冲突和策略
31
- - 完美的系统无法创造戏剧
32
-
33
- **第三法则**:在添加新东西之前,先扩展已有的
34
- - 深化现有元素胜过添加新元素
35
- - 相互关联的系统比孤立的更强
36
- - 复杂度应该有机生长
37
-
38
- ## 魔法系统设计
39
-
40
- ### 硬魔法系统(规则明确)
41
-
42
- **必要元素**:
43
- 1. **能量来源**
44
- - 魔法从哪里来?
45
- - 是有限的还是无限的?
46
- - 可以耗尽吗?
47
-
48
- 2. **使用规则**
49
- - 谁能使用?如何获得?
50
- - 需要什么条件?
51
- - 有什么限制?
52
-
53
- 3. **代价/后果**
54
- - 使用魔法的成本是什么?
55
- - 过度使用会怎样?
56
- - 是否有长期影响?
57
-
58
- 4. **可能与不可能**
59
- - 魔法能做什么?
60
- - 明确不能做什么
61
- - 边界在哪里?
62
-
63
- **示例框架**:
64
-
65
- ```
66
- 魔法系统:元素操控
67
- 来源:每个人出生时拥有一种元素亲和
68
- 规则:只能操控自己的元素,需要该元素存在于周围
69
- 限制:精神疲劳,过度使用导致元素反噬
70
- 代价:使用魔法时消耗生命力,需要休息恢复
71
- 禁忌:不能创造元素,只能操控;不能操控生物体内的元素
72
- ```
73
-
74
- ### 软魔法系统(神秘感)
75
-
76
- **特征**:
77
- - 规则不完全为读者所知
78
- - 更多用于氛围和奇观
79
- - 不应该方便地解决主要冲突
80
- - 保持神秘感和敬畏
81
-
82
- **使用场景**:
83
- - 古老的魔法,已部分遗失
84
- - 神祇力量,超越凡人理解
85
- - 背景奇观和世界建设
86
- - 不影响主线解决的辅助情节
87
-
88
- ## 世界构建框架
89
-
90
- ### 地理与环境
91
-
92
- **必须考虑**:
93
- 1. **地形**
94
- - 山脉、河流、海洋如何影响文明?
95
- - 气候如何塑造文化?
96
- - 资源分布如何影响经济?
97
-
98
- 2. **生态系统**
99
- - 食物链是什么样的?
100
- - 魔法生物如何适应环境?
101
- - 人类/其他智慧种族如何生存?
102
-
103
- 3. **魔法对地理的影响**
104
- - 魔法如何改变自然?
105
- - 有魔法造成的地标吗?
106
- - 魔法灾难留下了什么痕迹?
107
-
108
- ### 社会与文化
109
-
110
- **层次架构**:
111
-
112
- **政治层面**:
113
- - 政府形式(君主制、民主、神权等)
114
- - 权力如何传递?
115
- - 魔法如何影响政治?
116
- - 不同派系的冲突
117
-
118
- **经济层面**:
119
- - 贸易什么?为什么?
120
- - 货币系统
121
- - 魔法如何影响经济?
122
- - 资源稀缺性
123
-
124
- **社会层面**:
125
- - 阶级结构
126
- - 种族关系
127
- - 魔法使用者的地位
128
- - 教育和知识传播
129
-
130
- **文化层面**:
131
- - 宗教和信仰
132
- - 艺术和娱乐
133
- - 节日和传统
134
- - 价值观和禁忌
135
-
136
- ### 历史深度
137
-
138
- **最少三代历史**:
139
-
140
- **当代**(故事发生时):
141
- - 现状是什么?
142
- - 主要冲突和问题
143
- - 主要势力和人物
144
-
145
- **父辈代**(30-50年前):
146
- - 什么事件塑造了当代?
147
- - 老一辈记得什么?
148
- - 遗留的问题
149
-
150
- **祖辈代**(60-100年前):
151
- - 传说和故事
152
- - 失落的知识
153
- - 历史创伤
154
-
155
- **古代**(更久远):
156
- - 神话和传说
157
- - 文明的兴衰
158
- - 为当代设定埋下种子
159
-
160
- ## 种族与生物设计
161
-
162
- ### 智慧种族
163
-
164
- **避免单一特征**:
165
- ❌ 所有精灵都优雅高贵
166
- ❌ 所有矮人都贪婪暴躁
167
- ❌ 所有兽人都野蛮好战
168
-
169
- **创造深度**:
170
- ✅ 内部多样性(不同文化、价值观)
171
- ✅ 个体差异(性格各异)
172
- ✅ 历史复杂性(好的和坏的历史)
173
-
174
- **种族特征应该有原因**:
175
- - 生理特征如何帮助生存?
176
- - 文化特征从何而来?
177
- - 与其他种族的关系历史
178
-
179
- ### 魔法生物
180
-
181
- **设计原则**:
182
- 1. **生态位**
183
- - 它在生态系统中的角色?
184
- - 吃什么?被什么吃?
185
- - 如何繁殖?
186
-
187
- 2. **魔法来源**
188
- - 为什么有魔法?
189
- - 魔法如何帮助它生存?
190
- - 有什么代价或限制?
191
-
192
- 3. **与人类的关系**
193
- - 危险还是有用?
194
- - 能驯养吗?
195
- - 人类如何应对?
196
-
197
- ## 常见陷阱
198
-
199
- ### ❌ 过度解释
200
-
201
- **问题**:花费章节解释世界设定,停止故事推进
202
-
203
- **解决**:
204
- - 在行动中展示设定
205
- - 只解释角色需要知道的
206
- - 让读者自己拼凑一些东西
207
- - 信息应该服务于情节或角色
208
-
209
- ### ❌ 不一致的规则
210
-
211
- **问题**:魔法/世界规则为了情节便利而改变
212
-
213
- **解决**:
214
- - 提前建立所有主要规则
215
- - 跟踪已建立的规则
216
- - 例外需要早期暗示
217
- - 让角色在限制内创造性地解决问题
218
-
219
- ### ❌ 欧洲中世纪默认设置
220
-
221
- **问题**:所有奇幻都是欧洲中世纪的翻版
222
-
223
- **解决**:
224
- - 探索其他文化和时期
225
- - 混合多个文化元素
226
- - 创造独特的社会结构
227
- - 考虑魔法如何改变社会发展
228
-
229
- ### ❌ 选中之人陷阱
230
-
231
- **问题**:主角因为预言/血统特殊,而非行动
232
-
233
- **解决**:
234
- - 让主角通过选择变得特殊
235
- - 即使有预言,也让他们努力实现
236
- - 颠覆或解构陷阱
237
- - 专注于角色成长,而非天赋
238
-
239
- ## 奇幻子类型
240
-
241
- ### 高奇幻(史诗奇幻)
242
- - 完全虚构的世界
243
- - 善恶对抗
244
- - 史诗般的规模和风险
245
- - 魔法是世界的一部分
246
-
247
- ### 低奇幻
248
- - 现实世界+魔法元素
249
- - 较小的个人风险
250
- - 魔法稀有且神秘
251
- - 更接地气的基调
252
-
253
- ### 城市奇幻
254
- - 现代城市设定
255
- - 隐藏的魔法世界
256
- - 通常有侦探/神秘元素
257
- - 两个世界的碰撞
258
-
259
- ### 黑暗奇幻
260
- - 道德灰色
261
- - 恐怖和暴力元素
262
- - 反英雄主角
263
- - 更严酷的后果
264
-
265
- ## 与 Novel-Writer 命令集成
266
-
267
- ### 当 `/specify` 执行时
268
- - 定义核心世界元素(魔法、种族、地理)
269
- - 识别奇幻子类型
270
- - 列出必须建立的主要规则
271
- - 计划信息揭示的节奏
272
-
273
- ### 在 `/plan` 期间
274
- - 绘制世界元素如何影响情节
275
- - 计划魔法系统的展示
276
- - 设计不同文化的碰撞
277
- - 确保世界规则的一致性
278
-
279
- ### 在 `/write` 时
280
- - 在行动中展示世界,而非倾倒
281
- - 让角色对世界元素做出反应
282
- - 使用感官细节使世界生动
283
- - 保持已建立规则的一致性
284
-
285
- ### 在 `/analyze` 期间
286
- - 检查世界规则的一致性
287
- - 验证魔法系统的逻辑
288
- - 确认所有世界元素都有目的
289
- - 确保设定服务于故事
290
-
291
- ## 世界构建检查清单
292
-
293
- - [ ] 魔法系统有清晰的规则和限制
294
- - [ ] 地理和气候影响文化和情节
295
- - [ ] 至少三代历史深度
296
- - [ ] 多个政治势力有清晰动机
297
- - [ ] 经济和贸易有逻辑基础
298
- - [ ] 种族/文化有内部多样性
299
- - [ ] 魔法生物有生态位和目的
300
- - [ ] 宗教/信仰系统有影响
301
- - [ ] 社会结构有明确阶级和流动性
302
- - [ ] 所有规则在整个故事中保持一致
303
-
304
- ## 信息揭示策略
305
-
306
- ### 冰山原则
307
-
308
- **创造的 vs 展示的**:
309
- - 创造 100%,但只展示 10-20%
310
- - 读者不需要知道所有东西
311
- - 深度创造自信和一致性
312
- - 作者知道的比展示的多
313
-
314
- ### 展示时机
315
-
316
- **第一章**:
317
- - 基本世界观(不是详尽说明)
318
- - 一个引人注目的魔法/奇幻元素
319
- - 主角在世界中的位置
320
-
321
- **前 25%**:
322
- - 核心魔法系统规则
323
- - 主要种族/文化
324
- - 中心冲突及其世界根源
325
-
326
- **中段**:
327
- - 深化已建立元素
328
- - 复杂化世界政治
329
- - 揭示历史影响
330
-
331
- **后段**:
332
- - 连接所有世界线索
333
- - 揭示深层历史
334
- - 展示世界元素如何解决冲突
335
-
336
- ## 读者期望
337
-
338
- **奇幻读者想要什么**:
339
- - 沉浸式、可信的世界
340
- - 一致且有趣的魔法系统
341
- - 复杂的文化和政治
342
- - 对经典陷阱的新鲜视角
343
- - 世界感觉比故事更大
344
-
345
- **让奇幻读者沮丧的是什么**:
346
- - 不一致的世界规则
347
- - 方便情节的魔法
348
- - 单薄的欧洲中世纪抄袭
349
- - 缺乏深度的世界
350
- - 信息倾倒而非有机揭示
351
-
352
- ---
353
-
354
- **记住**:伟大的世界构建是故事的基础,而非目的。世界应该服务于角色和情节,而角色的行动应该受到世界规则的塑造和限制。平衡深度与叙事流畅性是关键。
355
-