novelws 1.2.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 (320) hide show
  1. package/CHANGELOG.md +161 -0
  2. package/LICENSE +22 -0
  3. package/README.md +372 -0
  4. package/dist/cli.d.ts +3 -0
  5. package/dist/cli.d.ts.map +1 -0
  6. package/dist/cli.js +50 -0
  7. package/dist/cli.js.map +1 -0
  8. package/dist/commands/check.d.ts +6 -0
  9. package/dist/commands/check.d.ts.map +1 -0
  10. package/dist/commands/check.js +32 -0
  11. package/dist/commands/check.js.map +1 -0
  12. package/dist/commands/init.d.ts +6 -0
  13. package/dist/commands/init.d.ts.map +1 -0
  14. package/dist/commands/init.js +160 -0
  15. package/dist/commands/init.js.map +1 -0
  16. package/dist/commands/plugin.d.ts +6 -0
  17. package/dist/commands/plugin.d.ts.map +1 -0
  18. package/dist/commands/plugin.js +135 -0
  19. package/dist/commands/plugin.js.map +1 -0
  20. package/dist/commands/upgrade.d.ts +6 -0
  21. package/dist/commands/upgrade.d.ts.map +1 -0
  22. package/dist/commands/upgrade.js +92 -0
  23. package/dist/commands/upgrade.js.map +1 -0
  24. package/dist/core/config.d.ts +72 -0
  25. package/dist/core/config.d.ts.map +1 -0
  26. package/dist/core/config.js +136 -0
  27. package/dist/core/config.js.map +1 -0
  28. package/dist/core/errors.d.ts +59 -0
  29. package/dist/core/errors.d.ts.map +1 -0
  30. package/dist/core/errors.js +125 -0
  31. package/dist/core/errors.js.map +1 -0
  32. package/dist/core/platform.d.ts +27 -0
  33. package/dist/core/platform.d.ts.map +1 -0
  34. package/dist/core/platform.js +75 -0
  35. package/dist/core/platform.js.map +1 -0
  36. package/dist/core/template.d.ts +35 -0
  37. package/dist/core/template.d.ts.map +1 -0
  38. package/dist/core/template.js +94 -0
  39. package/dist/core/template.js.map +1 -0
  40. package/dist/plugins/identifier.d.ts +13 -0
  41. package/dist/plugins/identifier.d.ts.map +1 -0
  42. package/dist/plugins/identifier.js +72 -0
  43. package/dist/plugins/identifier.js.map +1 -0
  44. package/dist/plugins/installers/base.d.ts +27 -0
  45. package/dist/plugins/installers/base.d.ts.map +1 -0
  46. package/dist/plugins/installers/base.js +30 -0
  47. package/dist/plugins/installers/base.js.map +1 -0
  48. package/dist/plugins/installers/github.d.ts +22 -0
  49. package/dist/plugins/installers/github.d.ts.map +1 -0
  50. package/dist/plugins/installers/github.js +133 -0
  51. package/dist/plugins/installers/github.js.map +1 -0
  52. package/dist/plugins/installers/local.d.ts +16 -0
  53. package/dist/plugins/installers/local.d.ts.map +1 -0
  54. package/dist/plugins/installers/local.js +69 -0
  55. package/dist/plugins/installers/local.js.map +1 -0
  56. package/dist/plugins/installers/npm.d.ts +20 -0
  57. package/dist/plugins/installers/npm.d.ts.map +1 -0
  58. package/dist/plugins/installers/npm.js +99 -0
  59. package/dist/plugins/installers/npm.js.map +1 -0
  60. package/dist/plugins/manager.d.ts +77 -0
  61. package/dist/plugins/manager.d.ts.map +1 -0
  62. package/dist/plugins/manager.js +349 -0
  63. package/dist/plugins/manager.js.map +1 -0
  64. package/dist/plugins/registry.d.ts +48 -0
  65. package/dist/plugins/registry.d.ts.map +1 -0
  66. package/dist/plugins/registry.js +111 -0
  67. package/dist/plugins/registry.js.map +1 -0
  68. package/dist/plugins/types.d.ts +66 -0
  69. package/dist/plugins/types.d.ts.map +1 -0
  70. package/dist/plugins/types.js +2 -0
  71. package/dist/plugins/types.js.map +1 -0
  72. package/dist/plugins/validator.d.ts +19 -0
  73. package/dist/plugins/validator.d.ts.map +1 -0
  74. package/dist/plugins/validator.js +164 -0
  75. package/dist/plugins/validator.js.map +1 -0
  76. package/dist/utils/logger.d.ts +13 -0
  77. package/dist/utils/logger.d.ts.map +1 -0
  78. package/dist/utils/logger.js +48 -0
  79. package/dist/utils/logger.js.map +1 -0
  80. package/dist/utils/project.d.ts +24 -0
  81. package/dist/utils/project.d.ts.map +1 -0
  82. package/dist/utils/project.js +61 -0
  83. package/dist/utils/project.js.map +1 -0
  84. package/dist/version.d.ts +3 -0
  85. package/dist/version.d.ts.map +1 -0
  86. package/dist/version.js +21 -0
  87. package/dist/version.js.map +1 -0
  88. package/package.json +76 -0
  89. package/plugins/authentic-voice/README.md +31 -0
  90. package/plugins/authentic-voice/commands/authentic-voice.md +73 -0
  91. package/plugins/authentic-voice/commands/authenticity-audit.md +37 -0
  92. package/plugins/authentic-voice/config.yaml +30 -0
  93. package/plugins/authentic-voice/experts/authentic-editor.md +27 -0
  94. package/plugins/export/README.md +319 -0
  95. package/plugins/export/commands/export.md +460 -0
  96. package/plugins/export/commands/generate-cover.md +256 -0
  97. package/plugins/export/commands/metadata.md +309 -0
  98. package/plugins/export/config.yaml +47 -0
  99. package/plugins/export/experts/publishing-expert.md +171 -0
  100. package/plugins/export/templates/epub/chapter-template.html +13 -0
  101. package/plugins/export/templates/epub/cover-template.html +14 -0
  102. package/plugins/export/templates/epub/stylesheet.css +200 -0
  103. package/plugins/export/templates/pdf/ebook-style.css +137 -0
  104. package/plugins/export/templates/pdf/print-style.css +179 -0
  105. package/plugins/export/templates/platforms/jinjiang-format.md +101 -0
  106. package/plugins/export/templates/platforms/qidian-format.md +108 -0
  107. package/plugins/export/templates/platforms/tomato-format.md +95 -0
  108. package/plugins/translate/README.md +265 -0
  109. package/plugins/translate/commands/glossary.md +731 -0
  110. package/plugins/translate/commands/translate-preview.md +543 -0
  111. package/plugins/translate/commands/translate.md +649 -0
  112. package/plugins/translate/config.yaml +43 -0
  113. package/plugins/translate/experts/literary-translator.md +605 -0
  114. package/templates/commands/analyze.md +1485 -0
  115. package/templates/commands/checklist.md +434 -0
  116. package/templates/commands/clarify.md +257 -0
  117. package/templates/commands/constitution.md +257 -0
  118. package/templates/commands/expert.md +136 -0
  119. package/templates/commands/plan.md +749 -0
  120. package/templates/commands/recap.md +613 -0
  121. package/templates/commands/relations.md +96 -0
  122. package/templates/commands/revise.md +341 -0
  123. package/templates/commands/specify.md +682 -0
  124. package/templates/commands/tasks.md +142 -0
  125. package/templates/commands/timeline.md +73 -0
  126. package/templates/commands/track-init.md +137 -0
  127. package/templates/commands/track.md +463 -0
  128. package/templates/commands/write.md +1264 -0
  129. package/templates/config/keyword-mappings.json +106 -0
  130. package/templates/knowledge/audit-config.json +26 -0
  131. package/templates/knowledge/character-profiles.md +152 -0
  132. package/templates/knowledge/character-voices.md +137 -0
  133. package/templates/knowledge/locations.md +184 -0
  134. package/templates/knowledge/world-setting.md +121 -0
  135. package/templates/knowledge-base/README.md +285 -0
  136. package/templates/knowledge-base/character-archetypes/01-hero.md +233 -0
  137. package/templates/knowledge-base/character-archetypes/02-mentor.md +177 -0
  138. package/templates/knowledge-base/character-archetypes/03-shadow.md +221 -0
  139. package/templates/knowledge-base/character-archetypes/04-ally.md +178 -0
  140. package/templates/knowledge-base/character-archetypes/05-shapeshifter.md +177 -0
  141. package/templates/knowledge-base/character-archetypes/06-trickster.md +181 -0
  142. package/templates/knowledge-base/character-archetypes/07-threshold-guardian.md +177 -0
  143. package/templates/knowledge-base/character-archetypes/08-herald.md +180 -0
  144. package/templates/knowledge-base/character-archetypes/09-father.md +249 -0
  145. package/templates/knowledge-base/character-archetypes/10-mother.md +202 -0
  146. package/templates/knowledge-base/character-archetypes/11-child.md +183 -0
  147. package/templates/knowledge-base/character-archetypes/12-sage.md +202 -0
  148. package/templates/knowledge-base/character-archetypes/README.md +60 -0
  149. package/templates/knowledge-base/character-archetypes/application-guide.md +222 -0
  150. package/templates/knowledge-base/character-archetypes/archetype-combinations.md +242 -0
  151. package/templates/knowledge-base/character-archetypes/config.yaml +28 -0
  152. package/templates/knowledge-base/character-archetypes/examples-analysis.md +223 -0
  153. package/templates/knowledge-base/craft/character-arc.md +1153 -0
  154. package/templates/knowledge-base/craft/dialogue.md +1170 -0
  155. package/templates/knowledge-base/craft/pacing.md +1200 -0
  156. package/templates/knowledge-base/craft/scene-structure.md +1136 -0
  157. package/templates/knowledge-base/craft/show-not-tell.md +1012 -0
  158. package/templates/knowledge-base/emotional-beats/01-first-meeting.md +145 -0
  159. package/templates/knowledge-base/emotional-beats/02-bonding-moment.md +226 -0
  160. package/templates/knowledge-base/emotional-beats/03-declaration.md +284 -0
  161. package/templates/knowledge-base/emotional-beats/04-triumph.md +240 -0
  162. package/templates/knowledge-base/emotional-beats/05-reunion.md +396 -0
  163. package/templates/knowledge-base/emotional-beats/06-forgiveness.md +204 -0
  164. package/templates/knowledge-base/emotional-beats/07-betrayal.md +204 -0
  165. package/templates/knowledge-base/emotional-beats/08-loss.md +214 -0
  166. package/templates/knowledge-base/emotional-beats/09-rejection.md +254 -0
  167. package/templates/knowledge-base/emotional-beats/10-failure.md +244 -0
  168. package/templates/knowledge-base/emotional-beats/11-misunderstanding.md +205 -0
  169. package/templates/knowledge-base/emotional-beats/12-farewell.md +283 -0
  170. package/templates/knowledge-base/emotional-beats/13-revelation.md +242 -0
  171. package/templates/knowledge-base/emotional-beats/14-point-of-no-return.md +215 -0
  172. package/templates/knowledge-base/emotional-beats/15-dark-night.md +244 -0
  173. package/templates/knowledge-base/emotional-beats/16-sacrifice.md +246 -0
  174. package/templates/knowledge-base/emotional-beats/17-awakening.md +246 -0
  175. package/templates/knowledge-base/emotional-beats/18-confrontation.md +217 -0
  176. package/templates/knowledge-base/emotional-beats/19-bittersweet-goodbye.md +368 -0
  177. package/templates/knowledge-base/emotional-beats/20-moral-dilemma.md +248 -0
  178. package/templates/knowledge-base/emotional-beats/21-temptation.md +240 -0
  179. package/templates/knowledge-base/emotional-beats/22-redemption.md +210 -0
  180. package/templates/knowledge-base/emotional-beats/README.md +104 -0
  181. package/templates/knowledge-base/emotional-beats/beat-sequences.md +276 -0
  182. package/templates/knowledge-base/emotional-beats/config.yaml +30 -0
  183. package/templates/knowledge-base/emotional-beats/pacing-guide.md +390 -0
  184. package/templates/knowledge-base/genres/historical.md +1127 -0
  185. package/templates/knowledge-base/genres/mystery.md +1123 -0
  186. package/templates/knowledge-base/genres/revenge.md +846 -0
  187. package/templates/knowledge-base/genres/romance.md +948 -0
  188. package/templates/knowledge-base/genres/sci-fi.md +156 -0
  189. package/templates/knowledge-base/genres/thriller.md +166 -0
  190. package/templates/knowledge-base/genres/wuxia.md +143 -0
  191. package/templates/knowledge-base/references/README.md +96 -0
  192. package/templates/knowledge-base/references/china-1920s/culture.md +423 -0
  193. package/templates/knowledge-base/references/china-1920s/daily-life.md +616 -0
  194. package/templates/knowledge-base/references/china-1920s/overview.md +298 -0
  195. package/templates/knowledge-base/references/china-1920s/society.md +703 -0
  196. package/templates/knowledge-base/references/china-1920s/warlords.md +427 -0
  197. package/templates/knowledge-base/references/cultivation-world/daily-life.md +108 -0
  198. package/templates/knowledge-base/references/cultivation-world/overview.md +64 -0
  199. package/templates/knowledge-base/references/cultivation-world/power-system.md +108 -0
  200. package/templates/knowledge-base/references/cultivation-world/sects.md +104 -0
  201. package/templates/knowledge-base/references/cultivation-world/world-setting.md +108 -0
  202. package/templates/knowledge-base/references/modern-workplace/corporate.md +115 -0
  203. package/templates/knowledge-base/references/modern-workplace/daily-life.md +129 -0
  204. package/templates/knowledge-base/references/modern-workplace/overview.md +73 -0
  205. package/templates/knowledge-base/references/modern-workplace/relationships.md +107 -0
  206. package/templates/knowledge-base/references/modern-workplace/tech-industry.md +131 -0
  207. package/templates/knowledge-base/references/tang-dynasty/culture.md +135 -0
  208. package/templates/knowledge-base/references/tang-dynasty/daily-life.md +139 -0
  209. package/templates/knowledge-base/references/tang-dynasty/overview.md +76 -0
  210. package/templates/knowledge-base/references/tang-dynasty/politics.md +121 -0
  211. package/templates/knowledge-base/references/tang-dynasty/society.md +126 -0
  212. package/templates/knowledge-base/requirements/README.md +240 -0
  213. package/templates/knowledge-base/requirements/anti-ai-v3.md +46 -0
  214. package/templates/knowledge-base/requirements/anti-ai-v4.md +430 -0
  215. package/templates/knowledge-base/requirements/fast-paced.md +552 -0
  216. package/templates/knowledge-base/requirements/no-poison.md +60 -0
  217. package/templates/knowledge-base/requirements/romance-angst.md +102 -0
  218. package/templates/knowledge-base/requirements/romance-sweet.md +63 -0
  219. package/templates/knowledge-base/requirements/serious-literature.md +45 -0
  220. package/templates/knowledge-base/requirements/strong-emotion.md +60 -0
  221. package/templates/knowledge-base/styles/README.md +302 -0
  222. package/templates/knowledge-base/styles/ancient-style.md +579 -0
  223. package/templates/knowledge-base/styles/literary.md +439 -0
  224. package/templates/knowledge-base/styles/minimal.md +472 -0
  225. package/templates/knowledge-base/styles/natural-voice.md +930 -0
  226. package/templates/knowledge-base/styles/web-novel.md +525 -0
  227. package/templates/memory/constitution.md +140 -0
  228. package/templates/memory/personal-voice.md +113 -0
  229. package/templates/scripts/README.md +187 -0
  230. package/templates/scripts/bash/analyze-story.sh +170 -0
  231. package/templates/scripts/bash/check-consistency.sh +463 -0
  232. package/templates/scripts/bash/check-plot.sh +374 -0
  233. package/templates/scripts/bash/check-timeline.sh +346 -0
  234. package/templates/scripts/bash/check-world.sh +395 -0
  235. package/templates/scripts/bash/check-writing-state.sh +854 -0
  236. package/templates/scripts/bash/clarify-story.sh +117 -0
  237. package/templates/scripts/bash/common.sh +151 -0
  238. package/templates/scripts/bash/constitution.sh +114 -0
  239. package/templates/scripts/bash/generate-tasks.sh +65 -0
  240. package/templates/scripts/bash/init-tracking.sh +183 -0
  241. package/templates/scripts/bash/manage-relations.sh +174 -0
  242. package/templates/scripts/bash/plan-story.sh +100 -0
  243. package/templates/scripts/bash/specify-story.sh +93 -0
  244. package/templates/scripts/bash/tasks-story.sh +96 -0
  245. package/templates/scripts/bash/test-word-count.sh +182 -0
  246. package/templates/scripts/bash/tests/bench-preload-cache.sh +100 -0
  247. package/templates/scripts/bash/tests/run-all-benchmarks.sh +16 -0
  248. package/templates/scripts/bash/tests/test-cache-semantics.sh +199 -0
  249. package/templates/scripts/bash/tests/test-cross-platform.sh +35 -0
  250. package/templates/scripts/bash/tests/test-edge-cases-bash.sh +60 -0
  251. package/templates/scripts/bash/tests/test-phase1-bash.sh +28 -0
  252. package/templates/scripts/bash/tests/test-preload-cache.sh +123 -0
  253. package/templates/scripts/bash/tests/test-regex-precompile.sh +89 -0
  254. package/templates/scripts/bash/tests/test-regression-bash.sh +42 -0
  255. package/templates/scripts/bash/tests/test-task6-verification.sh +200 -0
  256. package/templates/scripts/bash/text-audit.sh +144 -0
  257. package/templates/scripts/bash/track-progress.sh +194 -0
  258. package/templates/scripts/powershell/analyze-story.ps1 +171 -0
  259. package/templates/scripts/powershell/check-analyze-stage.ps1 +110 -0
  260. package/templates/scripts/powershell/check-consistency.ps1 +138 -0
  261. package/templates/scripts/powershell/check-plot.ps1 +139 -0
  262. package/templates/scripts/powershell/check-timeline.ps1 +112 -0
  263. package/templates/scripts/powershell/check-writing-state.ps1 +490 -0
  264. package/templates/scripts/powershell/check-writing-state.ps1.backup +135 -0
  265. package/templates/scripts/powershell/clarify-story.ps1 +107 -0
  266. package/templates/scripts/powershell/common.ps1 +36 -0
  267. package/templates/scripts/powershell/constitution.ps1 +142 -0
  268. package/templates/scripts/powershell/generate-tasks.ps1 +75 -0
  269. package/templates/scripts/powershell/init-tracking.ps1 +98 -0
  270. package/templates/scripts/powershell/manage-relations.ps1 +134 -0
  271. package/templates/scripts/powershell/plan-story.ps1 +96 -0
  272. package/templates/scripts/powershell/specify-story.ps1 +82 -0
  273. package/templates/scripts/powershell/tests/bench-ps-cache.ps1 +80 -0
  274. package/templates/scripts/powershell/tests/test-cross-platform.ps1 +27 -0
  275. package/templates/scripts/powershell/tests/test-edge-cases-ps.ps1 +29 -0
  276. package/templates/scripts/powershell/tests/test-phase1-ps.ps1 +28 -0
  277. package/templates/scripts/powershell/tests/test-ps-cache.ps1 +73 -0
  278. package/templates/scripts/powershell/tests/test-regression-ps.ps1 +40 -0
  279. package/templates/scripts/powershell/text-audit.ps1 +100 -0
  280. package/templates/scripts/powershell/track-progress.ps1 +105 -0
  281. package/templates/skills/genre-knowledge/fantasy/SKILL.md +355 -0
  282. package/templates/skills/genre-knowledge/mystery/SKILL.md +337 -0
  283. package/templates/skills/genre-knowledge/romance/SKILL.md +228 -0
  284. package/templates/skills/genre-knowledge/sci-fi/SKILL.md +65 -0
  285. package/templates/skills/genre-knowledge/thriller/SKILL.md +95 -0
  286. package/templates/skills/quality-assurance/consistency-checker/SKILL.md +341 -0
  287. package/templates/skills/quality-assurance/continuity-tracker/SKILL.md +157 -0
  288. package/templates/skills/quality-assurance/forgotten-elements/SKILL.md +147 -0
  289. package/templates/skills/quality-assurance/getting-started/SKILL.md +224 -0
  290. package/templates/skills/quality-assurance/pacing-monitor/SKILL.md +143 -0
  291. package/templates/skills/quality-assurance/pov-validator/SKILL.md +135 -0
  292. package/templates/skills/quality-assurance/pre-write-checklist/SKILL.md +583 -0
  293. package/templates/skills/quality-assurance/requirement-detector/CONFLICT_RESOLUTION.md +119 -0
  294. package/templates/skills/quality-assurance/requirement-detector/EXAMPLES.md +146 -0
  295. package/templates/skills/quality-assurance/requirement-detector/KEYWORDS.md +160 -0
  296. package/templates/skills/quality-assurance/requirement-detector/SKILL.md +149 -0
  297. package/templates/skills/quality-assurance/setting-detector/SKILL.md +611 -0
  298. package/templates/skills/quality-assurance/style-detector/CONFLICT_RESOLUTION.md +126 -0
  299. package/templates/skills/quality-assurance/style-detector/EXAMPLES.md +206 -0
  300. package/templates/skills/quality-assurance/style-detector/KEYWORDS.md +207 -0
  301. package/templates/skills/quality-assurance/style-detector/SKILL.md +126 -0
  302. package/templates/skills/quality-assurance/workflow-guide/SKILL.md +381 -0
  303. package/templates/skills/writing-techniques/character-arc/SKILL.md +267 -0
  304. package/templates/skills/writing-techniques/dialogue-techniques/SKILL.md +366 -0
  305. package/templates/skills/writing-techniques/multi-thread-narrative/SKILL.md +553 -0
  306. package/templates/skills/writing-techniques/multi-thread-narrative/experts/thread-analyst.md +226 -0
  307. package/templates/skills/writing-techniques/pacing-control/SKILL.md +377 -0
  308. package/templates/skills/writing-techniques/reader-expectation/SKILL.md +578 -0
  309. package/templates/skills/writing-techniques/reader-expectation/experts/expectation-analyst.md +209 -0
  310. package/templates/skills/writing-techniques/revision-polish/SKILL.md +496 -0
  311. package/templates/skills/writing-techniques/revision-polish/experts/revision-editor.md +221 -0
  312. package/templates/skills/writing-techniques/scene-structure/SKILL.md +361 -0
  313. package/templates/skills/writing-techniques/style-learning/SKILL.md +436 -0
  314. package/templates/specification-example.md +146 -0
  315. package/templates/tracking/character-state.json +78 -0
  316. package/templates/tracking/plot-tracker.json +62 -0
  317. package/templates/tracking/relationships.json +70 -0
  318. package/templates/tracking/timeline.json +49 -0
  319. package/templates/tracking/tracking-log.md +110 -0
  320. package/templates/tracking/validation-rules.json +128 -0
