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,106 @@
1
+ {
2
+ "version": "1.1.0",
3
+ "description": "关键词触发机制的映射表(含预编译正则)",
4
+ "mappings": {
5
+ "craft-knowledge": {
6
+ "dialogue": {
7
+ "keywords": ["对话", "台词", "说话", "对白", "conversation", "dialogue"],
8
+ "regex": "对话|台词|说话|对白|conversation|dialogue",
9
+ "regex_flags": "i",
10
+ "resources": [
11
+ "templates/knowledge-base/craft/dialogue.md",
12
+ "templates/skills/writing-techniques/dialogue-techniques/SKILL.md"
13
+ ],
14
+ "priority": 1
15
+ },
16
+ "scene-structure": {
17
+ "keywords": ["场景", "镜头", "画面", "scene", "structure"],
18
+ "regex": "场景|镜头|画面|scene|structure",
19
+ "regex_flags": "i",
20
+ "resources": [
21
+ "templates/knowledge-base/craft/scene-structure.md",
22
+ "templates/skills/writing-techniques/scene-structure/SKILL.md"
23
+ ],
24
+ "priority": 1
25
+ },
26
+ "character-arc": {
27
+ "keywords": ["角色成长", "角色弧线", "弧线", "转变", "成长", "character arc", "transformation"],
28
+ "regex": "角色成长|角色弧线|弧线|转变|成长|character\\s*arc|transformation",
29
+ "regex_flags": "i",
30
+ "resources": [
31
+ "templates/knowledge-base/craft/character-arc.md",
32
+ "templates/skills/writing-techniques/character-arc/SKILL.md"
33
+ ],
34
+ "priority": 1
35
+ },
36
+ "pacing": {
37
+ "keywords": ["节奏", "拖沓", "太快", "太慢", "过快", "过慢", "pacing", "rhythm"],
38
+ "regex": "节奏|拖沓|太快|太慢|过快|过慢|pacing|rhythm",
39
+ "regex_flags": "i",
40
+ "resources": [
41
+ "templates/knowledge-base/craft/pacing.md",
42
+ "templates/skills/writing-techniques/pacing-control/SKILL.md"
43
+ ],
44
+ "priority": 1
45
+ },
46
+ "show-not-tell": {
47
+ "keywords": ["展示", "描写", "tell", "show", "showing", "telling"],
48
+ "regex": "展示|描写|tell|show|showing|telling",
49
+ "regex_flags": "i",
50
+ "resources": [
51
+ "templates/knowledge-base/craft/show-not-tell.md"
52
+ ],
53
+ "priority": 1
54
+ }
55
+ },
56
+ "genre-knowledge": {
57
+ "romance": {
58
+ "keywords": ["言情", "恋爱", "感情", "爱情", "romance", "love"],
59
+ "regex": "言情|恋爱|感情|爱情|romance|love",
60
+ "regex_flags": "i",
61
+ "resources": [
62
+ "templates/knowledge-base/genres/romance.md",
63
+ "templates/skills/genre-knowledge/romance/SKILL.md"
64
+ ],
65
+ "priority": 2
66
+ },
67
+ "mystery": {
68
+ "keywords": ["悬疑", "推理", "线索", "mystery", "detective", "clue"],
69
+ "regex": "悬疑|推理|线索|mystery|detective|clue",
70
+ "regex_flags": "i",
71
+ "resources": [
72
+ "templates/knowledge-base/genres/mystery.md",
73
+ "templates/skills/genre-knowledge/mystery/SKILL.md"
74
+ ],
75
+ "priority": 2
76
+ }
77
+ },
78
+ "quality-assurance": {
79
+ "consistency": {
80
+ "keywords": ["一致性", "矛盾", "冲突", "consistency", "contradiction"],
81
+ "regex": "一致性|矛盾|冲突|consistency|contradiction",
82
+ "regex_flags": "i",
83
+ "resources": [
84
+ "templates/skills/quality-assurance/consistency-checker/SKILL.md"
85
+ ],
86
+ "priority": 3
87
+ }
88
+ }
89
+ },
90
+ "regex-patterns": {
91
+ "dialogue": "对话|台词|说话|对白",
92
+ "scene": "场景|镜头|画面",
93
+ "character-arc": "角色成长|角色弧线|弧线|转变|成长",
94
+ "pacing": "节奏|拖沓|太快|太慢|过快|过慢",
95
+ "show-tell": "展示|描写|tell|show",
96
+ "romance": "言情|恋爱|感情|爱情",
97
+ "mystery": "悬疑|推理|线索",
98
+ "consistency": "一致性|矛盾|冲突"
99
+ },
100
+ "notes": {
101
+ "priority": "优先级数字越小越高(1 最高)",
102
+ "usage": "scripts/bash/check-writing-state.sh 会读取此文件",
103
+ "extensibility": "可通过 specification.md 的 resource-loading.keyword-triggers.custom-mappings 扩展",
104
+ "performance": "regex 字段为预编译正则表达式,脚本直接使用,避免运行时构建"
105
+ }
106
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "version": "1.0",
3
+ "connector_phrases": [
4
+ "首先", "其次", "再次", "然后", "然而", "总而言之", "综上所述",
5
+ "在某种程度", "众所周知", "在当下", "随着"
6
+ ],
7
+ "empty_phrases": [
8
+ "广泛关注", "引发热议", "影响深远", "具有重要意义", "有效提升",
9
+ "具有一定的指导意义", "值得我们思考"
10
+ ],
11
+ "cliche_pairs": [
12
+ ["世界上没有轻松的成功", "说具体一次你咬牙挺过去的时刻"],
13
+ ["坚持就是胜利", "写出坚持里最难熬的那个动作和气味"]
14
+ ],
15
+ "sentence_length": {
16
+ "max_run_long": 4,
17
+ "max_run_short": 5,
18
+ "short_threshold": 12,
19
+ "long_threshold": 35
20
+ },
21
+ "abstract_nouns": [
22
+ "价值", "意义", "认知", "体系", "模式", "路径", "方法论", "趋势"
23
+ ],
24
+ "min_concrete_details": 3
25
+ }
26
+
@@ -0,0 +1,152 @@
1
+ # 角色档案
2
+
3
+ ## 主角
4
+
5
+ ### [主角姓名]
6
+
7
+ #### 基本信息
8
+ - **年龄**:
9
+ - **性别**:
10
+ - **身份/职业**:
11
+ - **出身背景**:
12
+
13
+ #### 外貌特征
14
+ - **身高体型**:
15
+ - **相貌特点**:
16
+ - **穿着风格**:
17
+ - **特殊标记**:
18
+
19
+ #### 性格特征
20
+ - **核心性格**:
21
+ - **优点**:
22
+ - **缺点**:
23
+ - **行为习惯**:
24
+ - **说话方式**:
25
+
26
+ #### 能力设定
27
+ - **特殊能力**:
28
+ - **技能特长**:
29
+ - **战斗力**:
30
+ - **智力水平**:
31
+ - **弱点**:
32
+
33
+ #### 背景故事
34
+ [详细的人物背景]
35
+
36
+ **童年经历**:
37
+ **成长历程**:
38
+ **重要事件**:
39
+ **人生转折**:
40
+
41
+ #### 人物动机
42
+ - **核心追求**:
43
+ - **内心恐惧**:
44
+ - **价值观**:
45
+ - **人生目标**:
46
+
47
+ #### 成长规划
48
+ - **初期状态**:
49
+ - **中期发展**:
50
+ - **后期蜕变**:
51
+ - **最终形态**:
52
+
53
+ #### 人际关系
54
+ - **家人**:
55
+ - **朋友**:
56
+ - **敌人**:
57
+ - **爱人**:
58
+ - **导师**:
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
+ ## 次要角色
94
+
95
+ ### [角色组/势力]
96
+
97
+ #### 群体角色
98
+ - **所属组织**:
99
+ - **共同特征**:
100
+ - **代表人物**:
101
+
102
+ #### 功能角色
103
+ | 姓名 | 身份 | 作用 | 出场章节 | 备注 |
104
+ |------|------|------|----------|------|
105
+ | | | | | |
106
+ | | | | | |
107
+
108
+ ---
109
+
110
+ ## 角色关系图谱
111
+
112
+ ### 主要关系线
113
+ ```
114
+ [主角] ─── 爱慕 ──→ [角色A]
115
+ │ ↑
116
+ │ │敌对
117
+ ├── 师徒 ──→ [角色B]│
118
+ │ │
119
+ └── 对手 ←── [角色C]─┘
120
+ ```
121
+
122
+ ### 势力关系
123
+ - **正派阵营**:
124
+ - **反派阵营**:
125
+ - **中立势力**:
126
+
127
+ ## 角色成长timeline
128
+
129
+ ### 主角成长节点
130
+ 1. **第X章**:[事件] → [变化]
131
+ 2. **第X章**:[事件] → [变化]
132
+ 3. **第X章**:[事件] → [变化]
133
+
134
+ ### 关系发展节点
135
+ 1. **第X章**:[角色A+角色B] → [关系变化]
136
+ 2. **第X章**:[角色C登场] → [新关系建立]
137
+
138
+ ## 角色设计备注
139
+
140
+ ### 创作要点
141
+ - 保持人物行为的逻辑一致性
142
+ - 角色成长要循序渐进
143
+ - 对话要符合人物身份和性格
144
+ - 避免角色工具化
145
+
146
+ ### 参考原型
147
+ [如有参考的真实人物或其他作品角色]
148
+
149
+ ---
150
+ *创建时间:[日期]*
151
+ *最后更新:[日期]*
152
+ *版本:1.0*
@@ -0,0 +1,137 @@
1
+ # 角色语言档案
2
+
3
+ ## 语言风格设定
4
+
5
+ ### [主角姓名]
6
+
7
+ #### 基本语言特征
8
+ - **语调**:[平和/激昂/冷静/活泼]
9
+ - **语速**:[快/中/慢]
10
+ - **音色**:[清脆/浑厚/沙哑/温柔]
11
+ - **语言水平**:[文雅/通俗/粗俗]
12
+
13
+ #### 说话习惯
14
+ - **口头禅**:
15
+ - "[常用词句1]"
16
+ - "[常用词句2]"
17
+ - "[常用词句3]"
18
+
19
+ - **称呼习惯**:
20
+ - 对长辈:[如:您、先生、大人]
21
+ - 对平辈:[如:兄台、朋友、哥们]
22
+ - 对晚辈:[如:小朋友、孩子、小家伙]
23
+ - 自称:[如:我、本人、在下、本座]
24
+
25
+ #### 语言模式
26
+ - **陈述句式**:
27
+ - 示例:"[典型的陈述语句]"
28
+
29
+ - **疑问句式**:
30
+ - 示例:"[典型的疑问语句]"
31
+
32
+ - **感叹句式**:
33
+ - 示例:"[典型的感叹语句]"
34
+
35
+ #### 情绪表达
36
+ - **高兴时**:"[表达高兴的典型语句]"
37
+ - **愤怒时**:"[表达愤怒的典型语句]"
38
+ - **悲伤时**:"[表达悲伤的典型语句]"
39
+ - **紧张时**:"[表达紧张的典型语句]"
40
+ - **思考时**:"[思考时的语言特征]"
41
+
42
+ #### 特殊用语
43
+ - **专业术语**:[根据角色背景的专业用语]
44
+ - **方言俚语**:[地域特色用语]
45
+ - **时代用语**:[符合时代背景的用语]
46
+
47
+ ---
48
+
49
+ ### [配角姓名]
50
+
51
+ #### 语言标签
52
+ - **一句话特征**:[用一句话概括语言风格]
53
+ - **关键词**:[3-5个关键词]
54
+
55
+ #### 典型对话
56
+ - **打招呼**:"[见面时的典型招呼语]"
57
+ - **告别语**:"[分别时的典型话语]"
58
+ - **口头禅**:"[最常说的话]"
59
+
60
+ #### 与主角对话模式
61
+ - **初期**:[陌生/客气/疏远]
62
+ - **中期**:[熟悉/亲近/信任]
63
+ - **后期**:[亲密/依赖/知己]
64
+
65
+ ---
66
+
67
+ ## 对话范例库
68
+
69
+ ### 场景一:[初次见面]
70
+ **主角**:"[对话内容]"
71
+ **配角A**:"[对话内容]"
72
+ **主角**:"[对话内容]"
73
+
74
+ ### 场景二:[冲突对峙]
75
+ **主角**:"[对话内容]"
76
+ **反派**:"[对话内容]"
77
+ **主角**:"[对话内容]"
78
+
79
+ ### 场景三:[情感交流]
80
+ **主角**:"[对话内容]"
81
+ **爱人**:"[对话内容]"
82
+ **主角**:"[对话内容]"
83
+
84
+ ---
85
+
86
+ ## 语言演变记录
87
+
88
+ ### 主角语言成长
89
+ 1. **初期**(第1-20章)
90
+ - 特征:青涩、不自信
91
+ - 示例:"我...我不太确定..."
92
+
93
+ 2. **中期**(第21-60章)
94
+ - 特征:逐渐成熟、自信
95
+ - 示例:"我认为应该这样做。"
96
+
97
+ 3. **后期**(第61章后)
98
+ - 特征:成熟、有威严
99
+ - 示例:"听我号令,立即行动!"
100
+
101
+ ---
102
+
103
+ ## 语言禁忌
104
+
105
+ ### 避免事项
106
+ - **现代用语混入古代背景**
107
+ - 错误示例:"OK"、"拜拜"、"哇塞"
108
+ - 正确示例:"好"、"告辞"、"天哪"
109
+
110
+ - **性格不符的语言**
111
+ - 文雅角色避免粗话
112
+ - 粗犷角色避免文绉绉
113
+ - 儿童避免成人化语言
114
+
115
+ - **地域错配**
116
+ - 北方人避免南方方言
117
+ - 古代人避免外来语
118
+
119
+ ---
120
+
121
+ ## 参考资料
122
+
123
+ ### 语言学习资源
124
+ - **方言参考**:[相关方言词典或资料]
125
+ - **时代语言**:[历史语言资料]
126
+ - **职业用语**:[专业术语词典]
127
+
128
+ ### 创作提醒
129
+ 1. 每个角色的语言必须有辨识度
130
+ 2. 对话要符合角色的教育背景
131
+ 3. 情绪会影响语言表达方式
132
+ 4. 关系亲疏决定称呼和语气
133
+
134
+ ---
135
+ *创建时间:[日期]*
136
+ *最后更新:[日期]*
137
+ *版本:1.0*
@@ -0,0 +1,184 @@
1
+ # 场景地点
2
+
3
+ ## 主要场景
4
+
5
+ ### [场景名称]
6
+
7
+ #### 基本信息
8
+ - **类型**:[室内/室外/自然/人工]
9
+ - **规模**:[大型/中型/小型]
10
+ - **位置**:[具体地理位置或相对位置]
11
+ - **首次出现**:第X章
12
+
13
+ #### 环境描述
14
+
15
+ **整体印象**:
16
+ [用一段话描述场景给人的第一印象]
17
+
18
+ **视觉元素**:
19
+ - 建筑/地形:
20
+ - 色彩基调:
21
+ - 光线情况:
22
+ - 装饰风格:
23
+
24
+ **听觉元素**:
25
+ - 环境音:
26
+ - 特殊声音:
27
+ - 音量等级:
28
+
29
+ **嗅觉元素**:
30
+ - 主要气味:
31
+ - 特殊香味:
32
+
33
+ **触觉元素**:
34
+ - 温度:
35
+ - 湿度:
36
+ - 材质:
37
+
38
+ **动态元素**:
39
+ - 人流情况:
40
+ - 活动类型:
41
+ - 时间变化:
42
+
43
+ #### 功能作用
44
+ - **剧情功能**:[推进故事/角色相遇/冲突发生]
45
+ - **氛围营造**:[紧张/轻松/神秘/压抑]
46
+ - **象征意义**:[如有]
47
+
48
+ #### 重要事件
49
+ 1. **第X章**:[事件描述]
50
+ 2. **第X章**:[事件描述]
51
+ 3. **第X章**:[事件描述]
52
+
53
+ #### 相关人物
54
+ - **常驻人物**:
55
+ - **到访人物**:
56
+ - **路人群像**:
57
+
58
+ ---
59
+
60
+ ## 次要场景
61
+
62
+ ### [场景类别]
63
+
64
+ | 场景名 | 位置 | 特征 | 出现章节 | 功能 |
65
+ |--------|------|------|----------|------|
66
+ | | | | | |
67
+ | | | | | |
68
+ | | | | | |
69
+
70
+ ---
71
+
72
+ ## 场景地图
73
+
74
+ ### 整体布局
75
+ ```
76
+ [北]
77
+
78
+ [场景A] ←→ [场景B]
79
+ ↓ ↓
80
+ [场景C] [场景D]
81
+
82
+ [南]
83
+ ```
84
+
85
+ ### 相对位置
86
+ - **场景A → 场景B**:[距离/交通方式/所需时间]
87
+ - **场景B → 场景C**:[距离/交通方式/所需时间]
88
+ - **场景C → 场景D**:[距离/交通方式/所需时间]
89
+
90
+ ---
91
+
92
+ ## 场景细节库
93
+
94
+ ### 建筑样式
95
+ - **住宅**:
96
+ - 外观:
97
+ - 内部:
98
+ - 特色:
99
+
100
+ - **公共建筑**:
101
+ - 外观:
102
+ - 内部:
103
+ - 特色:
104
+
105
+ ### 自然景观
106
+ - **山川**:
107
+ - **河流**:
108
+ - **森林**:
109
+ - **原野**:
110
+
111
+ ### 城市街道
112
+ - **主街**:
113
+ - **小巷**:
114
+ - **市场**:
115
+ - **广场**:
116
+
117
+ ---
118
+
119
+ ## 场景转换规律
120
+
121
+ ### 章节分布
122
+ - **第1-20章**:主要场景集中在[地点]
123
+ - **第21-40章**:场景扩展到[地点]
124
+ - **第41-60章**:场景转移到[地点]
125
+
126
+ ### 场景路线
127
+ 1. 日常路线:家 → 学校/工作地 → 家
128
+ 2. 冒险路线:起点 → 路途 → 目的地
129
+ 3. 逃亡路线:危险地 → 躲藏处 → 安全地
130
+
131
+ ---
132
+
133
+ ## 场景氛围营造
134
+
135
+ ### 欢快场景
136
+ - **用词特点**:明亮、温暖、生机
137
+ - **描写重点**:阳光、笑声、色彩
138
+ - **典型场景**:节日、庆典、聚会
139
+
140
+ ### 紧张场景
141
+ - **用词特点**:阴暗、压抑、不安
142
+ - **描写重点**:阴影、寂静、细节
143
+ - **典型场景**:追逐、对峙、潜入
144
+
145
+ ### 神秘场景
146
+ - **用词特点**:朦胧、诡异、未知
147
+ - **描写重点**:雾气、光影、声响
148
+ - **典型场景**:古迹、密室、深林
149
+
150
+ ### 浪漫场景
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
+ *创建时间:[日期]*
183
+ *最后更新:[日期]*
184
+ *版本:1.0*