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.
- package/CHANGELOG.md +100 -623
- package/README.md +79 -594
- package/dist/cli.js +1 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +12 -99
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +17 -108
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/core/config.d.ts +1 -37
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +6 -45
- package/dist/core/config.js.map +1 -1
- package/dist/core/errors.d.ts +0 -31
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +0 -58
- package/dist/core/errors.js.map +1 -1
- package/dist/utils/diagnostics.d.ts +2 -16
- package/dist/utils/diagnostics.d.ts.map +1 -1
- package/dist/utils/diagnostics.js +5 -72
- package/dist/utils/diagnostics.js.map +1 -1
- package/dist/utils/project.d.ts +1 -1
- package/dist/utils/project.d.ts.map +1 -1
- package/dist/utils/project.js +3 -3
- package/dist/utils/project.js.map +1 -1
- package/package.json +1 -2
- package/templates/commands/analyze.md +65 -265
- package/templates/commands/expand.md +70 -0
- package/templates/commands/plan.md +47 -452
- package/templates/commands/specify.md +43 -869
- package/templates/commands/write.md +49 -643
- package/templates/dot-claude/CLAUDE.md +38 -202
- package/templates/resources/anti-ai.md +16 -0
- package/templates/resources/style-reference.md +19 -0
- package/templates/tracking/character-state.json +1 -76
- package/templates/tracking/plot-tracker.json +3 -60
- package/templates/tracking/relationships.json +1 -68
- package/templates/tracking/timeline.json +1 -47
- package/dist/commands/plugin.d.ts +0 -6
- package/dist/commands/plugin.d.ts.map +0 -1
- package/dist/commands/plugin.js +0 -135
- package/dist/commands/plugin.js.map +0 -1
- package/dist/plugins/identifier.d.ts +0 -13
- package/dist/plugins/identifier.d.ts.map +0 -1
- package/dist/plugins/identifier.js +0 -72
- package/dist/plugins/identifier.js.map +0 -1
- package/dist/plugins/installers/base.d.ts +0 -27
- package/dist/plugins/installers/base.d.ts.map +0 -1
- package/dist/plugins/installers/base.js +0 -30
- package/dist/plugins/installers/base.js.map +0 -1
- package/dist/plugins/installers/github.d.ts +0 -22
- package/dist/plugins/installers/github.d.ts.map +0 -1
- package/dist/plugins/installers/github.js +0 -133
- package/dist/plugins/installers/github.js.map +0 -1
- package/dist/plugins/installers/local.d.ts +0 -16
- package/dist/plugins/installers/local.d.ts.map +0 -1
- package/dist/plugins/installers/local.js +0 -69
- package/dist/plugins/installers/local.js.map +0 -1
- package/dist/plugins/installers/npm.d.ts +0 -20
- package/dist/plugins/installers/npm.d.ts.map +0 -1
- package/dist/plugins/installers/npm.js +0 -99
- package/dist/plugins/installers/npm.js.map +0 -1
- package/dist/plugins/manager.d.ts +0 -77
- package/dist/plugins/manager.d.ts.map +0 -1
- package/dist/plugins/manager.js +0 -349
- package/dist/plugins/manager.js.map +0 -1
- package/dist/plugins/registry.d.ts +0 -48
- package/dist/plugins/registry.d.ts.map +0 -1
- package/dist/plugins/registry.js +0 -111
- package/dist/plugins/registry.js.map +0 -1
- package/dist/plugins/types.d.ts +0 -66
- package/dist/plugins/types.d.ts.map +0 -1
- package/dist/plugins/types.js +0 -2
- package/dist/plugins/types.js.map +0 -1
- package/dist/plugins/validator.d.ts +0 -19
- package/dist/plugins/validator.d.ts.map +0 -1
- package/dist/plugins/validator.js +0 -164
- package/dist/plugins/validator.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -13
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -48
- package/dist/utils/logger.js.map +0 -1
- package/plugins/authentic-voice/README.md +0 -31
- package/plugins/authentic-voice/commands/authentic-voice.md +0 -73
- package/plugins/authentic-voice/commands/authenticity-audit.md +0 -37
- package/plugins/authentic-voice/config.yaml +0 -30
- package/plugins/authentic-voice/experts/authentic-editor.md +0 -27
- package/plugins/export/README.md +0 -319
- package/plugins/export/commands/export.md +0 -460
- package/plugins/export/commands/generate-cover.md +0 -256
- package/plugins/export/commands/metadata.md +0 -309
- package/plugins/export/config.yaml +0 -47
- package/plugins/export/experts/publishing-expert.md +0 -171
- package/plugins/export/templates/epub/chapter-template.html +0 -13
- package/plugins/export/templates/epub/cover-template.html +0 -14
- package/plugins/export/templates/epub/stylesheet.css +0 -200
- package/plugins/export/templates/pdf/ebook-style.css +0 -137
- package/plugins/export/templates/pdf/print-style.css +0 -179
- package/plugins/export/templates/platforms/jinjiang-format.md +0 -101
- package/plugins/export/templates/platforms/qidian-format.md +0 -108
- package/plugins/export/templates/platforms/tomato-format.md +0 -95
- package/plugins/translate/README.md +0 -265
- package/plugins/translate/commands/glossary.md +0 -731
- package/plugins/translate/commands/translate-preview.md +0 -543
- package/plugins/translate/commands/translate.md +0 -649
- package/plugins/translate/config.yaml +0 -43
- package/plugins/translate/experts/literary-translator.md +0 -605
- package/templates/commands/character.md +0 -287
- package/templates/commands/checklist.md +0 -744
- package/templates/commands/clarify.md +0 -269
- package/templates/commands/constitution.md +0 -269
- package/templates/commands/expert.md +0 -188
- package/templates/commands/facts.md +0 -552
- package/templates/commands/guide.md +0 -900
- package/templates/commands/help-me.md +0 -221
- package/templates/commands/recap.md +0 -748
- package/templates/commands/relations.md +0 -385
- package/templates/commands/revise.md +0 -450
- package/templates/commands/search.md +0 -531
- package/templates/commands/tasks.md +0 -396
- package/templates/commands/timeline.md +0 -309
- package/templates/commands/track-init.md +0 -149
- package/templates/commands/track.md +0 -704
- package/templates/commands/volume-summary.md +0 -471
- package/templates/knowledge/audit-config.json +0 -26
- package/templates/knowledge/character-profiles.md +0 -152
- package/templates/knowledge/character-voices.md +0 -137
- package/templates/knowledge/locations.md +0 -184
- package/templates/knowledge/world-setting.md +0 -121
- package/templates/resources/character-archetypes/01-hero.md +0 -233
- package/templates/resources/character-archetypes/02-mentor.md +0 -177
- package/templates/resources/character-archetypes/03-shadow.md +0 -221
- package/templates/resources/character-archetypes/04-ally.md +0 -178
- package/templates/resources/character-archetypes/05-shapeshifter.md +0 -177
- package/templates/resources/character-archetypes/06-trickster.md +0 -181
- package/templates/resources/character-archetypes/07-threshold-guardian.md +0 -177
- package/templates/resources/character-archetypes/08-herald.md +0 -180
- package/templates/resources/character-archetypes/09-father.md +0 -249
- package/templates/resources/character-archetypes/10-mother.md +0 -202
- package/templates/resources/character-archetypes/11-child.md +0 -183
- package/templates/resources/character-archetypes/12-sage.md +0 -202
- package/templates/resources/character-archetypes/README.md +0 -60
- package/templates/resources/character-archetypes/application-guide.md +0 -222
- package/templates/resources/character-archetypes/archetype-combinations.md +0 -242
- package/templates/resources/character-archetypes/config.yaml +0 -28
- package/templates/resources/character-archetypes/examples-analysis.md +0 -223
- package/templates/resources/config/keyword-mappings.json +0 -226
- package/templates/resources/config/specification-example.md +0 -146
- package/templates/resources/craft/character-arc.md +0 -1153
- package/templates/resources/craft/dialogue.md +0 -1170
- package/templates/resources/craft/hook-design.md +0 -345
- package/templates/resources/craft/pacing.md +0 -1200
- package/templates/resources/craft/power-system.md +0 -254
- package/templates/resources/craft/scene-structure.md +0 -1136
- package/templates/resources/craft/show-not-tell.md +0 -1012
- package/templates/resources/craft/story-structures.md +0 -134
- package/templates/resources/craft/tension-management.md +0 -168
- package/templates/resources/emotional-beats/01-first-meeting.md +0 -145
- package/templates/resources/emotional-beats/02-bonding-moment.md +0 -226
- package/templates/resources/emotional-beats/03-declaration.md +0 -284
- package/templates/resources/emotional-beats/04-triumph.md +0 -240
- package/templates/resources/emotional-beats/05-reunion.md +0 -396
- package/templates/resources/emotional-beats/06-forgiveness.md +0 -204
- package/templates/resources/emotional-beats/07-betrayal.md +0 -204
- package/templates/resources/emotional-beats/08-loss.md +0 -214
- package/templates/resources/emotional-beats/09-rejection.md +0 -254
- package/templates/resources/emotional-beats/10-failure.md +0 -244
- package/templates/resources/emotional-beats/11-misunderstanding.md +0 -205
- package/templates/resources/emotional-beats/12-farewell.md +0 -283
- package/templates/resources/emotional-beats/13-revelation.md +0 -242
- package/templates/resources/emotional-beats/14-point-of-no-return.md +0 -215
- package/templates/resources/emotional-beats/15-dark-night.md +0 -244
- package/templates/resources/emotional-beats/16-sacrifice.md +0 -246
- package/templates/resources/emotional-beats/17-awakening.md +0 -246
- package/templates/resources/emotional-beats/18-confrontation.md +0 -217
- package/templates/resources/emotional-beats/19-bittersweet-goodbye.md +0 -368
- package/templates/resources/emotional-beats/20-moral-dilemma.md +0 -248
- package/templates/resources/emotional-beats/21-temptation.md +0 -240
- package/templates/resources/emotional-beats/22-redemption.md +0 -210
- package/templates/resources/emotional-beats/README.md +0 -104
- package/templates/resources/emotional-beats/beat-sequences.md +0 -276
- package/templates/resources/emotional-beats/config.yaml +0 -30
- package/templates/resources/emotional-beats/pacing-guide.md +0 -390
- package/templates/resources/genres/game-lit.md +0 -174
- package/templates/resources/genres/historical.md +0 -1127
- package/templates/resources/genres/horror.md +0 -211
- package/templates/resources/genres/military.md +0 -209
- package/templates/resources/genres/mystery.md +0 -1123
- package/templates/resources/genres/rebirth.md +0 -177
- package/templates/resources/genres/revenge.md +0 -846
- package/templates/resources/genres/romance.md +0 -948
- package/templates/resources/genres/sci-fi.md +0 -156
- package/templates/resources/genres/sports.md +0 -216
- package/templates/resources/genres/thriller.md +0 -166
- package/templates/resources/genres/urban.md +0 -170
- package/templates/resources/genres/workplace.md +0 -214
- package/templates/resources/genres/wuxia.md +0 -143
- package/templates/resources/genres/xuanhuan.md +0 -234
- package/templates/resources/genres/youth.md +0 -219
- package/templates/resources/memory/personal-voice.md +0 -113
- package/templates/resources/references/README.md +0 -96
- package/templates/resources/references/china-1920s/culture.md +0 -423
- package/templates/resources/references/china-1920s/daily-life.md +0 -616
- package/templates/resources/references/china-1920s/overview.md +0 -298
- package/templates/resources/references/china-1920s/society.md +0 -703
- package/templates/resources/references/china-1920s/warlords.md +0 -427
- package/templates/resources/references/cultivation-world/daily-life.md +0 -108
- package/templates/resources/references/cultivation-world/overview.md +0 -64
- package/templates/resources/references/cultivation-world/power-system.md +0 -108
- package/templates/resources/references/cultivation-world/sects.md +0 -104
- package/templates/resources/references/cultivation-world/world-setting.md +0 -108
- package/templates/resources/references/modern-workplace/corporate.md +0 -115
- package/templates/resources/references/modern-workplace/daily-life.md +0 -129
- package/templates/resources/references/modern-workplace/overview.md +0 -73
- package/templates/resources/references/modern-workplace/relationships.md +0 -107
- package/templates/resources/references/modern-workplace/tech-industry.md +0 -131
- package/templates/resources/references/tang-dynasty/culture.md +0 -135
- package/templates/resources/references/tang-dynasty/daily-life.md +0 -139
- package/templates/resources/references/tang-dynasty/overview.md +0 -76
- package/templates/resources/references/tang-dynasty/politics.md +0 -121
- package/templates/resources/references/tang-dynasty/society.md +0 -126
- package/templates/resources/requirements/README.md +0 -240
- package/templates/resources/requirements/anti-ai-v3.md +0 -46
- package/templates/resources/requirements/anti-ai-v4-deprecated.md +0 -442
- package/templates/resources/requirements/anti-ai-v5-balanced.md +0 -203
- package/templates/resources/requirements/concretization.md +0 -90
- package/templates/resources/requirements/fast-paced.md +0 -552
- package/templates/resources/requirements/no-poison.md +0 -60
- package/templates/resources/requirements/romance-angst.md +0 -102
- package/templates/resources/requirements/romance-sweet.md +0 -63
- package/templates/resources/requirements/serious-literature.md +0 -45
- package/templates/resources/requirements/strong-emotion.md +0 -60
- package/templates/resources/scripts/README.md +0 -187
- package/templates/resources/scripts/bash/analyze-story.sh +0 -170
- package/templates/resources/scripts/bash/check-analyze-stage.sh +0 -108
- package/templates/resources/scripts/bash/check-consistency.sh +0 -463
- package/templates/resources/scripts/bash/check-facts.sh +0 -214
- package/templates/resources/scripts/bash/check-plot.sh +0 -374
- package/templates/resources/scripts/bash/check-timeline.sh +0 -346
- package/templates/resources/scripts/bash/check-world.sh +0 -395
- package/templates/resources/scripts/bash/check-writing-state.sh +0 -854
- package/templates/resources/scripts/bash/clarify-story.sh +0 -117
- package/templates/resources/scripts/bash/common.sh +0 -151
- package/templates/resources/scripts/bash/constitution.sh +0 -114
- package/templates/resources/scripts/bash/generate-tasks.sh +0 -65
- package/templates/resources/scripts/bash/init-tracking.sh +0 -183
- package/templates/resources/scripts/bash/manage-relations.sh +0 -174
- package/templates/resources/scripts/bash/migrate-tracking.sh +0 -183
- package/templates/resources/scripts/bash/plan-story.sh +0 -100
- package/templates/resources/scripts/bash/specify-story.sh +0 -93
- package/templates/resources/scripts/bash/tasks-story.sh +0 -96
- package/templates/resources/scripts/bash/test-word-count.sh +0 -182
- package/templates/resources/scripts/bash/tests/bench-preload-cache.sh +0 -100
- package/templates/resources/scripts/bash/tests/run-all-benchmarks.sh +0 -16
- package/templates/resources/scripts/bash/tests/test-cache-semantics.sh +0 -199
- package/templates/resources/scripts/bash/tests/test-cross-platform.sh +0 -35
- package/templates/resources/scripts/bash/tests/test-edge-cases-bash.sh +0 -60
- package/templates/resources/scripts/bash/tests/test-phase1-bash.sh +0 -28
- package/templates/resources/scripts/bash/tests/test-preload-cache.sh +0 -123
- package/templates/resources/scripts/bash/tests/test-regex-precompile.sh +0 -89
- package/templates/resources/scripts/bash/tests/test-regression-bash.sh +0 -42
- package/templates/resources/scripts/bash/tests/test-task6-verification.sh +0 -200
- package/templates/resources/scripts/bash/text-audit.sh +0 -144
- package/templates/resources/scripts/bash/track-progress.sh +0 -194
- package/templates/resources/scripts/powershell/analyze-story.ps1 +0 -174
- package/templates/resources/scripts/powershell/check-analyze-stage.ps1 +0 -110
- package/templates/resources/scripts/powershell/check-consistency.ps1 +0 -138
- package/templates/resources/scripts/powershell/check-facts.ps1 +0 -195
- package/templates/resources/scripts/powershell/check-plot.ps1 +0 -139
- package/templates/resources/scripts/powershell/check-timeline.ps1 +0 -112
- package/templates/resources/scripts/powershell/check-writing-state.ps1 +0 -486
- package/templates/resources/scripts/powershell/clarify-story.ps1 +0 -107
- package/templates/resources/scripts/powershell/common.ps1 +0 -36
- package/templates/resources/scripts/powershell/constitution.ps1 +0 -145
- package/templates/resources/scripts/powershell/generate-tasks.ps1 +0 -70
- package/templates/resources/scripts/powershell/init-tracking.ps1 +0 -98
- package/templates/resources/scripts/powershell/manage-relations.ps1 +0 -134
- package/templates/resources/scripts/powershell/migrate-tracking.ps1 +0 -145
- package/templates/resources/scripts/powershell/plan-story.ps1 +0 -99
- package/templates/resources/scripts/powershell/specify-story.ps1 +0 -85
- package/templates/resources/scripts/powershell/tests/bench-ps-cache.ps1 +0 -80
- package/templates/resources/scripts/powershell/tests/test-cross-platform.ps1 +0 -27
- package/templates/resources/scripts/powershell/tests/test-edge-cases-ps.ps1 +0 -29
- package/templates/resources/scripts/powershell/tests/test-phase1-ps.ps1 +0 -28
- package/templates/resources/scripts/powershell/tests/test-ps-cache.ps1 +0 -73
- package/templates/resources/scripts/powershell/tests/test-regression-ps.ps1 +0 -40
- package/templates/resources/scripts/powershell/text-audit.ps1 +0 -102
- package/templates/resources/scripts/powershell/track-progress.ps1 +0 -105
- package/templates/resources/styles/README.md +0 -302
- package/templates/resources/styles/ancient-style.md +0 -579
- package/templates/resources/styles/literary.md +0 -439
- package/templates/resources/styles/minimal.md +0 -472
- package/templates/resources/styles/natural-voice.md +0 -930
- package/templates/resources/styles/web-novel.md +0 -525
- package/templates/skills/analysis/character-analysis/SKILL.md +0 -71
- package/templates/skills/analysis/foreshadow-analysis/SKILL.md +0 -45
- package/templates/skills/analysis/hook-analysis/SKILL.md +0 -111
- package/templates/skills/analysis/logic-analysis/SKILL.md +0 -58
- package/templates/skills/analysis/opening-analysis/SKILL.md +0 -59
- package/templates/skills/analysis/pacing-analysis/SKILL.md +0 -55
- package/templates/skills/analysis/power-analysis/SKILL.md +0 -148
- package/templates/skills/analysis/reader-analysis/SKILL.md +0 -117
- package/templates/skills/analysis/style-analysis/SKILL.md +0 -60
- package/templates/skills/analysis/voice-analysis/SKILL.md +0 -42
- package/templates/skills/auto-tracking/SKILL.md +0 -280
- package/templates/skills/genre-knowledge/fantasy/SKILL.md +0 -355
- package/templates/skills/genre-knowledge/mystery/SKILL.md +0 -337
- package/templates/skills/genre-knowledge/romance/SKILL.md +0 -228
- package/templates/skills/genre-knowledge/sci-fi/SKILL.md +0 -65
- package/templates/skills/genre-knowledge/thriller/SKILL.md +0 -95
- package/templates/skills/planning/volume-detail/SKILL.md +0 -219
- package/templates/skills/quality-assurance/consistency-checker/SKILL.md +0 -412
- package/templates/skills/quality-assurance/continuity-tracker/SKILL.md +0 -157
- package/templates/skills/quality-assurance/facts-checker/SKILL.md +0 -405
- package/templates/skills/quality-assurance/forgotten-elements/SKILL.md +0 -147
- package/templates/skills/quality-assurance/getting-started/SKILL.md +0 -224
- package/templates/skills/quality-assurance/hook-checker/SKILL.md +0 -164
- package/templates/skills/quality-assurance/hook-checker/experts/hook-analyst.md +0 -33
- package/templates/skills/quality-assurance/long-series-continuity/SKILL.md +0 -570
- package/templates/skills/quality-assurance/pacing-monitor/SKILL.md +0 -143
- package/templates/skills/quality-assurance/pov-validator/SKILL.md +0 -135
- package/templates/skills/quality-assurance/pre-write-checklist/SKILL.md +0 -583
- package/templates/skills/quality-assurance/requirement-detector/CONFLICT_RESOLUTION.md +0 -119
- package/templates/skills/quality-assurance/requirement-detector/EXAMPLES.md +0 -146
- package/templates/skills/quality-assurance/requirement-detector/KEYWORDS.md +0 -160
- package/templates/skills/quality-assurance/requirement-detector/SKILL.md +0 -149
- package/templates/skills/quality-assurance/setting-detector/SKILL.md +0 -611
- package/templates/skills/quality-assurance/style-detector/CONFLICT_RESOLUTION.md +0 -126
- package/templates/skills/quality-assurance/style-detector/EXAMPLES.md +0 -206
- package/templates/skills/quality-assurance/style-detector/KEYWORDS.md +0 -207
- package/templates/skills/quality-assurance/style-detector/SKILL.md +0 -264
- package/templates/skills/quality-assurance/voice-consistency-checker/SKILL.md +0 -103
- package/templates/skills/quality-assurance/voice-consistency-checker/experts/voice-analyst.md +0 -21
- package/templates/skills/quality-assurance/workflow-guide/SKILL.md +0 -381
- package/templates/skills/writing-techniques/character-arc/SKILL.md +0 -267
- package/templates/skills/writing-techniques/dialogue-techniques/SKILL.md +0 -366
- package/templates/skills/writing-techniques/multi-thread-narrative/SKILL.md +0 -708
- package/templates/skills/writing-techniques/multi-thread-narrative/experts/thread-analyst.md +0 -226
- package/templates/skills/writing-techniques/pacing-control/SKILL.md +0 -480
- package/templates/skills/writing-techniques/reader-expectation/SKILL.md +0 -1026
- package/templates/skills/writing-techniques/reader-expectation/experts/expectation-analyst.md +0 -209
- package/templates/skills/writing-techniques/revision-polish/SKILL.md +0 -496
- package/templates/skills/writing-techniques/revision-polish/experts/revision-editor.md +0 -221
- package/templates/skills/writing-techniques/scene-structure/SKILL.md +0 -361
- package/templates/skills/writing-techniques/style-learning/SKILL.md +0 -436
- package/templates/skills/writing-techniques/writing-balance/.gitkeep +0 -0
- package/templates/skills/writing-techniques/writing-balance/SKILL.md +0 -460
- package/templates/skills/writing-techniques/writing-techniques/SKILL.md +0 -727
- package/templates/tracking/story-facts.json +0 -5
- package/templates/tracking/summary/characters-summary.json +0 -7
- package/templates/tracking/summary/plot-summary.json +0 -13
- package/templates/tracking/summary/timeline-summary.json +0 -8
- package/templates/tracking/summary/volume-summaries.json +0 -5
- package/templates/tracking/tracking-log.md +0 -110
- package/templates/tracking/validation-rules.json +0 -128
- /package/templates/resources/{memory/constitution.md → constitution.md} +0 -0
|
@@ -1,290 +1,90 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
argument-hint: [
|
|
4
|
-
recommended-model: claude-sonnet-4-5-20250929
|
|
5
|
-
allowed-tools:
|
|
6
|
-
scripts:
|
|
7
|
-
sh: resources/scripts/bash/check-analyze-stage.sh --json
|
|
8
|
-
ps: resources/scripts/powershell/check-analyze-stage.ps1 -Json
|
|
2
|
+
description: 质量检查:对比概要与正文,检测一致性和AI味
|
|
3
|
+
argument-hint: [章节号] [--range start-end]
|
|
4
|
+
recommended-model: claude-sonnet-4-5-20250929
|
|
5
|
+
allowed-tools: Read(//stories/**), Read(//tracking/**), Bash(ls:*)
|
|
9
6
|
---
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
用户输入:$ARGUMENTS
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## 执行流程
|
|
16
|
-
|
|
17
|
-
### 1. 智能阶段检测
|
|
18
|
-
|
|
19
|
-
运行 `{SCRIPT}` 获取当前创作状态(返回 `analyze_type`, `chapter_count`, `has_spec/plan/tasks`, `story_dir`, `reason`)。
|
|
20
|
-
|
|
21
|
-
### 2. 决策逻辑
|
|
22
|
-
|
|
23
|
-
解析用户参数 `$ARGUMENTS`,按优先级:
|
|
24
|
-
|
|
25
|
-
1. **手动指定**:`--type=framework` 或 `--type=content`
|
|
26
|
-
2. **范围分析**:`--range ch-XX-YY` / `--range vol-XX[-YY]` / `--volume vol-XX` / `--volume-report vol-XX`
|
|
27
|
-
3. **专项分析 `--focus=`**:`opening`(前3章) | `pacing`(爽点/冲突) | `character`(人物弧光) | `foreshadow`(伏笔) | `logic`(逻辑漏洞) | `style`(文笔一致性) | `reader`(读者体验) | `hook`(钩子强度) | `power`(力量体系) | `voice`(对话一致性)
|
|
28
|
-
4. **自动判断**:章节数 < 3 → 框架分析,≥ 3 → 内容分析
|
|
29
|
-
|
|
30
|
-
### 4. 数据加载策略(三层 Fallback)
|
|
31
|
-
|
|
32
|
-
`--range` / `--volume` 分析时,按优先级加载:
|
|
33
|
-
|
|
34
|
-
1. **Layer 1: MCP 查询**:`query_characters`、`query_plot`、`query_timeline`、`stats_volume`(均传 `--volume=vol-XX`)
|
|
35
|
-
2. **Layer 2: 分片 JSON**:`tracking/volumes/vol-XX/` 下 4 个分片 + `summary/volume-summaries.json`
|
|
36
|
-
3. **Layer 3: 单文件 JSON**:`tracking/` 下单文件,按章节范围手动过滤
|
|
37
|
-
|
|
38
|
-
### 5. --volume-report 综合报告
|
|
39
|
-
|
|
40
|
-
`--volume-report vol-XX` 生成该卷完整分析报告,包含:卷概览、情节分析、角色发展、节奏评估、一致性检查、跨卷对比、改进建议(P0/P1/P2)。
|
|
41
|
-
|
|
42
|
-
数据来源:MCP `stats_volume` → 章节文件(`stories/[current]/content/chapter-XXX.md`)→ tracking 数据(分片或单文件)。
|
|
43
|
-
|
|
44
|
-
### 6. 资源加载
|
|
45
|
-
|
|
46
|
-
**基准文档**(参考 CLAUDE.md 资源加载规则):`resources/memory/constitution.md`、`stories/*/specification.md`、`stories/*/creative-plan.md`、`stories/*/tasks.md`
|
|
47
|
-
|
|
48
|
-
**分析专用**:`resources/craft/` 全部 + `templates/skills/quality-assurance/` QA skills
|
|
49
|
-
|
|
50
|
-
**覆盖与触发**:`specification.md` 的 `resource-loading.analysis` 配置覆盖默认加载;`keyword-triggers.enabled` 扫描 `--check` 参数动态加载 skills。会话级资源复用,不重复读取。
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## 模式A:框架一致性分析
|
|
55
|
-
|
|
56
|
-
**目标**:在写作前验证准备工作是否充分,确保规格、计划、任务之间无矛盾。
|
|
57
|
-
|
|
58
|
-
### A1. 覆盖率分析
|
|
59
|
-
|
|
60
|
-
检查所有规格需求是否都有对应的计划和任务:
|
|
61
|
-
- P0/P1/P2 需求覆盖率
|
|
62
|
-
- 任务完整性(所有计划章节是否有对应任务)
|
|
63
|
-
|
|
64
|
-
### A2. 一致性检查
|
|
65
|
-
|
|
66
|
-
验证文档之间是否存在矛盾:
|
|
67
|
-
- **规格 ↔ 计划**:主题一致性、节奏设定、约束遵守
|
|
68
|
-
- **计划 ↔ 任务**:章节对应、字数预估、优先级匹配
|
|
69
|
-
- **宪法合规**:价值观、质量标准
|
|
70
|
-
|
|
71
|
-
### A3. 逻辑问题预警
|
|
72
|
-
|
|
73
|
-
分析故事线设计中的潜在逻辑漏洞:
|
|
74
|
-
- 时间线冲突
|
|
75
|
-
- 角色能力矛盾
|
|
76
|
-
- 伏笔未规划
|
|
77
|
-
|
|
78
|
-
### A4. 准备就绪评估
|
|
79
|
-
|
|
80
|
-
输出总体评分 [X]/10,包含:
|
|
81
|
-
- **P0 必要条件**:规格完整、计划覆盖 P0 需求、任务分解完整、无致命逻辑矛盾
|
|
82
|
-
- **P1 建议条件**:角色档案完善、世界观设定详细、时间线规划清晰
|
|
83
|
-
- **建议**:🔴 必须修复(P0) / 🟡 建议优化(P1) / 🟢 可选(P2)
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## 模式B:内容质量分析
|
|
88
|
-
|
|
89
|
-
**目标**:对已完成的内容进行综合质量验证,确保符合规格并提供改进建议。
|
|
90
|
-
|
|
91
|
-
### B1. 加载验证基准
|
|
92
|
-
|
|
93
|
-
- 基准文档(同资源加载部分)
|
|
94
|
-
- **已完成内容**:`stories/*/content/*.md` 或 `stories/*/chapters/*.md`
|
|
95
|
-
|
|
96
|
-
### B2. 宪法合规性检查
|
|
97
|
-
|
|
98
|
-
- 核心价值观检查
|
|
99
|
-
- 质量标准验证(逻辑一致性、人物饱满度、文字水准)
|
|
100
|
-
- 风格一致性
|
|
101
|
-
|
|
102
|
-
### B3. 规格符合度分析
|
|
103
|
-
|
|
104
|
-
- P0/P1/P2 核心需求覆盖率
|
|
105
|
-
- 目标达成度(读者适配、市场定位、成功标准)
|
|
106
|
-
- 约束条件遵守
|
|
107
|
-
|
|
108
|
-
### B4. 计划执行分析
|
|
109
|
-
|
|
110
|
-
- 章节架构对比(计划 vs 实际)
|
|
111
|
-
- 人物发展轨迹符合度
|
|
112
|
-
- 世界观展开进度
|
|
10
|
+
## 目标
|
|
113
11
|
|
|
114
|
-
|
|
12
|
+
对已扩写的章节进行质量检查,输出分析报告到终端。
|
|
115
13
|
|
|
116
|
-
|
|
117
|
-
- 结构分析(情节密度、冲突频率、节奏变化)
|
|
118
|
-
- 技术问题(逻辑问题、连贯性问题、人物一致性)
|
|
119
|
-
- 亮点识别
|
|
14
|
+
## 参数解析
|
|
120
15
|
|
|
121
|
-
|
|
16
|
+
- 章节号:分析单章
|
|
17
|
+
- `--range start-end`:批量分析章节范围(如 `--range 1-20`)
|
|
122
18
|
|
|
123
|
-
|
|
19
|
+
## 资源加载
|
|
124
20
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
| `--focus=pacing` | 节奏分析 | `.claude/skills/analysis/pacing-analysis/SKILL.md` |
|
|
129
|
-
| `--focus=character` | 人物分析 | `.claude/skills/analysis/character-analysis/SKILL.md` |
|
|
130
|
-
| `--focus=foreshadow` | 伏笔分析 | `.claude/skills/analysis/foreshadow-analysis/SKILL.md` |
|
|
131
|
-
| `--focus=logic` | 逻辑分析 | `.claude/skills/analysis/logic-analysis/SKILL.md` |
|
|
132
|
-
| `--focus=style` | 风格分析 | `.claude/skills/analysis/style-analysis/SKILL.md` |
|
|
133
|
-
| `--focus=reader` | 读者体验 | `.claude/skills/analysis/reader-analysis/SKILL.md` |
|
|
134
|
-
| `--focus=hook` | 钩子分析 | `.claude/skills/analysis/hook-analysis/SKILL.md` |
|
|
135
|
-
| `--focus=power` | 力量体系 | `.claude/skills/analysis/power-analysis/SKILL.md` |
|
|
136
|
-
| `--focus=voice` | 对话一致性分析 | `.claude/skills/analysis/voice-analysis/SKILL.md` |
|
|
21
|
+
- 目标章节正文:`stories/<story>/content/chapter-XXX.md`
|
|
22
|
+
- 对应概要:`stories/<story>/content/chapter-XXX-synopsis.md`
|
|
23
|
+
- tracking 数据:`tracking/character-state.json`、`tracking/plot-tracker.json`
|
|
137
24
|
|
|
138
|
-
|
|
25
|
+
## 检查项(5项)
|
|
139
26
|
|
|
140
|
-
|
|
27
|
+
### 1. 概要符合度
|
|
28
|
+
对比正文与概要,检查:
|
|
29
|
+
- 概要中的核心事件是否都在正文中体现
|
|
30
|
+
- 出场角色是否一致
|
|
31
|
+
- 情感走向是否一致
|
|
32
|
+
- 章末钩子是否落地
|
|
141
33
|
|
|
142
|
-
|
|
34
|
+
评分:✅ 完全符合 / ⚠️ 部分偏离 / ❌ 严重偏离
|
|
143
35
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
-
|
|
36
|
+
### 2. 角色一致性
|
|
37
|
+
对比正文中角色行为与 tracking 中的角色状态:
|
|
38
|
+
- 角色性格是否一致(有无 OOC)
|
|
39
|
+
- 角色位置是否合理
|
|
40
|
+
- 角色关系互动是否符合 tracking 记录
|
|
147
41
|
|
|
148
|
-
|
|
42
|
+
评分:✅ / ⚠️ / ❌
|
|
149
43
|
|
|
150
|
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
44
|
+
### 3. 伏笔完整性
|
|
45
|
+
对比 plot-tracker 中标记的伏笔:
|
|
46
|
+
- 本章应埋设的伏笔是否在正文中体现
|
|
47
|
+
- 本章应回收的伏笔是否已回收
|
|
48
|
+
- 是否有遗漏
|
|
154
49
|
|
|
155
|
-
|
|
50
|
+
评分:✅ / ⚠️ / ❌
|
|
156
51
|
|
|
157
|
-
|
|
52
|
+
### 4. 连贯性
|
|
53
|
+
检查与前后章的衔接:
|
|
54
|
+
- 开头是否与前一章结尾自然衔接
|
|
55
|
+
- 时间线是否连续
|
|
56
|
+
- 场景转换是否合理
|
|
158
57
|
|
|
159
|
-
|
|
160
|
-
# 作品分析报告
|
|
58
|
+
评分:✅ / ⚠️ / ❌
|
|
161
59
|
|
|
162
|
-
|
|
163
|
-
|
|
60
|
+
### 5. AI味检测
|
|
61
|
+
检查常见AI写作痕迹:
|
|
62
|
+
- AI高频词使用(然而、殊不知、缓缓、深邃等)
|
|
63
|
+
- 句式重复度
|
|
64
|
+
- 空洞描写比例
|
|
65
|
+
- 段落结构单一性
|
|
164
66
|
|
|
165
|
-
|
|
166
|
-
| 维度 | 得分 | 说明 |
|
|
167
|
-
|------|------|------|
|
|
168
|
-
| 宪法合规 | [X]/10 | ... |
|
|
169
|
-
| 规格符合 | [X]/10 | ... |
|
|
170
|
-
| 计划执行 | [X]/10 | ... |
|
|
171
|
-
| 内容质量 | [X]/10 | ... |
|
|
172
|
-
| 读者体验 | [X]/10 | ... |
|
|
173
|
-
| 期待管理 | [X]/10 | ... |
|
|
174
|
-
| 线程平衡 | [X]/10 | ... |
|
|
175
|
-
|
|
176
|
-
## 关键发现
|
|
177
|
-
[✅ 优点 / ⚠️ 警告 / ❌ 问题]
|
|
178
|
-
|
|
179
|
-
## 下一步行动
|
|
180
|
-
[分级行动建议]
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
---
|
|
184
|
-
|
|
185
|
-
## 后置处理:询问式 Tracking 更新
|
|
186
|
-
|
|
187
|
-
**执行时机**: 内容分析完成后,发现可更新的 tracking 信息
|
|
188
|
-
|
|
189
|
-
**更新策略**: 辅助命令(/analyze)生成建议,**需用户确认后**才更新
|
|
190
|
-
|
|
191
|
-
**从分析结果中提取更新建议**:
|
|
192
|
-
1. **角色状态变化**(→ character-state.json)
|
|
193
|
-
2. **关系网络变化**(→ relationships.json)
|
|
194
|
-
3. **情节推进**(→ plot-tracker.json)
|
|
195
|
-
4. **时间线补充**(→ timeline.json)
|
|
196
|
-
|
|
197
|
-
**用户确认选项**:
|
|
198
|
-
- **[Y]** 全部应用
|
|
199
|
-
- **[N]** 跳过更新
|
|
200
|
-
- **[S]** 选择性应用(逐项确认)
|
|
201
|
-
|
|
202
|
-
应用后追加更新记录到 `tracking-log.md`。
|
|
203
|
-
|
|
204
|
-
**分片模式写入协议**:
|
|
205
|
-
- 如果检测到 `tracking/volumes/` 存在,确定章节所属卷
|
|
206
|
-
- 更新该卷的分片文件(如 `tracking/volumes/vol-03/character-state.json`)
|
|
207
|
-
- 同步更新全局摘要文件(如 `tracking/summary/characters-summary.json`)
|
|
208
|
-
- 如果 MCP 可用,调用 `sync_from_json` 同步到 SQLite
|
|
209
|
-
|
|
210
|
-
**错误处理**:
|
|
211
|
-
- tracking 文件不存在 → 建议运行 `/track --init`
|
|
212
|
-
- JSON 格式错误 → 提示手动修复
|
|
213
|
-
- tracking 目录不存在 → 建议创建 `tracking/`
|
|
214
|
-
|
|
215
|
-
---
|
|
216
|
-
|
|
217
|
-
## 🔄 反馈建议
|
|
218
|
-
|
|
219
|
-
在分析报告的最后,根据发现的问题生成反馈建议,指向需要修改的上游文档:
|
|
220
|
-
|
|
221
|
-
### 反馈分类
|
|
222
|
-
|
|
223
|
-
| 问题类型 | 反馈目标 | 操作建议 |
|
|
224
|
-
|---------|---------|---------|
|
|
225
|
-
| 角色设定与实际描写不符 | `specification.md` | `/specify --feedback` 更新角色设定 |
|
|
226
|
-
| 情节走向偏离计划 | `creative-plan.md` | `/plan --feedback` 调整计划 |
|
|
227
|
-
| 任务粒度不合理 | `tasks.md` | `/tasks` 重新拆分 |
|
|
228
|
-
| 力量体系不一致 | `specification.md` | `/specify --feedback` 修正力量体系 |
|
|
229
|
-
| 世界观设定冲突 | `specification.md` | `/specify --feedback` 修正世界观 |
|
|
230
|
-
| 节奏问题 | `creative-plan.md` | `/plan --feedback` 调整章节规划 |
|
|
231
|
-
|
|
232
|
-
### 输出格式
|
|
233
|
-
|
|
234
|
-
```
|
|
235
|
-
🔄 反馈建议
|
|
236
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
237
|
-
|
|
238
|
-
本次分析发现以下问题需要回溯修改上游文档:
|
|
239
|
-
|
|
240
|
-
📋 规格书反馈(/specify --feedback):
|
|
241
|
-
1. [具体问题描述] → 选择:修改设定 or 修改章节内容
|
|
242
|
-
|
|
243
|
-
📋 计划反馈(/plan --feedback):
|
|
244
|
-
2. [具体问题描述] → 建议运行 /plan --detail 重新规划
|
|
245
|
-
|
|
246
|
-
⚠️ 未处理的反馈会在下次 /guide 中提醒
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
---
|
|
250
|
-
|
|
251
|
-
## 🔧 修改引导
|
|
252
|
-
|
|
253
|
-
**内容分析完成后,自动提示修改选项**:
|
|
254
|
-
|
|
255
|
-
```markdown
|
|
256
|
-
📋 分析完成。发现 [X] 个问题。
|
|
257
|
-
|
|
258
|
-
如需系统性修改,可执行:
|
|
259
|
-
/revise 完整四层修改(结构→节奏→一致性→文字)
|
|
260
|
-
/revise --layer polish 仅文字润色
|
|
261
|
-
/revise --layer consistency 仅一致性修复
|
|
262
|
-
/revise --quick 快速修改(一致性+文字)
|
|
263
|
-
/revise --chapters 1-10 指定范围修改
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
**问题到修改层的映射**:
|
|
267
|
-
|
|
268
|
-
| /analyze 发现的问题类型 | 对应 /revise 层 |
|
|
269
|
-
|----------------------|----------------|
|
|
270
|
-
| 结构问题、章节缺失、高潮位置 | `--layer=structure` |
|
|
271
|
-
| 节奏偏慢/偏快、缺少钩子 | `--layer=pacing` |
|
|
272
|
-
| 角色矛盾、时间线错误、伏笔遗漏 | `--layer=consistency` |
|
|
273
|
-
| 重复用词、AI痕迹、风格不一致 | `--layer=polish` |
|
|
274
|
-
|
|
275
|
-
---
|
|
276
|
-
|
|
277
|
-
**记住**:**一个命令,三种模式(框架/内容/专项),智能而精准。** 分析发现问题后,使用 `/revise` 进行系统性修改。
|
|
278
|
-
|
|
279
|
-
---
|
|
67
|
+
评分:✅ 自然 / ⚠️ 轻微AI味 / ❌ 明显AI味
|
|
280
68
|
|
|
281
|
-
##
|
|
69
|
+
## 输出格式
|
|
282
70
|
|
|
283
|
-
|
|
71
|
+
直接输出到终端,不生成文件:
|
|
284
72
|
|
|
285
73
|
```
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
74
|
+
## 第X章 质量分析报告
|
|
75
|
+
|
|
76
|
+
| 检查项 | 评分 | 说明 |
|
|
77
|
+
|--------|------|------|
|
|
78
|
+
| 概要符合度 | ✅ | ... |
|
|
79
|
+
| 角色一致性 | ⚠️ | ... |
|
|
80
|
+
| 伏笔完整性 | ✅ | ... |
|
|
81
|
+
| 连贯性 | ✅ | ... |
|
|
82
|
+
| AI味检测 | ⚠️ | ... |
|
|
83
|
+
|
|
84
|
+
### 需要关注的问题
|
|
85
|
+
1. [具体问题和建议]
|
|
86
|
+
|
|
87
|
+
### 后续建议
|
|
88
|
+
- 如有 ⚠️ 或 ❌:建议手动修改正文后重新 /analyze
|
|
89
|
+
- 全部 ✅:可以继续扩写下一章
|
|
290
90
|
```
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 将章节概要扩写为 3000-5000 字正文
|
|
3
|
+
argument-hint: [章节号] [--batch N]
|
|
4
|
+
recommended-model: claude-opus-4-6
|
|
5
|
+
allowed-tools: Read(//stories/**), Write(//stories/**/content/**), Read(//tracking/**), Write(//tracking/**), Read(//resources/style-reference.md), Read(//resources/anti-ai.md), Bash(ls:*)
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
用户输入:$ARGUMENTS
|
|
9
|
+
|
|
10
|
+
## 目标
|
|
11
|
+
|
|
12
|
+
将已生成的章节概要扩写为 3000-5000 字的完整正文。
|
|
13
|
+
|
|
14
|
+
## 参数解析
|
|
15
|
+
|
|
16
|
+
- 章节号:从 $ARGUMENTS 提取
|
|
17
|
+
- `--batch N`:批量扩写 N 章(最大 10),从指定章节号开始
|
|
18
|
+
|
|
19
|
+
## 资源加载(精准最小集)
|
|
20
|
+
|
|
21
|
+
1. **当前章概要**:读取 `stories/<story>/content/chapter-XXX-synopsis.md`(200-500字)
|
|
22
|
+
2. **前一章正文末尾**:读取前一章 `chapter-XXX.md` 的最后 500-800 字(衔接用)。如果前一章尚未扩写,读取前一章概要代替
|
|
23
|
+
3. **本章出场角色状态**:从概要中提取出场角色列表,然后从 `tracking/character-state.json` 只提取这些角色的条目
|
|
24
|
+
4. **本章活跃伏笔**:从 `tracking/plot-tracker.json` 提取 status=planted 或 status=hinted 且 keyChapters 包含当前章或相邻章(±3章)的伏笔
|
|
25
|
+
5. **风格参考**:读取 `resources/style-reference.md`
|
|
26
|
+
6. **反AI规范**:读取 `resources/anti-ai.md`
|
|
27
|
+
|
|
28
|
+
**总上下文控制在 2000-3000 字以内。**
|
|
29
|
+
|
|
30
|
+
**不加载**:specification.md、creative-plan.md、constitution.md、其他 tracking 文件
|
|
31
|
+
|
|
32
|
+
## 执行步骤
|
|
33
|
+
|
|
34
|
+
### 1. 前置检查
|
|
35
|
+
|
|
36
|
+
- 确认目标章节的 synopsis.md 存在,否则提示先运行 /write
|
|
37
|
+
- 确认目标章节的正文 chapter-XXX.md 不存在(避免覆盖),如已存在则询问是否覆盖
|
|
38
|
+
|
|
39
|
+
### 2. 加载上下文
|
|
40
|
+
|
|
41
|
+
按上述「资源加载」规则加载精准最小集。
|
|
42
|
+
|
|
43
|
+
### 3. 扩写正文
|
|
44
|
+
|
|
45
|
+
基于概要,扩写为 3000-5000 字正文。遵循以下原则:
|
|
46
|
+
|
|
47
|
+
- **忠实于概要**:核心事件、出场角色、情感走向必须与概要一致
|
|
48
|
+
- **文学表达**:专注于场景描写、对话、心理活动、动作细节
|
|
49
|
+
- **风格一致**:遵循 style-reference.md 的风格设定
|
|
50
|
+
- **反AI规范**:遵循 anti-ai.md 的写作规范
|
|
51
|
+
- **衔接自然**:与前一章末尾自然衔接
|
|
52
|
+
- **伏笔落地**:概要中标记的伏笔必须在正文中体现
|
|
53
|
+
|
|
54
|
+
写入 `stories/<story>/content/chapter-XXX.md`。
|
|
55
|
+
|
|
56
|
+
### 4. 补充 tracking 细节
|
|
57
|
+
|
|
58
|
+
扩写完成后,检查正文中是否产生了概要中没有的新细节:
|
|
59
|
+
- 对话中透露的新信息 → 更新 character-state 或 relationships
|
|
60
|
+
- 新的场景细节 → 如有重要设定变化,更新相关 tracking
|
|
61
|
+
|
|
62
|
+
### 5. 批量模式
|
|
63
|
+
|
|
64
|
+
如果指定了 `--batch N`,重复步骤 2-4 共 N 次。每章完成后输出进度和字数。
|
|
65
|
+
|
|
66
|
+
### 6. 后续建议
|
|
67
|
+
|
|
68
|
+
单章完成:「第X章扩写完成(XXXX字)。继续 /expand [X+1] 或使用 /analyze X 检查质量。」
|
|
69
|
+
|
|
70
|
+
批量完成:「第X-Y章扩写完成(共Z章,平均XXXX字/章)。使用 /analyze --range X-Y 批量检查质量。」
|