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,450 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 系统性修改润色:四层修改流程(结构→节奏→一致性→文字),支持分层修改、指定范围、快速模式
|
|
3
|
-
argument-hint: [--layer=structure|pacing|consistency|polish] [--chapters=1-10] [--chapter=5] [--volume vol-XX] [--quick]
|
|
4
|
-
recommended-model: claude-sonnet-4-5-20250929 # 修改任务;重大改写可用 opus
|
|
5
|
-
allowed-tools: Bash(find:*), Bash(wc:*), Bash(grep:*), Read(//**), Write(//stories/**), Bash(*)
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
对已完成的初稿进行系统性修改润色。从结构到文字的四层修改流程,将 `/analyze` 的诊断转化为具体可执行的修改方案。
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## 核心理念
|
|
13
|
-
|
|
14
|
-
**诊断之后是治疗**:
|
|
15
|
-
- 🔍 `/analyze` = 诊断(发现问题)
|
|
16
|
-
- 🔧 `/revise` = 治疗(解决问题)
|
|
17
|
-
|
|
18
|
-
**从大到小,分层修改**:
|
|
19
|
-
- 先结构,再节奏,再一致性,最后文字
|
|
20
|
-
- 不在结构未定时打磨文字
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## 执行流程
|
|
25
|
-
|
|
26
|
-
### 1. 解析参数
|
|
27
|
-
|
|
28
|
-
解析用户参数 `$ARGUMENTS`:
|
|
29
|
-
|
|
30
|
-
**分层模式**(指定修改层):
|
|
31
|
-
- `--layer=structure` → 仅结构修改
|
|
32
|
-
- `--layer=pacing` → 仅节奏修改
|
|
33
|
-
- `--layer=consistency` → 仅一致性修改
|
|
34
|
-
- `--layer=polish` → 仅文字润色
|
|
35
|
-
|
|
36
|
-
**范围模式**(指定章节范围):
|
|
37
|
-
- `--chapters=1-10` → 修改第 1-10 章
|
|
38
|
-
- `--chapter=5` → 修改第 5 章
|
|
39
|
-
- `--volume vol-XX` → 修改指定卷的所有章节(超长篇)
|
|
40
|
-
|
|
41
|
-
**快速模式**:
|
|
42
|
-
- `--quick` → 跳过结构和节奏,直接做一致性 + 文字润色
|
|
43
|
-
|
|
44
|
-
**默认模式**(无参数):
|
|
45
|
-
- 完整四层修改流程
|
|
46
|
-
|
|
47
|
-
### 2. 数据加载策略
|
|
48
|
-
|
|
49
|
-
本命令在加载 tracking 数据时,采用 **三层回退** 机制:
|
|
50
|
-
|
|
51
|
-
#### Layer 3: MCP 查询(优先)
|
|
52
|
-
|
|
53
|
-
```typescript
|
|
54
|
-
// 如果 MCP 已启用且数据已同步
|
|
55
|
-
const characters = await mcp.call('novelws-mcp/query_characters', {
|
|
56
|
-
volume: 'vol-03' // --volume 参数
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
const plotData = await mcp.call('novelws-mcp/query_plot', {
|
|
60
|
-
volume: 'vol-03',
|
|
61
|
-
status: 'all'
|
|
62
|
-
});
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
**优势**:
|
|
66
|
-
- 高性能范围查询(volume 过滤)
|
|
67
|
-
- 自动聚合一致性统计
|
|
68
|
-
- 支持全文搜索事实矛盾
|
|
69
|
-
|
|
70
|
-
#### Layer 2: 分片 JSON(次优)
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
# 当 tracking/volumes/ 存在时
|
|
74
|
-
if [[ -n "$VOLUME_FILTER" ]]; then
|
|
75
|
-
# 仅加载指定卷的数据
|
|
76
|
-
cat tracking/volumes/${VOLUME_FILTER}/character-state.json
|
|
77
|
-
cat tracking/volumes/${VOLUME_FILTER}/relationships.json
|
|
78
|
-
else
|
|
79
|
-
# 加载所有卷的数据
|
|
80
|
-
for vol in tracking/volumes/vol-*/; do
|
|
81
|
-
cat "$vol/character-state.json"
|
|
82
|
-
cat "$vol/relationships.json"
|
|
83
|
-
done
|
|
84
|
-
fi
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
**适用场景**:
|
|
88
|
-
- MCP 未启用或同步延迟
|
|
89
|
-
- 需要精确章节级别的数据
|
|
90
|
-
- 手动编辑 JSON 后即时验证
|
|
91
|
-
|
|
92
|
-
#### Layer 1: 单文件 JSON(兜底)
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
# 传统模式,加载完整文件
|
|
96
|
-
cat tracking/character-state.json
|
|
97
|
-
cat tracking/relationships.json
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
**向下兼容**:小型项目(< 300 章)继续使用单文件模式
|
|
101
|
-
|
|
102
|
-
### 3. 加载上下文
|
|
103
|
-
|
|
104
|
-
**必须加载**:
|
|
105
|
-
- **章节内容**:
|
|
106
|
-
- 如果指定 `--volume vol-XX`:仅加载该卷章节
|
|
107
|
-
- 否则:加载所有已完成章节
|
|
108
|
-
- 路径:`stories/*/content/*.md` 或 `stories/*/chapters/*.md`
|
|
109
|
-
- 故事规格:`stories/*/specification.md`
|
|
110
|
-
- 创作计划:`stories/*/creative-plan.md`
|
|
111
|
-
- **角色状态**(三层回退):
|
|
112
|
-
- Layer 3: `mcp.call('novelws-mcp/query_characters', {volume})`
|
|
113
|
-
- Layer 2: `tracking/volumes/${volume}/character-state.json`
|
|
114
|
-
- Layer 1: `tracking/character-state.json`
|
|
115
|
-
- **关系网络**(三层回退):
|
|
116
|
-
- Layer 3: `mcp.call('novelws-mcp/query_relationships', {volume})`
|
|
117
|
-
- Layer 2: `tracking/volumes/${volume}/relationships.json`
|
|
118
|
-
- Layer 1: `tracking/relationships.json`
|
|
119
|
-
|
|
120
|
-
**如有则加载**:
|
|
121
|
-
- `/analyze` 报告:`stories/*/analysis-report.md`
|
|
122
|
-
- 风格参考:`resources/memory/style-reference.md`
|
|
123
|
-
- 个人风格:`resources/memory/personal-voice.md`
|
|
124
|
-
- **情节追踪**(三层回退):
|
|
125
|
-
- Layer 3: `mcp.call('novelws-mcp/query_plot', {volume})`
|
|
126
|
-
- Layer 2: `tracking/volumes/${volume}/plot-tracker.json`
|
|
127
|
-
- Layer 1: `tracking/plot-tracker.json`
|
|
128
|
-
|
|
129
|
-
**加载 Skill**:
|
|
130
|
-
- `.claude/skills/writing-techniques/revision-polish/SKILL.md`(核心修改流程)
|
|
131
|
-
|
|
132
|
-
### 4. 初稿评估
|
|
133
|
-
|
|
134
|
-
**如果是完整修改(无 --layer 参数)**,先生成初稿评估报告:
|
|
135
|
-
|
|
136
|
-
```markdown
|
|
137
|
-
## 初稿评估报告
|
|
138
|
-
|
|
139
|
-
### 基本信息
|
|
140
|
-
- 总章数:[X] 章
|
|
141
|
-
- 总字数:[X] 字
|
|
142
|
-
- 平均章节长度:[X] 字
|
|
143
|
-
|
|
144
|
-
### 各层问题预估
|
|
145
|
-
| 层次 | 问题严重度 | 预估问题数 | 是否需要修改 |
|
|
146
|
-
|------|-----------|-----------|-------------|
|
|
147
|
-
| 结构 | [严重度] | [X] 处 | [是/否] |
|
|
148
|
-
| 节奏 | [严重度] | [X] 处 | [是/否] |
|
|
149
|
-
| 一致性 | [严重度] | [X] 处 | [是/否] |
|
|
150
|
-
| 文字 | [严重度] | [X] 处 | [是/否] |
|
|
151
|
-
|
|
152
|
-
### 建议修改策略
|
|
153
|
-
[根据评估结果给出建议]
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
### 5. 执行修改
|
|
157
|
-
|
|
158
|
-
根据参数和评估结果,按 SKILL.md 中定义的四层模型执行修改。
|
|
159
|
-
|
|
160
|
-
**每层修改的输出格式**:
|
|
161
|
-
|
|
162
|
-
#### Layer 1: 结构修改
|
|
163
|
-
|
|
164
|
-
```markdown
|
|
165
|
-
## 结构审查报告
|
|
166
|
-
|
|
167
|
-
### 结构问题
|
|
168
|
-
| 严重度 | 位置 | 问题描述 | 操作建议 |
|
|
169
|
-
|--------|------|---------|---------|
|
|
170
|
-
| [级别] | [章节] | [描述] | [具体操作] |
|
|
171
|
-
|
|
172
|
-
### 操作清单
|
|
173
|
-
1. □ [具体操作1]
|
|
174
|
-
2. □ [具体操作2]
|
|
175
|
-
|
|
176
|
-
是否执行以上修改? [Y/N/S(选择性)]
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
#### Layer 2: 节奏修改
|
|
180
|
-
|
|
181
|
-
```markdown
|
|
182
|
-
## 节奏审查报告
|
|
183
|
-
|
|
184
|
-
### 节奏曲线
|
|
185
|
-
[ASCII 节奏可视化]
|
|
186
|
-
|
|
187
|
-
### 节奏问题
|
|
188
|
-
| 严重度 | 位置 | 问题描述 | 操作建议 |
|
|
189
|
-
|--------|------|---------|---------|
|
|
190
|
-
| [级别] | [章节] | [描述] | [具体操作] |
|
|
191
|
-
|
|
192
|
-
### 操作清单
|
|
193
|
-
[具体操作列表]
|
|
194
|
-
|
|
195
|
-
是否执行以上修改? [Y/N/S(选择性)]
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
#### Layer 3: 一致性修改
|
|
199
|
-
|
|
200
|
-
```markdown
|
|
201
|
-
## 一致性审查报告
|
|
202
|
-
|
|
203
|
-
### 角色一致性
|
|
204
|
-
[角色矛盾列表]
|
|
205
|
-
|
|
206
|
-
### 时间线一致性
|
|
207
|
-
[时间线矛盾列表]
|
|
208
|
-
|
|
209
|
-
### 伏笔回收
|
|
210
|
-
[伏笔状态表]
|
|
211
|
-
|
|
212
|
-
### 操作清单
|
|
213
|
-
[具体操作列表]
|
|
214
|
-
|
|
215
|
-
是否执行以上修改? [Y/N/S(选择性)]
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
#### Layer 4: 文字润色
|
|
219
|
-
|
|
220
|
-
```markdown
|
|
221
|
-
## 文字润色报告
|
|
222
|
-
|
|
223
|
-
### 全局统计
|
|
224
|
-
[高频问题统计]
|
|
225
|
-
|
|
226
|
-
### 逐章润色建议
|
|
227
|
-
[每章的具体修改建议]
|
|
228
|
-
|
|
229
|
-
是否执行以上修改? [Y/N/S(选择性)]
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### 6. 用户确认
|
|
233
|
-
|
|
234
|
-
**每层修改都需要用户确认**:
|
|
235
|
-
- **[Y]** 全部执行 - 应用该层所有修改建议
|
|
236
|
-
- **[N]** 跳过 - 不执行该层修改,进入下一层
|
|
237
|
-
- **[S]** 选择性执行 - 逐项确认每个修改
|
|
238
|
-
|
|
239
|
-
### 7. 执行修改
|
|
240
|
-
|
|
241
|
-
用户确认后,直接修改章节文件:
|
|
242
|
-
- 读取原始章节文件
|
|
243
|
-
- 应用确认的修改
|
|
244
|
-
- 写入修改后的文件
|
|
245
|
-
- 保留原始文件备份(如用户要求)
|
|
246
|
-
|
|
247
|
-
### 8. 最终检查
|
|
248
|
-
|
|
249
|
-
所有层修改完成后,运行修改完成检查清单:
|
|
250
|
-
|
|
251
|
-
```markdown
|
|
252
|
-
## 修改完成检查清单
|
|
253
|
-
|
|
254
|
-
### 结构层
|
|
255
|
-
- [x/□] 无多余章节
|
|
256
|
-
- [x/□] 无缺失关键场景
|
|
257
|
-
- [x/□] 高潮位置合理
|
|
258
|
-
|
|
259
|
-
### 节奏层
|
|
260
|
-
- [x/□] 无连续 3 章以上节奏停滞
|
|
261
|
-
- [x/□] 紧张/舒缓交替合理
|
|
262
|
-
- [x/□] 每章结尾有钩子
|
|
263
|
-
|
|
264
|
-
### 一致性层
|
|
265
|
-
- [x/□] 角色性格前后一致
|
|
266
|
-
- [x/□] 时间线无矛盾
|
|
267
|
-
- [x/□] 伏笔回收率 > 90%
|
|
268
|
-
|
|
269
|
-
### 文字层
|
|
270
|
-
- [x/□] 无高频重复词
|
|
271
|
-
- [x/□] 无明显 AI 痕迹
|
|
272
|
-
- [x/□] 符合个人风格指南
|
|
273
|
-
|
|
274
|
-
---
|
|
275
|
-
✅ 全部通过 → 修改完成,可以执行 /export 导出
|
|
276
|
-
⚠️ 部分未通过 → 建议再次运行 /revise 针对性修改
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
---
|
|
280
|
-
|
|
281
|
-
## 使用场景
|
|
282
|
-
|
|
283
|
-
### 场景 1:完整修改流程
|
|
284
|
-
|
|
285
|
-
```bash
|
|
286
|
-
用户:/revise
|
|
287
|
-
AI:正在评估初稿...
|
|
288
|
-
|
|
289
|
-
【初稿评估报告】
|
|
290
|
-
总章数:30 章,总字数:256,000 字
|
|
291
|
-
|
|
292
|
-
各层问题预估:
|
|
293
|
-
- 结构:⚠️ 中等(3 处)
|
|
294
|
-
- 节奏:🔴 严重(8 处)
|
|
295
|
-
- 一致性:⚠️ 中等(5 处)
|
|
296
|
-
- 文字:🟡 轻微(15 处)
|
|
297
|
-
|
|
298
|
-
开始 Layer 1: 结构修改...
|
|
299
|
-
|
|
300
|
-
【结构审查报告】
|
|
301
|
-
🔴 第 8-12 章节奏停滞,建议合并
|
|
302
|
-
🟡 第 1 章开头过长
|
|
303
|
-
|
|
304
|
-
是否执行? [Y/N/S]
|
|
305
|
-
|
|
306
|
-
用户:Y
|
|
307
|
-
|
|
308
|
-
结构修改完成。进入 Layer 2: 节奏修改...
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
### 场景 2:仅文字润色
|
|
312
|
-
|
|
313
|
-
```bash
|
|
314
|
-
用户:/revise --layer polish
|
|
315
|
-
AI:跳过结构、节奏、一致性层,直接进入文字润色...
|
|
316
|
-
|
|
317
|
-
【文字润色报告】
|
|
318
|
-
🔴 "突然"出现 47 次
|
|
319
|
-
🔴 AI痕迹词 38 处
|
|
320
|
-
🟡 对话标签过多 12 处
|
|
321
|
-
|
|
322
|
-
逐章润色建议:
|
|
323
|
-
第 1 章:3 处修改建议
|
|
324
|
-
第 2 章:5 处修改建议
|
|
325
|
-
...
|
|
326
|
-
|
|
327
|
-
是否执行? [Y/N/S]
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
### 场景 3:快速模式
|
|
331
|
-
|
|
332
|
-
```bash
|
|
333
|
-
用户:/revise --quick
|
|
334
|
-
AI:快速模式:跳过结构和节奏,执行一致性 + 文字润色...
|
|
335
|
-
|
|
336
|
-
Layer 3: 一致性修改...
|
|
337
|
-
Layer 4: 文字润色...
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
### 场景 4:指定范围
|
|
341
|
-
|
|
342
|
-
```bash
|
|
343
|
-
用户:/revise --chapters 1-10
|
|
344
|
-
AI:修改范围:第 1-10 章
|
|
345
|
-
|
|
346
|
-
注意:结构修改(Layer 1)建议全局审查。
|
|
347
|
-
是否仍然只修改第 1-10 章? [Y/全局]
|
|
348
|
-
|
|
349
|
-
用户:Y
|
|
350
|
-
|
|
351
|
-
开始修改第 1-10 章...
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
### 场景 5:卷级修改(超长篇)
|
|
355
|
-
|
|
356
|
-
```bash
|
|
357
|
-
用户:/revise --volume vol-02
|
|
358
|
-
AI:修改范围:第 2 卷(第 51-100 章)
|
|
359
|
-
|
|
360
|
-
检测到分片模式,使用三层回退加载数据:
|
|
361
|
-
✓ MCP 已启用 → 使用 Layer 3 查询
|
|
362
|
-
✓ 仅加载 vol-02 的 tracking 数据
|
|
363
|
-
|
|
364
|
-
【初稿评估报告 - 第 2 卷】
|
|
365
|
-
总章数:50 章,总字数:128,000 字
|
|
366
|
-
|
|
367
|
-
各层问题预估:
|
|
368
|
-
- 结构:🟡 轻微(1 处)
|
|
369
|
-
- 节奏:⚠️ 中等(4 处)
|
|
370
|
-
- 一致性:🟡 轻微(2 处)
|
|
371
|
-
- 文字:⚠️ 中等(8 处)
|
|
372
|
-
|
|
373
|
-
开始 Layer 1: 结构修改...
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
### 场景 6:与 /analyze 联动
|
|
377
|
-
|
|
378
|
-
```bash
|
|
379
|
-
用户:/analyze
|
|
380
|
-
AI:【分析报告】发现 15 个问题...
|
|
381
|
-
|
|
382
|
-
用户:/revise
|
|
383
|
-
AI:检测到 /analyze 报告,自动映射问题到修改层:
|
|
384
|
-
- 结构问题 3 个 → Layer 1
|
|
385
|
-
- 节奏问题 5 个 → Layer 2
|
|
386
|
-
- 一致性问题 4 个 → Layer 3
|
|
387
|
-
- 文字问题 3 个 → Layer 4
|
|
388
|
-
|
|
389
|
-
开始按层修改...
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
---
|
|
393
|
-
|
|
394
|
-
## 与其他命令的关系
|
|
395
|
-
|
|
396
|
-
```text
|
|
397
|
-
/analyze → 诊断问题
|
|
398
|
-
↓
|
|
399
|
-
/revise → 系统修改(本命令)
|
|
400
|
-
↓
|
|
401
|
-
/analyze → 复查验证
|
|
402
|
-
↓
|
|
403
|
-
/export → 导出成品
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
**互补关系**:
|
|
407
|
-
- `/analyze` 发现问题,`/revise` 解决问题
|
|
408
|
-
- `/analyze --focus=style` 诊断风格,`/revise --layer polish` 修改文字
|
|
409
|
-
- `/analyze --focus=logic` 诊断逻辑,`/revise --layer consistency` 修复一致性
|
|
410
|
-
|
|
411
|
-
---
|
|
412
|
-
|
|
413
|
-
## 注意事项
|
|
414
|
-
|
|
415
|
-
### 修改原则
|
|
416
|
-
- **保守修改**:能不改就不改,只改真正有问题的
|
|
417
|
-
- **保持风格**:修改时保持作者个人风格
|
|
418
|
-
- **用户确认**:每层修改都需要用户确认后才执行
|
|
419
|
-
- **可回退**:建议用户在修改前 git commit 保存当前版本
|
|
420
|
-
|
|
421
|
-
### 修改终点
|
|
422
|
-
- 建议最多 2-3 轮修改
|
|
423
|
-
- 第 1 轮:结构 + 节奏(大改)
|
|
424
|
-
- 第 2 轮:一致性 + 文字(精修)
|
|
425
|
-
- 第 3 轮(可选):针对性微调
|
|
426
|
-
- 3 轮后仍不满意 → 问题可能在初稿设计,建议回到 `/plan`
|
|
427
|
-
|
|
428
|
-
### 性能考虑
|
|
429
|
-
- 完整修改需要读取所有章节,token 消耗较大
|
|
430
|
-
- **章节分批修改**:`--chapters 1-15`,再 `--chapters 16-30`
|
|
431
|
-
- **卷级修改**(超长篇推荐):`--volume vol-01`,再 `--volume vol-02`
|
|
432
|
-
- 每卷独立修改,避免上下文过载
|
|
433
|
-
- 可并行修改多个卷(不同会话)
|
|
434
|
-
- **三层回退优化**:
|
|
435
|
-
- 使用 MCP 时,tracking 数据查询性能提升 10x+
|
|
436
|
-
- 分片模式下,仅加载目标卷的 tracking 数据
|
|
437
|
-
- 文字润色(Layer 4)消耗最大,可按章节或卷分批执行
|
|
438
|
-
|
|
439
|
-
---
|
|
440
|
-
|
|
441
|
-
## 🔗 命令链式提示
|
|
442
|
-
|
|
443
|
-
**命令执行完成后,自动附加下一步建议**:
|
|
444
|
-
|
|
445
|
-
```
|
|
446
|
-
💡 下一步建议:
|
|
447
|
-
1️⃣ `/analyze` — 复查验证修改效果
|
|
448
|
-
2️⃣ `/write [下一章节号]` — 修改完成后继续写作
|
|
449
|
-
3️⃣ `/revise --layer polish` — 如需进一步文字润色
|
|
450
|
-
```
|