novelws 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +161 -0
- package/LICENSE +22 -0
- package/README.md +372 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +50 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/check.d.ts +6 -0
- package/dist/commands/check.d.ts.map +1 -0
- package/dist/commands/check.js +32 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/init.d.ts +6 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +160 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/plugin.d.ts +6 -0
- package/dist/commands/plugin.d.ts.map +1 -0
- package/dist/commands/plugin.js +135 -0
- package/dist/commands/plugin.js.map +1 -0
- package/dist/commands/upgrade.d.ts +6 -0
- package/dist/commands/upgrade.d.ts.map +1 -0
- package/dist/commands/upgrade.js +92 -0
- package/dist/commands/upgrade.js.map +1 -0
- package/dist/core/config.d.ts +72 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +136 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/errors.d.ts +59 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +125 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/platform.d.ts +27 -0
- package/dist/core/platform.d.ts.map +1 -0
- package/dist/core/platform.js +75 -0
- package/dist/core/platform.js.map +1 -0
- package/dist/core/template.d.ts +35 -0
- package/dist/core/template.d.ts.map +1 -0
- package/dist/core/template.js +94 -0
- package/dist/core/template.js.map +1 -0
- package/dist/plugins/identifier.d.ts +13 -0
- package/dist/plugins/identifier.d.ts.map +1 -0
- package/dist/plugins/identifier.js +72 -0
- package/dist/plugins/identifier.js.map +1 -0
- package/dist/plugins/installers/base.d.ts +27 -0
- package/dist/plugins/installers/base.d.ts.map +1 -0
- package/dist/plugins/installers/base.js +30 -0
- package/dist/plugins/installers/base.js.map +1 -0
- package/dist/plugins/installers/github.d.ts +22 -0
- package/dist/plugins/installers/github.d.ts.map +1 -0
- package/dist/plugins/installers/github.js +133 -0
- package/dist/plugins/installers/github.js.map +1 -0
- package/dist/plugins/installers/local.d.ts +16 -0
- package/dist/plugins/installers/local.d.ts.map +1 -0
- package/dist/plugins/installers/local.js +69 -0
- package/dist/plugins/installers/local.js.map +1 -0
- package/dist/plugins/installers/npm.d.ts +20 -0
- package/dist/plugins/installers/npm.d.ts.map +1 -0
- package/dist/plugins/installers/npm.js +99 -0
- package/dist/plugins/installers/npm.js.map +1 -0
- package/dist/plugins/manager.d.ts +77 -0
- package/dist/plugins/manager.d.ts.map +1 -0
- package/dist/plugins/manager.js +349 -0
- package/dist/plugins/manager.js.map +1 -0
- package/dist/plugins/registry.d.ts +48 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +111 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/types.d.ts +66 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +2 -0
- package/dist/plugins/types.js.map +1 -0
- package/dist/plugins/validator.d.ts +19 -0
- package/dist/plugins/validator.d.ts.map +1 -0
- package/dist/plugins/validator.js +164 -0
- package/dist/plugins/validator.js.map +1 -0
- package/dist/utils/logger.d.ts +13 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +48 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/project.d.ts +24 -0
- package/dist/utils/project.d.ts.map +1 -0
- package/dist/utils/project.js +61 -0
- package/dist/utils/project.js.map +1 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +21 -0
- package/dist/version.js.map +1 -0
- package/package.json +76 -0
- package/plugins/authentic-voice/README.md +31 -0
- package/plugins/authentic-voice/commands/authentic-voice.md +73 -0
- package/plugins/authentic-voice/commands/authenticity-audit.md +37 -0
- package/plugins/authentic-voice/config.yaml +30 -0
- package/plugins/authentic-voice/experts/authentic-editor.md +27 -0
- package/plugins/export/README.md +319 -0
- package/plugins/export/commands/export.md +460 -0
- package/plugins/export/commands/generate-cover.md +256 -0
- package/plugins/export/commands/metadata.md +309 -0
- package/plugins/export/config.yaml +47 -0
- package/plugins/export/experts/publishing-expert.md +171 -0
- package/plugins/export/templates/epub/chapter-template.html +13 -0
- package/plugins/export/templates/epub/cover-template.html +14 -0
- package/plugins/export/templates/epub/stylesheet.css +200 -0
- package/plugins/export/templates/pdf/ebook-style.css +137 -0
- package/plugins/export/templates/pdf/print-style.css +179 -0
- package/plugins/export/templates/platforms/jinjiang-format.md +101 -0
- package/plugins/export/templates/platforms/qidian-format.md +108 -0
- package/plugins/export/templates/platforms/tomato-format.md +95 -0
- package/plugins/translate/README.md +265 -0
- package/plugins/translate/commands/glossary.md +731 -0
- package/plugins/translate/commands/translate-preview.md +543 -0
- package/plugins/translate/commands/translate.md +649 -0
- package/plugins/translate/config.yaml +43 -0
- package/plugins/translate/experts/literary-translator.md +605 -0
- package/templates/commands/analyze.md +1485 -0
- package/templates/commands/checklist.md +434 -0
- package/templates/commands/clarify.md +257 -0
- package/templates/commands/constitution.md +257 -0
- package/templates/commands/expert.md +136 -0
- package/templates/commands/plan.md +749 -0
- package/templates/commands/recap.md +613 -0
- package/templates/commands/relations.md +96 -0
- package/templates/commands/revise.md +341 -0
- package/templates/commands/specify.md +682 -0
- package/templates/commands/tasks.md +142 -0
- package/templates/commands/timeline.md +73 -0
- package/templates/commands/track-init.md +137 -0
- package/templates/commands/track.md +463 -0
- package/templates/commands/write.md +1264 -0
- package/templates/config/keyword-mappings.json +106 -0
- package/templates/knowledge/audit-config.json +26 -0
- package/templates/knowledge/character-profiles.md +152 -0
- package/templates/knowledge/character-voices.md +137 -0
- package/templates/knowledge/locations.md +184 -0
- package/templates/knowledge/world-setting.md +121 -0
- package/templates/knowledge-base/README.md +285 -0
- package/templates/knowledge-base/character-archetypes/01-hero.md +233 -0
- package/templates/knowledge-base/character-archetypes/02-mentor.md +177 -0
- package/templates/knowledge-base/character-archetypes/03-shadow.md +221 -0
- package/templates/knowledge-base/character-archetypes/04-ally.md +178 -0
- package/templates/knowledge-base/character-archetypes/05-shapeshifter.md +177 -0
- package/templates/knowledge-base/character-archetypes/06-trickster.md +181 -0
- package/templates/knowledge-base/character-archetypes/07-threshold-guardian.md +177 -0
- package/templates/knowledge-base/character-archetypes/08-herald.md +180 -0
- package/templates/knowledge-base/character-archetypes/09-father.md +249 -0
- package/templates/knowledge-base/character-archetypes/10-mother.md +202 -0
- package/templates/knowledge-base/character-archetypes/11-child.md +183 -0
- package/templates/knowledge-base/character-archetypes/12-sage.md +202 -0
- package/templates/knowledge-base/character-archetypes/README.md +60 -0
- package/templates/knowledge-base/character-archetypes/application-guide.md +222 -0
- package/templates/knowledge-base/character-archetypes/archetype-combinations.md +242 -0
- package/templates/knowledge-base/character-archetypes/config.yaml +28 -0
- package/templates/knowledge-base/character-archetypes/examples-analysis.md +223 -0
- package/templates/knowledge-base/craft/character-arc.md +1153 -0
- package/templates/knowledge-base/craft/dialogue.md +1170 -0
- package/templates/knowledge-base/craft/pacing.md +1200 -0
- package/templates/knowledge-base/craft/scene-structure.md +1136 -0
- package/templates/knowledge-base/craft/show-not-tell.md +1012 -0
- package/templates/knowledge-base/emotional-beats/01-first-meeting.md +145 -0
- package/templates/knowledge-base/emotional-beats/02-bonding-moment.md +226 -0
- package/templates/knowledge-base/emotional-beats/03-declaration.md +284 -0
- package/templates/knowledge-base/emotional-beats/04-triumph.md +240 -0
- package/templates/knowledge-base/emotional-beats/05-reunion.md +396 -0
- package/templates/knowledge-base/emotional-beats/06-forgiveness.md +204 -0
- package/templates/knowledge-base/emotional-beats/07-betrayal.md +204 -0
- package/templates/knowledge-base/emotional-beats/08-loss.md +214 -0
- package/templates/knowledge-base/emotional-beats/09-rejection.md +254 -0
- package/templates/knowledge-base/emotional-beats/10-failure.md +244 -0
- package/templates/knowledge-base/emotional-beats/11-misunderstanding.md +205 -0
- package/templates/knowledge-base/emotional-beats/12-farewell.md +283 -0
- package/templates/knowledge-base/emotional-beats/13-revelation.md +242 -0
- package/templates/knowledge-base/emotional-beats/14-point-of-no-return.md +215 -0
- package/templates/knowledge-base/emotional-beats/15-dark-night.md +244 -0
- package/templates/knowledge-base/emotional-beats/16-sacrifice.md +246 -0
- package/templates/knowledge-base/emotional-beats/17-awakening.md +246 -0
- package/templates/knowledge-base/emotional-beats/18-confrontation.md +217 -0
- package/templates/knowledge-base/emotional-beats/19-bittersweet-goodbye.md +368 -0
- package/templates/knowledge-base/emotional-beats/20-moral-dilemma.md +248 -0
- package/templates/knowledge-base/emotional-beats/21-temptation.md +240 -0
- package/templates/knowledge-base/emotional-beats/22-redemption.md +210 -0
- package/templates/knowledge-base/emotional-beats/README.md +104 -0
- package/templates/knowledge-base/emotional-beats/beat-sequences.md +276 -0
- package/templates/knowledge-base/emotional-beats/config.yaml +30 -0
- package/templates/knowledge-base/emotional-beats/pacing-guide.md +390 -0
- package/templates/knowledge-base/genres/historical.md +1127 -0
- package/templates/knowledge-base/genres/mystery.md +1123 -0
- package/templates/knowledge-base/genres/revenge.md +846 -0
- package/templates/knowledge-base/genres/romance.md +948 -0
- package/templates/knowledge-base/genres/sci-fi.md +156 -0
- package/templates/knowledge-base/genres/thriller.md +166 -0
- package/templates/knowledge-base/genres/wuxia.md +143 -0
- package/templates/knowledge-base/references/README.md +96 -0
- package/templates/knowledge-base/references/china-1920s/culture.md +423 -0
- package/templates/knowledge-base/references/china-1920s/daily-life.md +616 -0
- package/templates/knowledge-base/references/china-1920s/overview.md +298 -0
- package/templates/knowledge-base/references/china-1920s/society.md +703 -0
- package/templates/knowledge-base/references/china-1920s/warlords.md +427 -0
- package/templates/knowledge-base/references/cultivation-world/daily-life.md +108 -0
- package/templates/knowledge-base/references/cultivation-world/overview.md +64 -0
- package/templates/knowledge-base/references/cultivation-world/power-system.md +108 -0
- package/templates/knowledge-base/references/cultivation-world/sects.md +104 -0
- package/templates/knowledge-base/references/cultivation-world/world-setting.md +108 -0
- package/templates/knowledge-base/references/modern-workplace/corporate.md +115 -0
- package/templates/knowledge-base/references/modern-workplace/daily-life.md +129 -0
- package/templates/knowledge-base/references/modern-workplace/overview.md +73 -0
- package/templates/knowledge-base/references/modern-workplace/relationships.md +107 -0
- package/templates/knowledge-base/references/modern-workplace/tech-industry.md +131 -0
- package/templates/knowledge-base/references/tang-dynasty/culture.md +135 -0
- package/templates/knowledge-base/references/tang-dynasty/daily-life.md +139 -0
- package/templates/knowledge-base/references/tang-dynasty/overview.md +76 -0
- package/templates/knowledge-base/references/tang-dynasty/politics.md +121 -0
- package/templates/knowledge-base/references/tang-dynasty/society.md +126 -0
- package/templates/knowledge-base/requirements/README.md +240 -0
- package/templates/knowledge-base/requirements/anti-ai-v3.md +46 -0
- package/templates/knowledge-base/requirements/anti-ai-v4.md +430 -0
- package/templates/knowledge-base/requirements/fast-paced.md +552 -0
- package/templates/knowledge-base/requirements/no-poison.md +60 -0
- package/templates/knowledge-base/requirements/romance-angst.md +102 -0
- package/templates/knowledge-base/requirements/romance-sweet.md +63 -0
- package/templates/knowledge-base/requirements/serious-literature.md +45 -0
- package/templates/knowledge-base/requirements/strong-emotion.md +60 -0
- package/templates/knowledge-base/styles/README.md +302 -0
- package/templates/knowledge-base/styles/ancient-style.md +579 -0
- package/templates/knowledge-base/styles/literary.md +439 -0
- package/templates/knowledge-base/styles/minimal.md +472 -0
- package/templates/knowledge-base/styles/natural-voice.md +930 -0
- package/templates/knowledge-base/styles/web-novel.md +525 -0
- package/templates/memory/constitution.md +140 -0
- package/templates/memory/personal-voice.md +113 -0
- package/templates/scripts/README.md +187 -0
- package/templates/scripts/bash/analyze-story.sh +170 -0
- package/templates/scripts/bash/check-consistency.sh +463 -0
- package/templates/scripts/bash/check-plot.sh +374 -0
- package/templates/scripts/bash/check-timeline.sh +346 -0
- package/templates/scripts/bash/check-world.sh +395 -0
- package/templates/scripts/bash/check-writing-state.sh +854 -0
- package/templates/scripts/bash/clarify-story.sh +117 -0
- package/templates/scripts/bash/common.sh +151 -0
- package/templates/scripts/bash/constitution.sh +114 -0
- package/templates/scripts/bash/generate-tasks.sh +65 -0
- package/templates/scripts/bash/init-tracking.sh +183 -0
- package/templates/scripts/bash/manage-relations.sh +174 -0
- package/templates/scripts/bash/plan-story.sh +100 -0
- package/templates/scripts/bash/specify-story.sh +93 -0
- package/templates/scripts/bash/tasks-story.sh +96 -0
- package/templates/scripts/bash/test-word-count.sh +182 -0
- package/templates/scripts/bash/tests/bench-preload-cache.sh +100 -0
- package/templates/scripts/bash/tests/run-all-benchmarks.sh +16 -0
- package/templates/scripts/bash/tests/test-cache-semantics.sh +199 -0
- package/templates/scripts/bash/tests/test-cross-platform.sh +35 -0
- package/templates/scripts/bash/tests/test-edge-cases-bash.sh +60 -0
- package/templates/scripts/bash/tests/test-phase1-bash.sh +28 -0
- package/templates/scripts/bash/tests/test-preload-cache.sh +123 -0
- package/templates/scripts/bash/tests/test-regex-precompile.sh +89 -0
- package/templates/scripts/bash/tests/test-regression-bash.sh +42 -0
- package/templates/scripts/bash/tests/test-task6-verification.sh +200 -0
- package/templates/scripts/bash/text-audit.sh +144 -0
- package/templates/scripts/bash/track-progress.sh +194 -0
- package/templates/scripts/powershell/analyze-story.ps1 +171 -0
- package/templates/scripts/powershell/check-analyze-stage.ps1 +110 -0
- package/templates/scripts/powershell/check-consistency.ps1 +138 -0
- package/templates/scripts/powershell/check-plot.ps1 +139 -0
- package/templates/scripts/powershell/check-timeline.ps1 +112 -0
- package/templates/scripts/powershell/check-writing-state.ps1 +490 -0
- package/templates/scripts/powershell/check-writing-state.ps1.backup +135 -0
- package/templates/scripts/powershell/clarify-story.ps1 +107 -0
- package/templates/scripts/powershell/common.ps1 +36 -0
- package/templates/scripts/powershell/constitution.ps1 +142 -0
- package/templates/scripts/powershell/generate-tasks.ps1 +75 -0
- package/templates/scripts/powershell/init-tracking.ps1 +98 -0
- package/templates/scripts/powershell/manage-relations.ps1 +134 -0
- package/templates/scripts/powershell/plan-story.ps1 +96 -0
- package/templates/scripts/powershell/specify-story.ps1 +82 -0
- package/templates/scripts/powershell/tests/bench-ps-cache.ps1 +80 -0
- package/templates/scripts/powershell/tests/test-cross-platform.ps1 +27 -0
- package/templates/scripts/powershell/tests/test-edge-cases-ps.ps1 +29 -0
- package/templates/scripts/powershell/tests/test-phase1-ps.ps1 +28 -0
- package/templates/scripts/powershell/tests/test-ps-cache.ps1 +73 -0
- package/templates/scripts/powershell/tests/test-regression-ps.ps1 +40 -0
- package/templates/scripts/powershell/text-audit.ps1 +100 -0
- package/templates/scripts/powershell/track-progress.ps1 +105 -0
- package/templates/skills/genre-knowledge/fantasy/SKILL.md +355 -0
- package/templates/skills/genre-knowledge/mystery/SKILL.md +337 -0
- package/templates/skills/genre-knowledge/romance/SKILL.md +228 -0
- package/templates/skills/genre-knowledge/sci-fi/SKILL.md +65 -0
- package/templates/skills/genre-knowledge/thriller/SKILL.md +95 -0
- package/templates/skills/quality-assurance/consistency-checker/SKILL.md +341 -0
- package/templates/skills/quality-assurance/continuity-tracker/SKILL.md +157 -0
- package/templates/skills/quality-assurance/forgotten-elements/SKILL.md +147 -0
- package/templates/skills/quality-assurance/getting-started/SKILL.md +224 -0
- package/templates/skills/quality-assurance/pacing-monitor/SKILL.md +143 -0
- package/templates/skills/quality-assurance/pov-validator/SKILL.md +135 -0
- package/templates/skills/quality-assurance/pre-write-checklist/SKILL.md +583 -0
- package/templates/skills/quality-assurance/requirement-detector/CONFLICT_RESOLUTION.md +119 -0
- package/templates/skills/quality-assurance/requirement-detector/EXAMPLES.md +146 -0
- package/templates/skills/quality-assurance/requirement-detector/KEYWORDS.md +160 -0
- package/templates/skills/quality-assurance/requirement-detector/SKILL.md +149 -0
- package/templates/skills/quality-assurance/setting-detector/SKILL.md +611 -0
- package/templates/skills/quality-assurance/style-detector/CONFLICT_RESOLUTION.md +126 -0
- package/templates/skills/quality-assurance/style-detector/EXAMPLES.md +206 -0
- package/templates/skills/quality-assurance/style-detector/KEYWORDS.md +207 -0
- package/templates/skills/quality-assurance/style-detector/SKILL.md +126 -0
- package/templates/skills/quality-assurance/workflow-guide/SKILL.md +381 -0
- package/templates/skills/writing-techniques/character-arc/SKILL.md +267 -0
- package/templates/skills/writing-techniques/dialogue-techniques/SKILL.md +366 -0
- package/templates/skills/writing-techniques/multi-thread-narrative/SKILL.md +553 -0
- package/templates/skills/writing-techniques/multi-thread-narrative/experts/thread-analyst.md +226 -0
- package/templates/skills/writing-techniques/pacing-control/SKILL.md +377 -0
- package/templates/skills/writing-techniques/reader-expectation/SKILL.md +578 -0
- package/templates/skills/writing-techniques/reader-expectation/experts/expectation-analyst.md +209 -0
- package/templates/skills/writing-techniques/revision-polish/SKILL.md +496 -0
- package/templates/skills/writing-techniques/revision-polish/experts/revision-editor.md +221 -0
- package/templates/skills/writing-techniques/scene-structure/SKILL.md +361 -0
- package/templates/skills/writing-techniques/style-learning/SKILL.md +436 -0
- package/templates/specification-example.md +146 -0
- package/templates/tracking/character-state.json +78 -0
- package/templates/tracking/plot-tracker.json +62 -0
- package/templates/tracking/relationships.json +70 -0
- package/templates/tracking/timeline.json +49 -0
- package/templates/tracking/tracking-log.md +110 -0
- package/templates/tracking/validation-rules.json +128 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 系统性修改润色:四层修改流程(结构→节奏→一致性→文字),支持分层修改、指定范围、快速模式
|
|
3
|
+
argument-hint: [--layer=structure|pacing|consistency|polish] [--chapters=1-10] [--chapter=5] [--quick]
|
|
4
|
+
allowed-tools: Bash(find:*), Bash(wc:*), Bash(grep:*), Read(//**), Write(//stories/**), Bash(*)
|
|
5
|
+
model: claude-sonnet-4-5-20250929
|
|
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
|
+
|
|
40
|
+
**快速模式**:
|
|
41
|
+
- `--quick` → 跳过结构和节奏,直接做一致性 + 文字润色
|
|
42
|
+
|
|
43
|
+
**默认模式**(无参数):
|
|
44
|
+
- 完整四层修改流程
|
|
45
|
+
|
|
46
|
+
### 2. 加载上下文
|
|
47
|
+
|
|
48
|
+
**必须加载**:
|
|
49
|
+
- 所有已完成章节:`stories/*/content/*.md` 或 `stories/*/chapters/*.md`
|
|
50
|
+
- 故事规格:`stories/*/specification.md`
|
|
51
|
+
- 创作计划:`stories/*/creative-plan.md`
|
|
52
|
+
- 角色状态:`spec/tracking/character-state.json`
|
|
53
|
+
- 关系网络:`spec/tracking/relationships.json`
|
|
54
|
+
|
|
55
|
+
**如有则加载**:
|
|
56
|
+
- `/analyze` 报告:`stories/*/analysis-report.md`
|
|
57
|
+
- 风格参考:`memory/style-reference.md`
|
|
58
|
+
- 个人风格:`memory/personal-voice.md`
|
|
59
|
+
- 情节追踪:`spec/tracking/plot-tracker.json`
|
|
60
|
+
|
|
61
|
+
**加载 Skill**:
|
|
62
|
+
- `templates/skills/writing-techniques/revision-polish/SKILL.md`(核心修改流程)
|
|
63
|
+
|
|
64
|
+
### 3. 初稿评估
|
|
65
|
+
|
|
66
|
+
**如果是完整修改(无 --layer 参数)**,先生成初稿评估报告:
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
## 初稿评估报告
|
|
70
|
+
|
|
71
|
+
### 基本信息
|
|
72
|
+
- 总章数:[X] 章
|
|
73
|
+
- 总字数:[X] 字
|
|
74
|
+
- 平均章节长度:[X] 字
|
|
75
|
+
|
|
76
|
+
### 各层问题预估
|
|
77
|
+
| 层次 | 问题严重度 | 预估问题数 | 是否需要修改 |
|
|
78
|
+
|------|-----------|-----------|-------------|
|
|
79
|
+
| 结构 | [严重度] | [X] 处 | [是/否] |
|
|
80
|
+
| 节奏 | [严重度] | [X] 处 | [是/否] |
|
|
81
|
+
| 一致性 | [严重度] | [X] 处 | [是/否] |
|
|
82
|
+
| 文字 | [严重度] | [X] 处 | [是/否] |
|
|
83
|
+
|
|
84
|
+
### 建议修改策略
|
|
85
|
+
[根据评估结果给出建议]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 4. 执行修改
|
|
89
|
+
|
|
90
|
+
根据参数和评估结果,按 SKILL.md 中定义的四层模型执行修改。
|
|
91
|
+
|
|
92
|
+
**每层修改的输出格式**:
|
|
93
|
+
|
|
94
|
+
#### Layer 1: 结构修改
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
## 结构审查报告
|
|
98
|
+
|
|
99
|
+
### 结构问题
|
|
100
|
+
| 严重度 | 位置 | 问题描述 | 操作建议 |
|
|
101
|
+
|--------|------|---------|---------|
|
|
102
|
+
| [级别] | [章节] | [描述] | [具体操作] |
|
|
103
|
+
|
|
104
|
+
### 操作清单
|
|
105
|
+
1. □ [具体操作1]
|
|
106
|
+
2. □ [具体操作2]
|
|
107
|
+
|
|
108
|
+
是否执行以上修改? [Y/N/S(选择性)]
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
#### Layer 2: 节奏修改
|
|
112
|
+
|
|
113
|
+
```markdown
|
|
114
|
+
## 节奏审查报告
|
|
115
|
+
|
|
116
|
+
### 节奏曲线
|
|
117
|
+
[ASCII 节奏可视化]
|
|
118
|
+
|
|
119
|
+
### 节奏问题
|
|
120
|
+
| 严重度 | 位置 | 问题描述 | 操作建议 |
|
|
121
|
+
|--------|------|---------|---------|
|
|
122
|
+
| [级别] | [章节] | [描述] | [具体操作] |
|
|
123
|
+
|
|
124
|
+
### 操作清单
|
|
125
|
+
[具体操作列表]
|
|
126
|
+
|
|
127
|
+
是否执行以上修改? [Y/N/S(选择性)]
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### Layer 3: 一致性修改
|
|
131
|
+
|
|
132
|
+
```markdown
|
|
133
|
+
## 一致性审查报告
|
|
134
|
+
|
|
135
|
+
### 角色一致性
|
|
136
|
+
[角色矛盾列表]
|
|
137
|
+
|
|
138
|
+
### 时间线一致性
|
|
139
|
+
[时间线矛盾列表]
|
|
140
|
+
|
|
141
|
+
### 伏笔回收
|
|
142
|
+
[伏笔状态表]
|
|
143
|
+
|
|
144
|
+
### 操作清单
|
|
145
|
+
[具体操作列表]
|
|
146
|
+
|
|
147
|
+
是否执行以上修改? [Y/N/S(选择性)]
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
#### Layer 4: 文字润色
|
|
151
|
+
|
|
152
|
+
```markdown
|
|
153
|
+
## 文字润色报告
|
|
154
|
+
|
|
155
|
+
### 全局统计
|
|
156
|
+
[高频问题统计]
|
|
157
|
+
|
|
158
|
+
### 逐章润色建议
|
|
159
|
+
[每章的具体修改建议]
|
|
160
|
+
|
|
161
|
+
是否执行以上修改? [Y/N/S(选择性)]
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### 5. 用户确认
|
|
165
|
+
|
|
166
|
+
**每层修改都需要用户确认**:
|
|
167
|
+
- **[Y]** 全部执行 - 应用该层所有修改建议
|
|
168
|
+
- **[N]** 跳过 - 不执行该层修改,进入下一层
|
|
169
|
+
- **[S]** 选择性执行 - 逐项确认每个修改
|
|
170
|
+
|
|
171
|
+
### 6. 执行修改
|
|
172
|
+
|
|
173
|
+
用户确认后,直接修改章节文件:
|
|
174
|
+
- 读取原始章节文件
|
|
175
|
+
- 应用确认的修改
|
|
176
|
+
- 写入修改后的文件
|
|
177
|
+
- 保留原始文件备份(如用户要求)
|
|
178
|
+
|
|
179
|
+
### 7. 最终检查
|
|
180
|
+
|
|
181
|
+
所有层修改完成后,运行修改完成检查清单:
|
|
182
|
+
|
|
183
|
+
```markdown
|
|
184
|
+
## 修改完成检查清单
|
|
185
|
+
|
|
186
|
+
### 结构层
|
|
187
|
+
- [x/□] 无多余章节
|
|
188
|
+
- [x/□] 无缺失关键场景
|
|
189
|
+
- [x/□] 高潮位置合理
|
|
190
|
+
|
|
191
|
+
### 节奏层
|
|
192
|
+
- [x/□] 无连续 3 章以上节奏停滞
|
|
193
|
+
- [x/□] 紧张/舒缓交替合理
|
|
194
|
+
- [x/□] 每章结尾有钩子
|
|
195
|
+
|
|
196
|
+
### 一致性层
|
|
197
|
+
- [x/□] 角色性格前后一致
|
|
198
|
+
- [x/□] 时间线无矛盾
|
|
199
|
+
- [x/□] 伏笔回收率 > 90%
|
|
200
|
+
|
|
201
|
+
### 文字层
|
|
202
|
+
- [x/□] 无高频重复词
|
|
203
|
+
- [x/□] 无明显 AI 痕迹
|
|
204
|
+
- [x/□] 符合个人风格指南
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
✅ 全部通过 → 修改完成,可以执行 /export 导出
|
|
208
|
+
⚠️ 部分未通过 → 建议再次运行 /revise 针对性修改
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 使用场景
|
|
214
|
+
|
|
215
|
+
### 场景 1:完整修改流程
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
用户:/revise
|
|
219
|
+
AI:正在评估初稿...
|
|
220
|
+
|
|
221
|
+
【初稿评估报告】
|
|
222
|
+
总章数:30 章,总字数:256,000 字
|
|
223
|
+
|
|
224
|
+
各层问题预估:
|
|
225
|
+
- 结构:⚠️ 中等(3 处)
|
|
226
|
+
- 节奏:🔴 严重(8 处)
|
|
227
|
+
- 一致性:⚠️ 中等(5 处)
|
|
228
|
+
- 文字:🟡 轻微(15 处)
|
|
229
|
+
|
|
230
|
+
开始 Layer 1: 结构修改...
|
|
231
|
+
|
|
232
|
+
【结构审查报告】
|
|
233
|
+
🔴 第 8-12 章节奏停滞,建议合并
|
|
234
|
+
🟡 第 1 章开头过长
|
|
235
|
+
|
|
236
|
+
是否执行? [Y/N/S]
|
|
237
|
+
|
|
238
|
+
用户:Y
|
|
239
|
+
|
|
240
|
+
结构修改完成。进入 Layer 2: 节奏修改...
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### 场景 2:仅文字润色
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
用户:/revise --layer polish
|
|
247
|
+
AI:跳过结构、节奏、一致性层,直接进入文字润色...
|
|
248
|
+
|
|
249
|
+
【文字润色报告】
|
|
250
|
+
🔴 "突然"出现 47 次
|
|
251
|
+
🔴 AI痕迹词 38 处
|
|
252
|
+
🟡 对话标签过多 12 处
|
|
253
|
+
|
|
254
|
+
逐章润色建议:
|
|
255
|
+
第 1 章:3 处修改建议
|
|
256
|
+
第 2 章:5 处修改建议
|
|
257
|
+
...
|
|
258
|
+
|
|
259
|
+
是否执行? [Y/N/S]
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### 场景 3:快速模式
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
用户:/revise --quick
|
|
266
|
+
AI:快速模式:跳过结构和节奏,执行一致性 + 文字润色...
|
|
267
|
+
|
|
268
|
+
Layer 3: 一致性修改...
|
|
269
|
+
Layer 4: 文字润色...
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### 场景 4:指定范围
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
用户:/revise --chapters 1-10
|
|
276
|
+
AI:修改范围:第 1-10 章
|
|
277
|
+
|
|
278
|
+
注意:结构修改(Layer 1)建议全局审查。
|
|
279
|
+
是否仍然只修改第 1-10 章? [Y/全局]
|
|
280
|
+
|
|
281
|
+
用户:Y
|
|
282
|
+
|
|
283
|
+
开始修改第 1-10 章...
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### 场景 5:与 /analyze 联动
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
用户:/analyze
|
|
290
|
+
AI:【分析报告】发现 15 个问题...
|
|
291
|
+
|
|
292
|
+
用户:/revise
|
|
293
|
+
AI:检测到 /analyze 报告,自动映射问题到修改层:
|
|
294
|
+
- 结构问题 3 个 → Layer 1
|
|
295
|
+
- 节奏问题 5 个 → Layer 2
|
|
296
|
+
- 一致性问题 4 个 → Layer 3
|
|
297
|
+
- 文字问题 3 个 → Layer 4
|
|
298
|
+
|
|
299
|
+
开始按层修改...
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## 与其他命令的关系
|
|
305
|
+
|
|
306
|
+
```text
|
|
307
|
+
/analyze → 诊断问题
|
|
308
|
+
↓
|
|
309
|
+
/revise → 系统修改(本命令)
|
|
310
|
+
↓
|
|
311
|
+
/analyze → 复查验证
|
|
312
|
+
↓
|
|
313
|
+
/export → 导出成品
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
**互补关系**:
|
|
317
|
+
- `/analyze` 发现问题,`/revise` 解决问题
|
|
318
|
+
- `/analyze --focus=style` 诊断风格,`/revise --layer polish` 修改文字
|
|
319
|
+
- `/analyze --focus=logic` 诊断逻辑,`/revise --layer consistency` 修复一致性
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
## 注意事项
|
|
324
|
+
|
|
325
|
+
### 修改原则
|
|
326
|
+
- **保守修改**:能不改就不改,只改真正有问题的
|
|
327
|
+
- **保持风格**:修改时保持作者个人风格
|
|
328
|
+
- **用户确认**:每层修改都需要用户确认后才执行
|
|
329
|
+
- **可回退**:建议用户在修改前 git commit 保存当前版本
|
|
330
|
+
|
|
331
|
+
### 修改终点
|
|
332
|
+
- 建议最多 2-3 轮修改
|
|
333
|
+
- 第 1 轮:结构 + 节奏(大改)
|
|
334
|
+
- 第 2 轮:一致性 + 文字(精修)
|
|
335
|
+
- 第 3 轮(可选):针对性微调
|
|
336
|
+
- 3 轮后仍不满意 → 问题可能在初稿设计,建议回到 `/plan`
|
|
337
|
+
|
|
338
|
+
### 性能考虑
|
|
339
|
+
- 完整修改需要读取所有章节,token 消耗较大
|
|
340
|
+
- 建议分批修改:先 `--chapters 1-15`,再 `--chapters 16-30`
|
|
341
|
+
- 文字润色(Layer 4)消耗最大,可按章节分批执行
|