@@ -0,0 +1,142 @@
1
+ ---
2
+ description: 将创作计划分解为可执行的任务清单
3
+ allowed-tools: Read(//stories/**/creative-plan.md), Read(stories/**/creative-plan.md), Read(//stories/**/specification.md), Read(stories/**/specification.md), Write(//stories/**/tasks.md), Write(stories/**/tasks.md), Bash(find:*), Bash(*)
4
+ model: claude-sonnet-4-5-20250929
5
+ scripts:
6
+ sh: .specify/scripts/bash/tasks-story.sh
7
+ ps: .specify/scripts/powershell/generate-tasks.ps1
8
+ ---
9
+
10
+ 基于创作计划生成具体的、可执行的任务列表。
11
+
12
+ ## 资源加载(可选)
13
+
14
+ 本命令用于管理创作任务,默认不加载额外资源。
15
+
16
+ ### 可选配置
17
+
18
+ 如果需要在任务规划时参考写作技巧:
19
+
20
+ ```yaml
21
+ resource-loading:
22
+ tasks:
23
+ knowledge-base:
24
+ craft:
25
+ - scene-structure # 场景结构规划
26
+ - pacing # 节奏规划
27
+ ```
28
+
29
+ **推荐资源**: scene-structure.md, pacing.md(辅助任务规划)
30
+
31
+ ## 目标
32
+
33
+ 将宏观计划转化为微观任务,让创作变得可管理、可追踪。
34
+
35
+ ## 执行步骤
36
+
37
+ ### 1. 加载计划文档
38
+
39
+ 运行 `{SCRIPT}` 加载:
40
+ - 创作计划:`stories/*/creative-plan.md`
41
+ - 章节架构信息
42
+ - 时间线和依赖关系
43
+
44
+ ### 2. 生成任务列表
45
+
46
+ 创建 `stories/*/tasks.md`,包含:
47
+
48
+ #### 核心写作任务
49
+
50
+ **重要**:从specification.md第五章和creative-plan.md的线索分布,为每个写作任务标注涉及线索。
51
+
52
+ ```markdown
53
+ ## 写作任务
54
+
55
+ ### 高优先级 [必须首先完成]
56
+
57
+ - [ ] [P0] **T001** - 第1章:[章节标题] (目标字数)
58
+ - **核心任务**:[本章的主要任务]
59
+ - **关键情节**:[具体情节点]
60
+ - **涉及线索**:
61
+ - PL-XX([线索名称]) ⭐⭐⭐ 主推进
62
+ - PL-YY([线索名称]) ⭐ 背景
63
+ - **交汇点**:[如适用] X-001([交汇点描述])
64
+ - **伏笔埋设/揭晓**:[如适用] F-001埋设 / F-002揭晓
65
+ - **必须包含**:[关键元素列表]
66
+ - **章末钩子**:[悬念设置]
67
+ - **依赖**:无
68
+ - **输出**:`content/volume1/chapter-001.md`
69
+
70
+ - [ ] [P0] **T002** - 角色档案:主角详细设定
71
+ - **核心任务**:完善主角设定
72
+ - **必须包含**:性格、背景、能力、欲望、恐惧、成长弧线
73
+ - **依赖**:无
74
+ - **输出**:`characters/protagonist.md`
75
+
76
+ ### 中优先级 [正常推进]
77
+
78
+ - [ ] [P1] **T005** - 第5章:[章节标题] (目标字数)
79
+ - **核心任务**:[本章主要任务]
80
+ - **关键情节**:[具体情节]
81
+ - **涉及线索**:
82
+ - PL-01([线索名]) ⭐⭐⭐ 主推进
83
+ - PL-02([线索名]) ⭐⭐ 辅助
84
+ - **交汇点**:无
85
+ - **伏笔埋设/揭晓**:F-001埋设([伏笔内容])
86
+ - **必须包含**:[关键元素]
87
+ - **章末钩子**:[悬念]
88
+ - **依赖**:T004(第4章)
89
+ - **输出**:`content/volume1/chapter-005.md`
90
+
91
+ ### 低优先级 [可选完善]
92
+
93
+ - [ ] [P2] 番外:角色前传
94
+ - [ ] [P2] 设定集:详细世界观
95
+ ```
96
+
97
+ **任务字段说明**:
98
+ - **涉及线索**:从creative-plan.md的"活跃线索"列读取,标明本章推进哪些线索
99
+ - **交汇点**:从specification.md 5.3节读取,标明本章是否为交汇点
100
+ - **伏笔埋设/揭晓**:从specification.md 5.4节读取,标明本章涉及的伏笔操作
101
+
102
+ #### 任务标记说明
103
+ - `[P]` - 可并行执行
104
+ - `[依赖:X]` - 需要先完成任务X
105
+ - `[P0/P1/P2]` - 优先级标记
106
+
107
+ ### 3. 任务排序和分组
108
+
109
+ - 按优先级分组
110
+ - 识别依赖关系
111
+ - 标记可并行任务
112
+ - 估算完成时间
113
+
114
+ ### 4. 生成执行计划
115
+
116
+ ```markdown
117
+ ## 执行计划
118
+
119
+ ### 第一阶段(第1周)
120
+ 并行任务组1:
121
+ - 主角设定 [P]
122
+ - 世界观基础 [P]
123
+ - 第1章草稿 [P]
124
+
125
+ ### 第二阶段(第2-3周)
126
+ 串行任务:
127
+ - 第2章 [依赖:第1章]
128
+ - 第3章 [依赖:第2章]
129
+
130
+ 并行任务组2:
131
+ - 配角设定 [P]
132
+ - 场景设计 [P]
133
+ ```
134
+
135
+ ### 5. 输出任务统计
136
+
137
+ - 总任务数
138
+ - 预计总字数
139
+ - 预计完成时间
140
+ - 关键里程碑
141
+
142
+ 提示下一步:开始执行 `/write` 或查看特定任务详情。
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: timeline
3
+ description: 管理和验证故事时间线
4
+ argument-hint: [add | check | show | sync]
5
+ allowed-tools: Read(//spec/tracking/timeline.json), Read(spec/tracking/timeline.json), Write(//spec/tracking/timeline.json), Write(spec/tracking/timeline.json), Read(//stories/**/content/**), Read(stories/**/content/**), Bash(find:*), Bash(*)
6
+ model: claude-sonnet-4-5-20250929
7
+ scripts:
8
+ sh: .specify/scripts/bash/check-timeline.sh
9
+ ps: .specify/scripts/powershell/check-timeline.ps1
10
+ ---
11
+
12
+ # 时间线管理
13
+
14
+ 维护故事的时间轴,确保时间逻辑的一致性。
15
+
16
+ ## 资源加载(可选)
17
+
18
+ 本命令用于管理故事时间线,默认读取 `tracking/timeline.json`。
19
+
20
+ ### 可选配置
21
+
22
+ ```yaml
23
+ resource-loading:
24
+ timeline:
25
+ knowledge-base:
26
+ craft:
27
+ - pacing # 时间节奏控制
28
+ skills:
29
+ quality-assurance:
30
+ - consistency-checker # 时间线一致性检查
31
+ ```
32
+
33
+ **推荐资源**: pacing.md(时间节奏控制)
34
+
35
+ ## 功能
36
+
37
+ 1. **时间记录** - 追踪每个章节的时间点
38
+ 2. **并行事件** - 管理同时发生的多线剧情
39
+ 3. **历史对照** - 与真实历史事件对比(历史小说)
40
+ 4. **逻辑验证** - 检查时间跨度的合理性
41
+
42
+ ## 使用方法
43
+
44
+ 执行脚本 {SCRIPT},支持以下操作:
45
+ - `add` - 添加时间节点
46
+ - `check` - 验证时间连续性
47
+ - `show` - 显示时间线概览
48
+ - `sync` - 同步并行事件
49
+
50
+ ## 时间线数据
51
+
52
+ 时间线信息存储在 `spec/tracking/timeline.json` 中:
53
+ - 故事内时间(年/月/日)
54
+ - 章节对应关系
55
+ - 重要事件标记
56
+ - 时间跨度计算
57
+
58
+ ## 示例输出
59
+
60
+ ```
61
+ 📅 故事时间线
62
+ ━━━━━━━━━━━━━━━━━━━━
63
+ 当前时间:万历三十年春
64
+
65
+ 第1章 | 万历二十九年冬月 | 穿越事件
66
+ 第4章 | 万历三十年正月 | 北上赴考
67
+ 第6章 | 万历三十年二月 | 会试
68
+ 第8章 | 万历三十年三月 | 殿试
69
+ 第61章 | 万历三十年四月 | [待写]
70
+
71
+ ⏱️ 时间跨度:5个月
72
+ 🔄 并行事件:日本入侵朝鲜
73
+ ```
@@ -0,0 +1,137 @@
1
+ ---
2
+ name: track-init
3
+ description: 初始化追踪系统,基于故事大纲设置追踪数据
4
+ allowed-tools: Read(//stories/**/specification.md), Read(stories/**/specification.md), Read(//stories/**/outline.md), Read(stories/**/outline.md), Read(//stories/**/creative-plan.md), Read(stories/**/creative-plan.md), Write(//spec/tracking/**), Write(spec/tracking/**), Bash(find:*), Bash(grep:*), Bash(wc:*), Bash(*)
5
+ model: claude-sonnet-4-5-20250929
6
+ scripts:
7
+ sh: .specify/scripts/bash/init-tracking.sh
8
+ ps: .specify/scripts/powershell/init-tracking.ps1
9
+ ---
10
+
11
+ # 初始化追踪系统
12
+
13
+ 基于已创建的故事大纲和章节规划,初始化所有追踪数据文件。
14
+
15
+ ## 资源加载(可选)
16
+
17
+ 本命令用于初始化 tracking 系统,默认不加载额外资源。
18
+
19
+ ### 可选配置
20
+
21
+ 初始化时可参考项目类型的默认追踪配置:
22
+
23
+ ```yaml
24
+ resource-loading:
25
+ track-init:
26
+ knowledge-base:
27
+ genres:
28
+ - romance # 类型默认配置
29
+ ```
30
+
31
+ **推荐资源**: genres/*(获取类型默认配置)
32
+
33
+ ## 使用时机
34
+
35
+ 在完成 `/story` 和 `/outline` 之后,开始写作之前执行此命令。
36
+
37
+ ## 初始化流程
38
+
39
+ 1. **读取基础数据**
40
+ - 读取 `stories/*/story.md` 获取故事设定
41
+ - 读取 `stories/*/outline.md` 获取章节规划
42
+ - 读取 `.specify/config.json` 获取写作方法
43
+
44
+ 2. **初始化追踪文件**
45
+
46
+ **重要**:优先从 `specification.md` 第五章读取线索管理规格,填充到追踪文件。
47
+
48
+ 创建或更新 `spec/tracking/plot-tracker.json`:
49
+ - 从 `specification.md 5.1节` 读取所有线索定义
50
+ - 从 `specification.md 5.3节` 读取所有交汇点
51
+ - 从 `specification.md 5.4节` 读取所有伏笔
52
+ - 从 `creative-plan.md` 读取章节段的线索分布
53
+ - 设置当前状态(假设尚未开始写作)
54
+
55
+ **plot-tracker.json 结构**:
56
+ ```json
57
+ {
58
+ "novel": "[从specification.md读取故事名称]",
59
+ "lastUpdated": "[YYYY-MM-DD]",
60
+ "currentState": {
61
+ "chapter": 0,
62
+ "volume": 1,
63
+ "mainPlotStage": "[初始阶段]"
64
+ },
65
+ "plotlines": {
66
+ "main": {
67
+ "name": "[主线名称]",
68
+ "status": "active",
69
+ "currentNode": "[起点]",
70
+ "completedNodes": [],
71
+ "upcomingNodes": "[从交汇点和章节规划读取]"
72
+ },
73
+ "subplots": [
74
+ {
75
+ "id": "[从5.1读取,如PL-01]",
76
+ "name": "[线索名称]",
77
+ "type": "[主线/支线/主线支撑]",
78
+ "priority": "[P0/P1/P2]",
79
+ "status": "[active/dormant]",
80
+ "plannedStart": "[起始章节]",
81
+ "plannedEnd": "[结束章节]",
82
+ "currentNode": "[当前节点]",
83
+ "completedNodes": [],
84
+ "upcomingNodes": "[从交汇点表读取]",
85
+ "intersectionsWith": "[从5.3交汇点表读取相关线索]",
86
+ "activeChapters": "[从5.2节奏规划读取]"
87
+ }
88
+ ]
89
+ },
90
+ "foreshadowing": [
91
+ {
92
+ "id": "[从5.4读取,如F-001]",
93
+ "content": "[伏笔内容]",
94
+ "planted": {"chapter": null, "description": "[埋设说明]"},
95
+ "hints": [],
96
+ "plannedReveal": {"chapter": "[揭晓章节]", "description": "[揭晓方式]"},
97
+ "status": "planned",
98
+ "importance": "[high/medium/low]",
99
+ "relatedPlotlines": "[涉及的线索ID列表]"
100
+ }
101
+ ],
102
+ "intersections": [
103
+ {
104
+ "id": "[从5.3读取,如X-001]",
105
+ "chapter": "[交汇章节]",
106
+ "plotlines": "[涉及的线索ID列表]",
107
+ "content": "[交汇内容]",
108
+ "status": "upcoming",
109
+ "impact": "[预期效果]"
110
+ }
111
+ ]
112
+ }
113
+ ```
114
+
115
+ 创建或更新 `spec/tracking/timeline.json`:
116
+ - 根据章节规划设置时间节点
117
+ - 标记重要时间事件
118
+
119
+ 创建或更新 `spec/tracking/relationships.json`:
120
+ - 从角色设定提取初始关系
121
+ - 设置派系分组
122
+
123
+ 创建或更新 `spec/tracking/character-state.json`:
124
+ - 初始化角色状态
125
+ - 设置起始位置
126
+
127
+ 3. **生成追踪报告**
128
+ 显示初始化结果,确认追踪系统就绪
129
+
130
+ ## 智能关联
131
+
132
+ - 根据写作方法自动设置检查点
133
+ - 英雄之旅:12个阶段的追踪点
134
+ - 三幕结构:三幕转折点
135
+ - 七点结构:7个关键节点
136
+
137
+ 追踪系统初始化后,后续写作会自动更新这些数据。