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,748 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: recap
|
|
3
|
-
description: 自动重建创作上下文,汇总角色状态、未解决伏笔、情节进展和关系网络,生成结构化简报
|
|
4
|
-
argument-hint: [--brief | --full vol-XX | --volume vol-XX]
|
|
5
|
-
allowed-tools: Read(//**), Bash(find:*), Bash(wc:*), Bash(grep:*), Bash(*)
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# /recap - 上下文重建命令
|
|
9
|
-
|
|
10
|
-
在隔天/隔周续写前,或写到 30+ 章后感觉失焦时,使用本命令快速重建完整的创作上下文。
|
|
11
|
-
|
|
12
|
-
**核心价值**:让作者在 5 分钟内从"完全忘记"到"胸有成竹"。
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## 使用场景
|
|
17
|
-
|
|
18
|
-
### 场景 1:隔天续写
|
|
19
|
-
```
|
|
20
|
-
用户:"昨天写到 28 章,今天继续写 29 章,先回顾一下"
|
|
21
|
-
→ 执行 /recap,输出完整上下文简报
|
|
22
|
-
→ 快速扫描后开始 /write
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### 场景 2:长篇失焦诊断
|
|
26
|
-
```
|
|
27
|
-
用户:"写到 35 章了,感觉有点乱"
|
|
28
|
-
→ 执行 /recap,发现 3 个超期伏笔、2 个角色长期未出现
|
|
29
|
-
→ 基于简报调整后续写作计划
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### 场景 3:计划调整
|
|
33
|
-
```
|
|
34
|
-
用户:"我想调整后面的情节,先看看现在的状态"
|
|
35
|
-
→ 执行 /recap,展示全局视图
|
|
36
|
-
→ 基于简报讨论调整方案
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## 执行流程
|
|
42
|
-
|
|
43
|
-
### 参数解析
|
|
44
|
-
|
|
45
|
-
- `--brief`:快速模式,只读 volume-summaries.json,生成一页参考卡片(第 8 部分)
|
|
46
|
-
- `--full vol-XX`:读取指定卷的完整详情数据
|
|
47
|
-
- `--volume vol-XX`:等同于 --full vol-XX
|
|
48
|
-
- 无参数:默认模式,读取当前卷详情 + 前卷摘要
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
### 阶段 1: 数据采集
|
|
53
|
-
|
|
54
|
-
#### 三层 Fallback 数据加载
|
|
55
|
-
|
|
56
|
-
按以下优先级加载 tracking 数据:
|
|
57
|
-
|
|
58
|
-
**Layer 1: MCP 查询(优先尝试)**
|
|
59
|
-
|
|
60
|
-
尝试调用 MCP 工具获取精简数据:
|
|
61
|
-
- `query_characters` --status=active --limit=30 → 活跃角色列表
|
|
62
|
-
- `query_plot` --status=active → 未解决伏笔
|
|
63
|
-
- `query_timeline` --chapter_from=[当前卷起始章] → 当前卷时间线
|
|
64
|
-
- `query_relationships` --volume=[当前卷号] → 当前卷关系
|
|
65
|
-
|
|
66
|
-
如果任一 MCP 调用失败,回退到 Layer 2。
|
|
67
|
-
|
|
68
|
-
**Layer 2: 分片 JSON(检测 tracking/volumes/ 是否存在)**
|
|
69
|
-
|
|
70
|
-
**--brief 模式:**
|
|
71
|
-
- 只读 `tracking/summary/volume-summaries.json`
|
|
72
|
-
- 只读 `tracking/summary/characters-summary.json`(仅 active 部分)
|
|
73
|
-
|
|
74
|
-
**默认模式:**
|
|
75
|
-
- 读 `tracking/summary/volume-summaries.json` → 获取前卷摘要
|
|
76
|
-
- 读 `tracking/summary/characters-summary.json` → 活跃角色概览
|
|
77
|
-
- 读 `tracking/summary/plot-summary.json` → 未解决伏笔
|
|
78
|
-
- 读当前卷详情:`tracking/volumes/[currentVolume]/` 下的 4 个文件
|
|
79
|
-
|
|
80
|
-
**--full vol-XX 模式:**
|
|
81
|
-
- 读 `tracking/volumes/vol-XX/` 下的 4 个文件(完整数据)
|
|
82
|
-
- 读 `tracking/summary/volume-summaries.json` → 该卷前后的摘要
|
|
83
|
-
|
|
84
|
-
**Layer 3: 单文件 JSON(兜底,现有逻辑)**
|
|
85
|
-
- 读 `tracking/character-state.json`
|
|
86
|
-
- 读 `tracking/plot-tracker.json`
|
|
87
|
-
- 读 `tracking/relationships.json`
|
|
88
|
-
- 读 `tracking/timeline.json`
|
|
89
|
-
|
|
90
|
-
#### 创作基础文件(第二优先级)
|
|
91
|
-
|
|
92
|
-
5. `stories/[current]/specification.md` - 故事规格
|
|
93
|
-
6. `stories/[current]/creative-plan.md` - 创作计划
|
|
94
|
-
7. `stories/[current]/tasks.md` - 任务清单
|
|
95
|
-
|
|
96
|
-
#### 最近内容(第三优先级)
|
|
97
|
-
|
|
98
|
-
读取最近 3 章的章节文件(`stories/[current]/content/chapter-XX.md`)。如果指定了 --volume:
|
|
99
|
-
- 只读该卷范围内的最近 3 章
|
|
100
|
-
- 卷的章节范围从 volume-summaries.json 获取
|
|
101
|
-
|
|
102
|
-
无 --volume 时按文件名倒序排列,取最近 3 个。
|
|
103
|
-
|
|
104
|
-
#### 辅助文件(第四优先级,可选)
|
|
105
|
-
|
|
106
|
-
9. `resources/memory/constitution.md` - 创作宪法
|
|
107
|
-
10. `tracking/validation-rules.json` - 验证规则
|
|
108
|
-
|
|
109
|
-
**数据缺失处理**:
|
|
110
|
-
|
|
111
|
-
| 文件 | 缺失时的行为 |
|
|
112
|
-
|------|------------|
|
|
113
|
-
| character-state.json | 警告,从最近章节推断角色状态 |
|
|
114
|
-
| plot-tracker.json | 警告,简报中省略伏笔部分 |
|
|
115
|
-
| relationships.json | 警告,简报中省略关系网络 |
|
|
116
|
-
| timeline.json | 警告,简报中省略时间线 |
|
|
117
|
-
| specification.md | 报错,建议先执行 /specify |
|
|
118
|
-
| creative-plan.md | 警告,简报中省略计划信息 |
|
|
119
|
-
| tasks.md | 警告,简报中省略任务状态 |
|
|
120
|
-
| 章节文件 | 报错,尚无可回顾的内容 |
|
|
121
|
-
|
|
122
|
-
**如果所有追踪文件都不存在**:
|
|
123
|
-
```
|
|
124
|
-
⚠️ 追踪数据缺失
|
|
125
|
-
|
|
126
|
-
未找到任何追踪文件(tracking/)。
|
|
127
|
-
本简报将基于现有章节内容和规格文件生成简化版。
|
|
128
|
-
|
|
129
|
-
建议:
|
|
130
|
-
1. 执行 /track-init 初始化追踪系统
|
|
131
|
-
2. 执行 /track 更新追踪数据
|
|
132
|
-
3. 然后重新执行 /recap 获取完整简报
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
---
|
|
136
|
-
|
|
137
|
-
### 阶段 2: 智能汇总
|
|
138
|
-
|
|
139
|
-
按以下结构生成上下文简报。
|
|
140
|
-
|
|
141
|
-
**参数处理**:
|
|
142
|
-
- 无参数:生成完整的 9 部分简报(当前卷数据)
|
|
143
|
-
- `--brief`:仅生成"快速参考卡片"(第 8 部分)
|
|
144
|
-
- `--full vol-XX` / `--volume vol-XX`:生成指定卷的完整简报
|
|
145
|
-
|
|
146
|
-
---
|
|
147
|
-
|
|
148
|
-
## 上下文简报模板
|
|
149
|
-
|
|
150
|
-
### 简报头部
|
|
151
|
-
|
|
152
|
-
```markdown
|
|
153
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
154
|
-
📋 上下文简报
|
|
155
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
156
|
-
|
|
157
|
-
生成日期:[当前日期]
|
|
158
|
-
故事名称:[从 specification.md 提取]
|
|
159
|
-
当前进度:第 [N] 章 / 预计 [M] 章
|
|
160
|
-
数据来源:[列出实际读取的追踪文件]
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
---
|
|
164
|
-
|
|
165
|
-
### 第 1 部分:角色当前状态
|
|
166
|
-
|
|
167
|
-
**数据来源**:`character-state.json` > 最近章节内容
|
|
168
|
-
|
|
169
|
-
```markdown
|
|
170
|
-
### 1. 角色当前状态 🎭
|
|
171
|
-
|
|
172
|
-
**主角**
|
|
173
|
-
|
|
174
|
-
**[角色名]** (主角)
|
|
175
|
-
- **位置**:[当前所在地](第 [N] 章)
|
|
176
|
-
- **状态**:[物理/情感状态]
|
|
177
|
-
- **目标**:[当前追求的目标]
|
|
178
|
-
- **弧线阶段**:[当前发展阶段]
|
|
179
|
-
- **最近变化**:[最后一次重要变化,章节号]
|
|
180
|
-
|
|
181
|
-
**重要配角**(按重要性排序)
|
|
182
|
-
|
|
183
|
-
**[角色名]** ([角色功能])
|
|
184
|
-
- **状态**:[一句话概括]
|
|
185
|
-
- **最后出场**:第 [N] 章
|
|
186
|
-
|
|
187
|
-
**次要角色快速参考**:
|
|
188
|
-
- 角色 A:[一句话状态]
|
|
189
|
-
- 角色 B:[一句话状态]
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
**角色状态警告算法**:
|
|
193
|
-
|
|
194
|
-
从 `character-state.json` 的 `appearanceTracking` 和 `characterGroups` 中检测:
|
|
195
|
-
|
|
196
|
-
```
|
|
197
|
-
对于每个重要角色(importance = "high" 或 "medium"):
|
|
198
|
-
chapters_since_appearance = 当前章节 - 最后出场章节
|
|
199
|
-
|
|
200
|
-
如果 importance == "high" 且 chapters_since_appearance > 10:
|
|
201
|
-
⚠️ "[角色名] 已 [N] 章未出场(重要角色)"
|
|
202
|
-
|
|
203
|
-
如果 importance == "medium" 且 chapters_since_appearance > 15:
|
|
204
|
-
⚠️ "[角色名] 已 [N] 章未出场"
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
将所有警告在该部分末尾集中展示:
|
|
208
|
-
|
|
209
|
-
```markdown
|
|
210
|
-
**⚠️ 角色状态警告**:
|
|
211
|
-
- [角色名] 已 [N] 章未出场(重要角色,建议尽快安排出场)
|
|
212
|
-
- [角色名] 已 [N] 章未出场
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
---
|
|
216
|
-
|
|
217
|
-
### 第 2 部分:主线情节进展
|
|
218
|
-
|
|
219
|
-
**数据来源**:`plot-tracker.json` > `creative-plan.md`
|
|
220
|
-
|
|
221
|
-
```markdown
|
|
222
|
-
### 2. 主线情节进展 📖
|
|
223
|
-
|
|
224
|
-
**故事当前位置**(三幕/多卷结构)
|
|
225
|
-
|
|
226
|
-
[从 specification.md 提取结构信息,生成进度条]
|
|
227
|
-
第一幕 [========] 完成
|
|
228
|
-
第二幕 [=====>....] 进行中(60%)
|
|
229
|
-
第三幕 [...........] 未开始
|
|
230
|
-
|
|
231
|
-
**情节线状态**
|
|
232
|
-
|
|
233
|
-
**主线:[主线名称]** — [状态]
|
|
234
|
-
- 最新进展:[一句话概括](第 [N] 章)
|
|
235
|
-
- 下一步行动:[从 creative-plan.md 提取]
|
|
236
|
-
|
|
237
|
-
**副线 A:[副线名称]** — [状态]
|
|
238
|
-
- 最新进展:[一句话概括](第 [N] 章)
|
|
239
|
-
|
|
240
|
-
**副线 B:[副线名称]** — [状态]
|
|
241
|
-
- 最新进展:[一句话概括](第 [N] 章)
|
|
242
|
-
|
|
243
|
-
**已完成情节线**:
|
|
244
|
-
- ✅ [情节线名称](第 [X]-[Y] 章)
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
**进度计算方法**:
|
|
248
|
-
|
|
249
|
-
```
|
|
250
|
-
从 plot-tracker.json 的 plotlines 中:
|
|
251
|
-
主线进度 = completedNodes.length / (completedNodes.length + upcomingNodes.length)
|
|
252
|
-
副线进度 = 同上
|
|
253
|
-
|
|
254
|
-
从 specification.md 的章节规划中:
|
|
255
|
-
总体进度 = 已写章节数 / 预计总章节数
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
---
|
|
259
|
-
|
|
260
|
-
### 第 3 部分:未解决的伏笔与悬念
|
|
261
|
-
|
|
262
|
-
**数据来源**:`plot-tracker.json` 的 `foreshadowing` 数组
|
|
263
|
-
|
|
264
|
-
```markdown
|
|
265
|
-
### 3. 未解决的伏笔与悬念 🔍
|
|
266
|
-
|
|
267
|
-
**高优先级(需尽快处理)**
|
|
268
|
-
|
|
269
|
-
⏰ **[伏笔内容描述]**
|
|
270
|
-
- 埋下:第 [N] 章
|
|
271
|
-
- 已经过:[X] 章 ⚠️ 超过 15 章未处理
|
|
272
|
-
- 计划解决:第 [M] 章
|
|
273
|
-
- 处理建议:[基于创作计划给出的建议]
|
|
274
|
-
|
|
275
|
-
**中优先级(正常节奏)**
|
|
276
|
-
|
|
277
|
-
⏳ **[伏笔内容描述]**
|
|
278
|
-
- 埋下:第 [N] 章
|
|
279
|
-
- 已经过:[X] 章
|
|
280
|
-
- 计划解决:第 [M] 章
|
|
281
|
-
|
|
282
|
-
**低优先级(长线伏笔)**
|
|
283
|
-
|
|
284
|
-
📌 **[伏笔内容描述]**
|
|
285
|
-
- 埋下:第 [N] 章
|
|
286
|
-
- 已经过:[X] 章
|
|
287
|
-
- 计划解决:第 [M] 章(长期伏笔)
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
**伏笔优先级判断算法**:
|
|
291
|
-
|
|
292
|
-
```
|
|
293
|
-
对于 plot-tracker.json 中每个 status == "active" 的伏笔:
|
|
294
|
-
|
|
295
|
-
chapters_since = 当前章节 - planted.chapter
|
|
296
|
-
planned_resolve = plannedReveal.chapter
|
|
297
|
-
|
|
298
|
-
判断优先级:
|
|
299
|
-
1. 如果 chapters_since > 15:
|
|
300
|
-
→ 高优先级(超期未处理)
|
|
301
|
-
|
|
302
|
-
2. 如果 planned_resolve 存在 且 planned_resolve - 当前章节 <= 3:
|
|
303
|
-
→ 高优先级(即将需要解决)
|
|
304
|
-
|
|
305
|
-
3. 如果 chapters_since > 8:
|
|
306
|
-
→ 中优先级
|
|
307
|
-
|
|
308
|
-
4. 其他:
|
|
309
|
-
→ 低优先级
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
**高优先级伏笔的处理建议**:
|
|
313
|
-
|
|
314
|
-
```
|
|
315
|
-
如果 chapters_since > 15 且 planned_resolve 已过期:
|
|
316
|
-
→ "此伏笔已严重超期,建议在接下来 3 章内处理或明确推迟"
|
|
317
|
-
|
|
318
|
-
如果 chapters_since > 15 且 planned_resolve 未过期:
|
|
319
|
-
→ "此伏笔时间较长,建议在近期章节中埋入暗示保持读者兴趣"
|
|
320
|
-
|
|
321
|
-
如果 planned_resolve - 当前章节 <= 3:
|
|
322
|
-
→ "此伏笔即将到达计划解决点,请在第 [M] 章前做好铺垫"
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
---
|
|
326
|
-
|
|
327
|
-
### 第 4 部分:角色关系网络
|
|
328
|
-
|
|
329
|
-
**数据来源**:`relationships.json`
|
|
330
|
-
|
|
331
|
-
```markdown
|
|
332
|
-
### 4. 角色关系网络 💞
|
|
333
|
-
|
|
334
|
-
**核心关系状态**
|
|
335
|
-
|
|
336
|
-
[角色A] ←→ [角色B]:[关系类型]([趋势符号] [趋势描述])
|
|
337
|
-
最近互动:第 [N] 章,[互动内容]
|
|
338
|
-
|
|
339
|
-
[角色A] ←→ [角色C]:[关系类型]([趋势符号] [趋势描述])
|
|
340
|
-
最近互动:第 [N] 章,[互动内容]
|
|
341
|
-
⚠️ [如有警告,在此展示]
|
|
342
|
-
|
|
343
|
-
**关系变化趋势**(最近 5 章)
|
|
344
|
-
- ↗ [角色A] & [角色B]:[变化描述]
|
|
345
|
-
- ↘ [角色C] & [角色D]:[变化描述]
|
|
346
|
-
- → 其他关系保持稳定
|
|
347
|
-
|
|
348
|
-
**派系/阵营概览**(如适用)
|
|
349
|
-
- [派系名]:[成员],[目标],[状态]
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
**趋势符号说明**:
|
|
353
|
-
|
|
354
|
-
```
|
|
355
|
-
↗ = 关系升温/改善(trajectory: "positive")
|
|
356
|
-
↘ = 关系恶化/降温(trajectory: "negative")
|
|
357
|
-
→ = 关系稳定(trajectory: "stable")
|
|
358
|
-
↕ = 关系不稳定/波动(trajectory: "volatile")
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
**关系变化趋势提取**:
|
|
362
|
-
|
|
363
|
-
```
|
|
364
|
-
从 relationships.json 的 history 数组中:
|
|
365
|
-
取最近 5 章的 changes 记录
|
|
366
|
-
按 impact 排序(high > medium > low)
|
|
367
|
-
展示 impact 为 high 或 medium 的变化
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
---
|
|
371
|
-
|
|
372
|
-
### 第 5 部分:上一章回顾
|
|
373
|
-
|
|
374
|
-
**数据来源**:最近章节文件(`stories/[current]/content/chapter-XX.md`)
|
|
375
|
-
|
|
376
|
-
```markdown
|
|
377
|
-
### 5. 上一章回顾 📄
|
|
378
|
-
|
|
379
|
-
**第 [N] 章:[章节标题]**([字数] 字)
|
|
380
|
-
|
|
381
|
-
**核心事件**:
|
|
382
|
-
- [事件 1]
|
|
383
|
-
- [事件 2]
|
|
384
|
-
- [事件 3]
|
|
385
|
-
|
|
386
|
-
**章节结尾**(续写衔接点):
|
|
387
|
-
> [引用上一章最后 2-3 段原文]
|
|
388
|
-
|
|
389
|
-
**结尾状态**:
|
|
390
|
-
- 悬念:[有/无,如果有则描述]
|
|
391
|
-
- 时间点:[故事内时间]
|
|
392
|
-
- 地点:[角色所在位置]
|
|
393
|
-
|
|
394
|
-
**下一章衔接建议**:
|
|
395
|
-
- [根据 tasks.md 和 creative-plan.md 提取的下一章任务]
|
|
396
|
-
- [续写应注意的衔接要点]
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
**上一章提取逻辑**:
|
|
400
|
-
|
|
401
|
-
```
|
|
402
|
-
1. 列出 stories/[current]/content/ 下所有 chapter-*.md 文件
|
|
403
|
-
2. 按文件名排序,取最后一个
|
|
404
|
-
3. 读取文件内容
|
|
405
|
-
4. 提取标题(第一个 # 标题)
|
|
406
|
-
5. 统计字数(使用 wc 或字符串计数)
|
|
407
|
-
6. 提取最后 2-3 段作为"章节结尾"
|
|
408
|
-
7. 分析核心事件(从内容中概括 3-5 个关键情节点)
|
|
409
|
-
```
|
|
410
|
-
|
|
411
|
-
---
|
|
412
|
-
|
|
413
|
-
### 第 6 部分:时间线快照
|
|
414
|
-
|
|
415
|
-
**数据来源**:`timeline.json`
|
|
416
|
-
|
|
417
|
-
```markdown
|
|
418
|
-
### 6. 时间线快照 ⏰
|
|
419
|
-
|
|
420
|
-
**故事内时间**:
|
|
421
|
-
- 起始时间:[年月日/第 1 天]
|
|
422
|
-
- 当前时间:[年月日/第 N 天]
|
|
423
|
-
- 已过时长:[X 天/月/年]
|
|
424
|
-
|
|
425
|
-
**重要时间节点**(倒序,最近 5 个):
|
|
426
|
-
- 第 [N] 章:[事件]([故事内日期/天数])
|
|
427
|
-
- 第 [N-1] 章:[事件]([故事内日期/天数])
|
|
428
|
-
- ...
|
|
429
|
-
|
|
430
|
-
**⚠️ 时间线问题**(如有):
|
|
431
|
-
- [从 timeline.json 或 plot-tracker.json 的 notes.inconsistencies 检测的问题]
|
|
432
|
-
```
|
|
433
|
-
|
|
434
|
-
**时间线提取逻辑**:
|
|
435
|
-
|
|
436
|
-
```
|
|
437
|
-
从 timeline.json 的 events 数组中:
|
|
438
|
-
按 day(或 chapter)倒序排列
|
|
439
|
-
取最近 5 个事件
|
|
440
|
-
标记有时间矛盾的事件(如果 day 值出现非递增情况)
|
|
441
|
-
```
|
|
442
|
-
|
|
443
|
-
---
|
|
444
|
-
|
|
445
|
-
### 第 7 部分:创作状态检查
|
|
446
|
-
|
|
447
|
-
**数据来源**:`tasks.md` + `creative-plan.md` + 章节文件统计
|
|
448
|
-
|
|
449
|
-
```markdown
|
|
450
|
-
### 7. 创作状态检查 ✅
|
|
451
|
-
|
|
452
|
-
**完成度**:
|
|
453
|
-
- 已写章节:[N] / 预计 [M] 章([X]%)
|
|
454
|
-
- 已写字数:[N] 字
|
|
455
|
-
- 剩余字数预估:约 [K] 字
|
|
456
|
-
|
|
457
|
-
**节奏检查**(最近 5 章):
|
|
458
|
-
|
|
459
|
-
从 plot-tracker.json 的 currentState 或最近章节内容分析:
|
|
460
|
-
章节 事件密度
|
|
461
|
-
[N-4] ████░░░░░░ [描述]
|
|
462
|
-
[N-3] ███████░░░ [描述]
|
|
463
|
-
[N-2] █████░░░░░ [描述]
|
|
464
|
-
[N-1] ████████░░ [描述]
|
|
465
|
-
[N] ████░░░░░░ [描述]
|
|
466
|
-
|
|
467
|
-
节奏评估:[有起伏/过于平淡/过于紧张]
|
|
468
|
-
|
|
469
|
-
**任务清单状态**(从 tasks.md 统计):
|
|
470
|
-
- ✅ 已完成:[N] 项
|
|
471
|
-
- 🔄 进行中:[M] 项
|
|
472
|
-
- ⏸️ 待办:[K] 项
|
|
473
|
-
|
|
474
|
-
**下一步关键任务**(Top 3):
|
|
475
|
-
1. [任务 1](来自 tasks.md 中第一个未完成任务)
|
|
476
|
-
2. [任务 2]
|
|
477
|
-
3. [任务 3]
|
|
478
|
-
```
|
|
479
|
-
|
|
480
|
-
**节奏评估算法**:
|
|
481
|
-
|
|
482
|
-
```
|
|
483
|
-
从最近 5 章内容中分析:
|
|
484
|
-
事件密度 = 章节中的关键情节点数量
|
|
485
|
-
|
|
486
|
-
评估标准:
|
|
487
|
-
如果最近 5 章事件密度变化 < 2(方差很小):
|
|
488
|
-
→ "过于平淡,建议增加起伏"
|
|
489
|
-
|
|
490
|
-
如果最近 5 章事件密度持续 > 7:
|
|
491
|
-
→ "过于紧张,建议适当放缓让读者喘息"
|
|
492
|
-
|
|
493
|
-
如果最近 5 章事件密度有高有低(方差 > 3):
|
|
494
|
-
→ "节奏良好,有张有弛"
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
---
|
|
498
|
-
|
|
499
|
-
### 第 8 部分:快速参考卡片
|
|
500
|
-
|
|
501
|
-
**这是 `--brief` 模式下唯一输出的内容**。
|
|
502
|
-
|
|
503
|
-
```markdown
|
|
504
|
-
### 8. 快速参考卡片 🎯
|
|
505
|
-
|
|
506
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
507
|
-
📍 **当前位置**
|
|
508
|
-
[主角在哪,什么状态,什么时间点]
|
|
509
|
-
|
|
510
|
-
🎯 **下一章目标**
|
|
511
|
-
[从 tasks.md + creative-plan.md 提取]
|
|
512
|
-
|
|
513
|
-
⚠️ **注意事项**
|
|
514
|
-
- [超期伏笔提醒]
|
|
515
|
-
- [长期未出场角色提醒]
|
|
516
|
-
- [一致性警告]
|
|
517
|
-
|
|
518
|
-
💡 **续写衔接**
|
|
519
|
-
- 上章结尾:[一句话概括]
|
|
520
|
-
- 衔接方式:[建议的开头方向]
|
|
521
|
-
|
|
522
|
-
🔮 **下一章注意**
|
|
523
|
-
- [最紧急的 1-2 个伏笔提醒,如有]
|
|
524
|
-
- [需出场角色提醒,如有]
|
|
525
|
-
- [节奏建议:一句话]
|
|
526
|
-
|
|
527
|
-
📊 **进度**:第 [N]/[M] 章([X]%)
|
|
528
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
529
|
-
```
|
|
530
|
-
|
|
531
|
-
---
|
|
532
|
-
|
|
533
|
-
### 第 9 部分:下一章预测性提示
|
|
534
|
-
|
|
535
|
-
**数据来源**:综合 `plot-tracker.json`、`character-state.json`、`relationships.json`、`timeline.json`、`creative-plan.md`、`tasks.md`
|
|
536
|
-
|
|
537
|
-
```markdown
|
|
538
|
-
### 9. 下一章预测性提示 🔮
|
|
539
|
-
|
|
540
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
541
|
-
|
|
542
|
-
#### ⏰ 即将到期伏笔
|
|
543
|
-
[从 plot-tracker.json 中筛选 urgency > 0.7 的伏笔]
|
|
544
|
-
|
|
545
|
-
| 伏笔 | 埋设章节 | 已过章数 | 紧急度 | 建议 |
|
|
546
|
-
|------|---------|---------|--------|------|
|
|
547
|
-
| [伏笔描述] | 第 N 章 | M 章 | 🔴 紧急 | [推进/回收/提及] |
|
|
548
|
-
| [伏笔描述] | 第 N 章 | M 章 | ⚠️ 较高 | [推进/回收/提及] |
|
|
549
|
-
|
|
550
|
-
**计算规则**:
|
|
551
|
-
- 紧急度 = 已过章数 / 类型阈值(悬疑类 5-8 章,情节类 10-15 章,世界观类 20-30 章)
|
|
552
|
-
- 🔴 紧急(> 0.8):必须在下一章有所推进
|
|
553
|
-
- ⚠️ 较高(0.5-0.8):建议在近 2-3 章内推进
|
|
554
|
-
- 如无紧急伏笔,显示「✅ 当前无紧急伏笔」
|
|
555
|
-
|
|
556
|
-
#### 👤 需关注角色
|
|
557
|
-
[从 character-state.json 中筛选长期未出场或状态需跟进的角色]
|
|
558
|
-
|
|
559
|
-
| 角色 | 上次出场 | 未出场章数 | 当前状态 | 建议 |
|
|
560
|
-
|------|---------|-----------|---------|------|
|
|
561
|
-
| [角色名] | 第 N 章 | M 章 | [状态] | [出场/提及/暂不需要] |
|
|
562
|
-
|
|
563
|
-
**筛选规则**:
|
|
564
|
-
- 主要角色超过 3 章未出场 → 建议出场或提及
|
|
565
|
-
- 次要角色超过 8 章未出场 → 提醒(非强制)
|
|
566
|
-
- 角色处于关键状态变化中(受伤、失踪、冲突中)→ 必须跟进
|
|
567
|
-
|
|
568
|
-
#### 📈 情绪曲线建议
|
|
569
|
-
[基于 creative-plan.md 的情绪曲线设计和最近 3 章的实际节奏]
|
|
570
|
-
|
|
571
|
-
- **最近 3 章节奏**:[高/中/低] → [高/中/低] → [高/中/低]
|
|
572
|
-
- **建议下一章节奏**:[基于张弛有度原则的建议]
|
|
573
|
-
- **理由**:[例如:连续 2 章高强度冲突后,建议适当放缓,安排过渡或角色互动]
|
|
574
|
-
|
|
575
|
-
#### 🎯 计划执行检查
|
|
576
|
-
[对比 creative-plan.md / tasks.md 的规划与实际进度]
|
|
577
|
-
|
|
578
|
-
- **当前进度**:第 [N] 章 / 计划第 [M] 章的内容
|
|
579
|
-
- **偏离检测**:[无偏离 / 轻微偏离 / 显著偏离]
|
|
580
|
-
- **偏离说明**:[如有偏离,说明偏离内容和建议]
|
|
581
|
-
|
|
582
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
583
|
-
```
|
|
584
|
-
|
|
585
|
-
**生成逻辑**:
|
|
586
|
-
|
|
587
|
-
1. **即将到期伏笔**:
|
|
588
|
-
- 读取 `plot-tracker.json` 中所有 `status: "open"` 的伏笔
|
|
589
|
-
- 计算每个伏笔的紧急度:`(当前章节 - 埋设章节) / 类型阈值`
|
|
590
|
-
- 按紧急度降序排列,取 top 5
|
|
591
|
-
- 如果没有 `plot-tracker.json`,显示「⚠️ 未找到情节追踪数据,建议执行 /track 初始化」
|
|
592
|
-
|
|
593
|
-
2. **需关注角色**:
|
|
594
|
-
- 读取 `character-state.json` 中所有角色的 `lastAppearance` 字段
|
|
595
|
-
- 计算未出场章数:`当前章节 - lastAppearance`
|
|
596
|
-
- 筛选超过阈值的角色(主要角色 3 章,次要角色 8 章)
|
|
597
|
-
- 如果没有 `character-state.json`,显示「⚠️ 未找到角色状态数据」
|
|
598
|
-
|
|
599
|
-
3. **情绪曲线建议**:
|
|
600
|
-
- 读取最近 3 章的内容,判断每章的整体节奏(高/中/低)
|
|
601
|
-
- 基于「高-低-高」张弛有度原则,建议下一章节奏
|
|
602
|
-
- 如果最近章节不足 3 章,基于已有章节分析
|
|
603
|
-
|
|
604
|
-
4. **计划执行检查**:
|
|
605
|
-
- 对比 `tasks.md` 中当前任务的描述与实际已写内容
|
|
606
|
-
- 检测是否有显著偏离(新增未计划角色、跳过计划事件等)
|
|
607
|
-
|
|
608
|
-
---
|
|
609
|
-
|
|
610
|
-
## 简报尾部
|
|
611
|
-
|
|
612
|
-
```markdown
|
|
613
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
614
|
-
📊 上下文简报结束
|
|
615
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
616
|
-
|
|
617
|
-
**建议行动**:
|
|
618
|
-
1. 如果有 ⚠️ 警告,先处理警告项
|
|
619
|
-
2. 如果有 🔴 紧急伏笔,确认下一章如何推进
|
|
620
|
-
3. 重读上一章结尾,找到续写衔接点
|
|
621
|
-
4. 确认下一章任务
|
|
622
|
-
5. 执行 /write 开始创作(灵感充足时可用 /write --fast)
|
|
623
|
-
|
|
624
|
-
**数据更新提醒**:
|
|
625
|
-
- 本简报基于当前追踪数据生成
|
|
626
|
-
- 如追踪数据过时,请先执行 /track 更新
|
|
627
|
-
- 建议每 5-10 章或隔天续写时执行一次 /recap
|
|
628
|
-
```
|
|
629
|
-
|
|
630
|
-
---
|
|
631
|
-
|
|
632
|
-
## 与其他命令的关系
|
|
633
|
-
|
|
634
|
-
| 命令 | 关系 | 数据流 |
|
|
635
|
-
|------|------|--------|
|
|
636
|
-
| `/track-init` | 前置基础 | 初始化追踪系统 → 为 /recap 提供数据 |
|
|
637
|
-
| `/track` | 数据更新 | /track 更新追踪数据 → /recap 读取最新数据 |
|
|
638
|
-
| `/write` | 后续流程 | /recap 重建上下文 → /write 执行写作 |
|
|
639
|
-
| `/analyze` | 互补验证 | /analyze 深度分析 ↔ /recap 状态概览 |
|
|
640
|
-
| pre-write-checklist | 集成 | /recap 简报可替代部分检查清单功能 |
|
|
641
|
-
|
|
642
|
-
**推荐工作流**:
|
|
643
|
-
|
|
644
|
-
```
|
|
645
|
-
隔天续写:/recap → /write
|
|
646
|
-
定期整理:/track → /recap → 根据简报调整计划
|
|
647
|
-
长篇诊断:/recap → 发现问题 → /analyze 深入分析
|
|
648
|
-
```
|
|
649
|
-
|
|
650
|
-
---
|
|
651
|
-
|
|
652
|
-
## 高级功能
|
|
653
|
-
|
|
654
|
-
### --brief 简化模式
|
|
655
|
-
|
|
656
|
-
```
|
|
657
|
-
/recap --brief
|
|
658
|
-
```
|
|
659
|
-
|
|
660
|
-
仅输出第 8 部分"快速参考卡片",适合快速刷新记忆。
|
|
661
|
-
|
|
662
|
-
**使用场景**:
|
|
663
|
-
- 短暂离开后回来继续写
|
|
664
|
-
- 已经很了解故事,只需快速确认
|
|
665
|
-
|
|
666
|
-
---
|
|
667
|
-
|
|
668
|
-
## 错误处理
|
|
669
|
-
|
|
670
|
-
### 故事不存在
|
|
671
|
-
|
|
672
|
-
```
|
|
673
|
-
❌ 未找到活跃故事
|
|
674
|
-
|
|
675
|
-
请先执行 /specify 创建故事规格。
|
|
676
|
-
```
|
|
677
|
-
|
|
678
|
-
### 无章节内容
|
|
679
|
-
|
|
680
|
-
```
|
|
681
|
-
⚠️ 尚未开始写作
|
|
682
|
-
|
|
683
|
-
未找到任何章节文件(stories/[current]/content/)。
|
|
684
|
-
无法生成上下文简报。
|
|
685
|
-
|
|
686
|
-
请先执行 /write 开始创作,然后再使用 /recap。
|
|
687
|
-
```
|
|
688
|
-
|
|
689
|
-
### 追踪数据过期
|
|
690
|
-
|
|
691
|
-
```
|
|
692
|
-
⚠️ 追踪数据可能过时
|
|
693
|
-
|
|
694
|
-
最后更新时间:[日期]([N] 天前)
|
|
695
|
-
已写章节数超过最后更新时的章节数 [X] 章。
|
|
696
|
-
|
|
697
|
-
建议先执行 /track 更新追踪数据后再查看简报。
|
|
698
|
-
```
|
|
699
|
-
|
|
700
|
-
---
|
|
701
|
-
|
|
702
|
-
## 技术说明
|
|
703
|
-
|
|
704
|
-
### 数据处理优先级
|
|
705
|
-
|
|
706
|
-
当多个数据源存在冲突时:
|
|
707
|
-
1. **追踪文件** > **章节内容推断**(追踪文件经过 /track 验证,更可靠)
|
|
708
|
-
2. **最近章节** > **早期章节**(最近的信息更准确)
|
|
709
|
-
3. **character-state.json** > **规格文件**(实时状态 > 初始设定)
|
|
710
|
-
|
|
711
|
-
### 信息量控制
|
|
712
|
-
|
|
713
|
-
- **主要角色**:展示完整信息(位置、状态、目标、弧线)
|
|
714
|
-
- **次要角色**:一句话状态
|
|
715
|
-
- **伏笔**:按优先级排序,高优先级详细展示,低优先级简要列出
|
|
716
|
-
- **关系**:仅展示有变化或有问题的关系
|
|
717
|
-
|
|
718
|
-
### 简报长度参考
|
|
719
|
-
|
|
720
|
-
- **完整简报**(8 部分):约 800-1500 字
|
|
721
|
-
- **简化简报**(--brief):约 200-300 字
|
|
722
|
-
|
|
723
|
-
---
|
|
724
|
-
|
|
725
|
-
## 成功标准
|
|
726
|
-
|
|
727
|
-
**用户反馈目标**:
|
|
728
|
-
- "5 分钟就能想起所有关键信息"
|
|
729
|
-
- "不再害怕隔天续写"
|
|
730
|
-
- "30 章后依然清楚知道故事在哪"
|
|
731
|
-
|
|
732
|
-
**技术指标**:
|
|
733
|
-
- 信息准确率 > 95%(基于追踪数据的准确性)
|
|
734
|
-
- 警告召回率 > 90%(真实问题能被检测到)
|
|
735
|
-
- 简报覆盖度 100%(所有有效追踪数据都被纳入简报)
|
|
736
|
-
|
|
737
|
-
---
|
|
738
|
-
|
|
739
|
-
## 🔗 命令链式提示
|
|
740
|
-
|
|
741
|
-
**命令执行完成后,自动附加下一步建议**:
|
|
742
|
-
|
|
743
|
-
```
|
|
744
|
-
💡 下一步建议:
|
|
745
|
-
1️⃣ `/write [下一章节号]` — 上下文已重建,开始续写
|
|
746
|
-
2️⃣ `/track --check` — 如简报中有警告,先检查数据一致性
|
|
747
|
-
3️⃣ `/analyze` — 如发现多个问题,执行全面质量分析
|
|
748
|
-
```
|