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,436 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: adaptive-style-learning
|
|
3
|
-
description: "Use when user has written 3+ chapters - automatically analyzes writing style and generates personalized style guide to improve AI consistency"
|
|
4
|
-
allowed-tools: Read, Write
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# 自适应风格学习 (Adaptive Style Learning)
|
|
8
|
-
|
|
9
|
-
## 快速参考(Quick Reference)
|
|
10
|
-
|
|
11
|
-
### 何时使用
|
|
12
|
-
- 用户已写 3+ 章(最少分析样本)
|
|
13
|
-
- 首次生成风格指南
|
|
14
|
-
- 风格发生变化需要更新
|
|
15
|
-
- AI 续写风格不一致时
|
|
16
|
-
|
|
17
|
-
### 自动激活时机
|
|
18
|
-
- 执行 `/write` 前检测到 personal-voice.md 不存在
|
|
19
|
-
- 用户说"分析我的风格""学习我的写法"
|
|
20
|
-
- 检测到已写章节 ≥ 3 章
|
|
21
|
-
|
|
22
|
-
## 核心原则 (Core Principles)
|
|
23
|
-
|
|
24
|
-
### 1. 基于实际写作而非主观描述
|
|
25
|
-
|
|
26
|
-
**传统方式(主观)**:
|
|
27
|
-
```
|
|
28
|
-
用户:"我的风格是……简洁有力,富有节奏感"
|
|
29
|
-
AI:"好的,我会模仿"
|
|
30
|
-
→ 实际不知道怎么模仿
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**风格学习方式(客观)**:
|
|
34
|
-
```
|
|
35
|
-
分析用户 10 章内容 →
|
|
36
|
-
发现:
|
|
37
|
-
- 平均句长 16 字(短句为主)
|
|
38
|
-
- 对话占比 65%(对话驱动)
|
|
39
|
-
- 形容词密度 4%(少修饰)
|
|
40
|
-
- 单句段比例 45%(视觉节奏快)
|
|
41
|
-
|
|
42
|
-
→ 生成具体指导:
|
|
43
|
-
"续写时保持短句为主(15-20字/句),对话占 60% 以上,
|
|
44
|
-
少用形容词,多用单句段"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### 2. 量化 + 定性相结合
|
|
48
|
-
|
|
49
|
-
**量化指标**:
|
|
50
|
-
- 可测量、可重复
|
|
51
|
-
- 客观、精确
|
|
52
|
-
|
|
53
|
-
**定性描述**:
|
|
54
|
-
- 风格印象
|
|
55
|
-
- 整体感受
|
|
56
|
-
- 独特特征
|
|
57
|
-
|
|
58
|
-
**两者结合**:
|
|
59
|
-
```markdown
|
|
60
|
-
## 量化特征
|
|
61
|
-
- 平均句长:16.3 字
|
|
62
|
-
- 对话占比:65.2%
|
|
63
|
-
- 形容词密度:4.1%
|
|
64
|
-
|
|
65
|
-
## 定性风格
|
|
66
|
-
- 整体:快节奏、口语化、对话驱动
|
|
67
|
-
- 句式:以短句为主,偶尔长句用于环境描写
|
|
68
|
-
- 用词:简洁克制,少修饰,多动词
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### 3. 提供具体的续写指导
|
|
72
|
-
|
|
73
|
-
不只是"描述风格",而是"如何模仿风格"。
|
|
74
|
-
|
|
75
|
-
```markdown
|
|
76
|
-
## 续写指导
|
|
77
|
-
|
|
78
|
-
### 句子层面
|
|
79
|
-
✓ 保持 15-20 字/句(平均 16 字)
|
|
80
|
-
✓ 60% 以上用短句(<15 字)
|
|
81
|
-
✓ 避免超过 40 字的复杂长句
|
|
82
|
-
|
|
83
|
-
### 段落层面
|
|
84
|
-
✓ 平均段长 60-80 字
|
|
85
|
-
✓ 40% 左右用单句段(制造节奏)
|
|
86
|
-
✓ 对话独立成段
|
|
87
|
-
|
|
88
|
-
### 词汇层面
|
|
89
|
-
✓ 形容词控制在 5% 以内
|
|
90
|
-
✓ 多用动词,少用形容词副词
|
|
91
|
-
✓ 避免:"非常""十分""极其"等强调副词
|
|
92
|
-
|
|
93
|
-
### 对话层面
|
|
94
|
-
✓ 对话占 60-70%
|
|
95
|
-
✓ 对话简短、有节奏
|
|
96
|
-
✓ 少用对话标签("他说""她说")
|
|
97
|
-
|
|
98
|
-
### 节奏层面
|
|
99
|
-
✓ 每章 3-4 个小场景
|
|
100
|
-
✓ 场景转换干脆,少过渡
|
|
101
|
-
✓ 快进为主,少拖沓
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## 实践应用 (Best Practices)
|
|
105
|
-
|
|
106
|
-
### 执行流程
|
|
107
|
-
|
|
108
|
-
**Step 1: 检测可用章节**
|
|
109
|
-
```
|
|
110
|
-
读取 stories/[current]/content/
|
|
111
|
-
检查章节数量:
|
|
112
|
-
- < 3 章:样本不足,建议再写几章
|
|
113
|
-
- 3-10 章:可以分析,但结果可能不稳定
|
|
114
|
-
- > 10 章:理想,结果可靠
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
**Step 2: 读取章节内容**
|
|
118
|
-
```
|
|
119
|
-
读取最近 10 章(或全部,如果 < 10 章)
|
|
120
|
-
跳过:
|
|
121
|
-
- 大纲文件
|
|
122
|
-
- 未完成草稿
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
**Step 3: 分析风格特征**
|
|
126
|
-
```
|
|
127
|
-
按照分析算法提取特征:
|
|
128
|
-
- 句子层面:平均句长、句长分布
|
|
129
|
-
- 词汇层面:形容词密度、高频词
|
|
130
|
-
- 段落层面:平均段长、单句段比例
|
|
131
|
-
- 对话层面:对话占比
|
|
132
|
-
- 节奏层面:场景频率
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
**Step 4: 生成风格报告**
|
|
136
|
-
```
|
|
137
|
-
输出到控制台:
|
|
138
|
-
📊 风格分析报告
|
|
139
|
-
├── 句子特征:平均 16.3 字,短句占 62%
|
|
140
|
-
├── 词汇特征:形容词 4.1%,高频词 "他""说""了"
|
|
141
|
-
├── 对话占比:65.2%
|
|
142
|
-
└── 风格印象:快节奏、对话驱动、口语化
|
|
143
|
-
|
|
144
|
-
💡 建议:
|
|
145
|
-
- 保持短句为主
|
|
146
|
-
- 对话占 60% 以上
|
|
147
|
-
- 少用修饰词
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
**Step 5: 写入 personal-voice.md**
|
|
151
|
-
```
|
|
152
|
-
生成完整的风格指南文件
|
|
153
|
-
保存到:resources/memory/personal-voice.md
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
**Step 6: 确认和调整**
|
|
157
|
-
```
|
|
158
|
-
询问用户:
|
|
159
|
-
"已生成风格指南,请查看 resources/memory/personal-voice.md
|
|
160
|
-
是否需要调整?"
|
|
161
|
-
|
|
162
|
-
用户可以手动微调:
|
|
163
|
-
- 删除不准确的描述
|
|
164
|
-
- 添加未捕获的特征
|
|
165
|
-
- 强调某些风格要点
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### 与其他命令的集成
|
|
169
|
-
|
|
170
|
-
**在 /write 前自动检查**:
|
|
171
|
-
```
|
|
172
|
-
pre-write-checklist 检测:
|
|
173
|
-
- personal-voice.md 是否存在?
|
|
174
|
-
- 如果不存在且已写 3+ 章 →
|
|
175
|
-
建议:"执行风格学习生成风格指南"
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
**定期更新**:
|
|
179
|
-
```
|
|
180
|
-
每写 10 章后提醒:
|
|
181
|
-
"已写 10 章,建议更新风格指南以反映风格变化"
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
## 生成的 personal-voice.md 格式
|
|
185
|
-
|
|
186
|
-
```markdown
|
|
187
|
-
# 个人写作风格指南
|
|
188
|
-
|
|
189
|
-
> 本文件由风格学习 Skill 自动生成,基于已写章节分析
|
|
190
|
-
> 生成日期:2025-02-07
|
|
191
|
-
> 分析章节:第 1-10 章(共 25,000 字)
|
|
192
|
-
|
|
193
|
-
---
|
|
194
|
-
|
|
195
|
-
## 📊 量化风格特征
|
|
196
|
-
|
|
197
|
-
### 句子层面
|
|
198
|
-
- **平均句长**:16.3 字
|
|
199
|
-
- **句长分布**:
|
|
200
|
-
- 短句(<15字):62%
|
|
201
|
-
- 中句(15-30字):32%
|
|
202
|
-
- 长句(>30字):6%
|
|
203
|
-
- **句长标准差**:8.2(中等变化)
|
|
204
|
-
|
|
205
|
-
### 词汇层面
|
|
206
|
-
- **形容词密度**:4.1%(低)
|
|
207
|
-
- **副词密度**:2.8%(低)
|
|
208
|
-
- **对话标签频率**:30%(较少使用"他说""她说")
|
|
209
|
-
- **高频词 Top 10**:他(1200次)、说(890次)、了(850次)...
|
|
210
|
-
|
|
211
|
-
### 段落层面
|
|
212
|
-
- **平均段长**:68.5 字
|
|
213
|
-
- **单句段比例**:43%(高,制造节奏感)
|
|
214
|
-
- **段落类型分布**:
|
|
215
|
-
- 对话段:55%
|
|
216
|
-
- 叙述段:30%
|
|
217
|
-
- 描写段:15%
|
|
218
|
-
|
|
219
|
-
### 叙述层面
|
|
220
|
-
- **对话占比**:65.2%(对话驱动)
|
|
221
|
-
- **内心独白**:8.3%(少)
|
|
222
|
-
- **环境描写**:12.5%(适中)
|
|
223
|
-
- **动作描写**:14.0%(较多)
|
|
224
|
-
|
|
225
|
-
---
|
|
226
|
-
|
|
227
|
-
## 🎨 定性风格印象
|
|
228
|
-
|
|
229
|
-
### 整体风格
|
|
230
|
-
快节奏、口语化、对话驱动的现代都市风格
|
|
231
|
-
|
|
232
|
-
### 句式特点
|
|
233
|
-
- **以短句为主**:制造紧凑感和节奏感
|
|
234
|
-
- **长短交替**:偶尔用长句缓冲节奏
|
|
235
|
-
- **多用主动句**:直接、有力
|
|
236
|
-
|
|
237
|
-
### 用词倾向
|
|
238
|
-
- **简洁克制**:少用形容词副词
|
|
239
|
-
- **口语化**:接地气,少书面语
|
|
240
|
-
- **动词驱动**:多用动作,少用状态
|
|
241
|
-
|
|
242
|
-
### 对话风格
|
|
243
|
-
- **对话密集**:占 60% 以上
|
|
244
|
-
- **简短有力**:对话多为短句
|
|
245
|
-
- **少标签**:靠节奏和上下文区分说话人
|
|
246
|
-
|
|
247
|
-
### 段落节奏
|
|
248
|
-
- **短段为主**:60-80 字/段
|
|
249
|
-
- **大量单句段**:制造视觉节奏
|
|
250
|
-
- **白空间多**:页面呼吸感强
|
|
251
|
-
|
|
252
|
-
---
|
|
253
|
-
|
|
254
|
-
## ✍️ 续写指导(重点)
|
|
255
|
-
|
|
256
|
-
### 句子层面指导
|
|
257
|
-
|
|
258
|
-
**目标**:平均句长 15-20 字
|
|
259
|
-
|
|
260
|
-
✓ **好的示例**(符合你的风格):
|
|
261
|
-
```
|
|
262
|
-
他转身离开。
|
|
263
|
-
她没有追。
|
|
264
|
-
外面下起了雨,淅淅沥沥的。
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
✗ **避免的示例**(不符合你的风格):
|
|
268
|
-
```
|
|
269
|
-
他转过身去,毫不犹豫地向门口走去,头也不回一下,
|
|
270
|
-
仿佛她从来不曾存在过一样。
|
|
271
|
-
(单句 30+ 字,太长)
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
### 段落层面指导
|
|
275
|
-
|
|
276
|
-
**目标**:60-80 字/段,40% 单句段
|
|
277
|
-
|
|
278
|
-
✓ **好的示例**:
|
|
279
|
-
```
|
|
280
|
-
他转身离开。
|
|
281
|
-
|
|
282
|
-
她没有追。
|
|
283
|
-
|
|
284
|
-
窗外下起了雨,淅淅沥沥的。她盯着那扇门,
|
|
285
|
-
手里的咖啡早就凉了。
|
|
286
|
-
```
|
|
287
|
-
(短段 + 单句段 + 节奏)
|
|
288
|
-
|
|
289
|
-
✗ **避免的示例**:
|
|
290
|
-
```
|
|
291
|
-
他转身离开了,她没有追,只是站在原地,
|
|
292
|
-
看着他的背影消失在门口,窗外下起了雨,
|
|
293
|
-
淅淅沥沥的,她盯着那扇门,手里的咖啡早就凉了。
|
|
294
|
-
```
|
|
295
|
-
(一整段,无节奏)
|
|
296
|
-
|
|
297
|
-
### 对话层面指导
|
|
298
|
-
|
|
299
|
-
**目标**:对话占 60-70%,简短直接
|
|
300
|
-
|
|
301
|
-
✓ **好的示例**:
|
|
302
|
-
```
|
|
303
|
-
"你走吧。"
|
|
304
|
-
他停下。
|
|
305
|
-
"真的?"
|
|
306
|
-
"嗯。"
|
|
307
|
-
"好。"
|
|
308
|
-
他走了。
|
|
309
|
-
```
|
|
310
|
-
(对话驱动,简短,少标签)
|
|
311
|
-
|
|
312
|
-
✗ **避免的示例**:
|
|
313
|
-
```
|
|
314
|
-
她对他说:"你走吧,我不想再看到你了。"
|
|
315
|
-
他停下脚步,转过头来问道:"你真的要这样吗?"
|
|
316
|
-
她点点头说:"嗯,我是认真的。"
|
|
317
|
-
他叹了口气说:"好吧,那我走了。"
|
|
318
|
-
```
|
|
319
|
-
(标签过多,对话太完整)
|
|
320
|
-
|
|
321
|
-
### 词汇层面指导
|
|
322
|
-
|
|
323
|
-
**目标**:形容词 < 5%,多用动词
|
|
324
|
-
|
|
325
|
-
✓ **好的用词**:
|
|
326
|
-
- 动词:走、跑、停、看、说、笑
|
|
327
|
-
- 简洁:雨、风、门、手
|
|
328
|
-
- 少修饰:直接描述行为
|
|
329
|
-
|
|
330
|
-
✗ **避免的用词**:
|
|
331
|
-
- 过度修饰:"非常""十分""极其""特别"
|
|
332
|
-
- 华丽形容词:"绚丽的""华美的""璀璨的"
|
|
333
|
-
- 书面语:"然而""因此""故而"
|
|
334
|
-
|
|
335
|
-
### 节奏层面指导
|
|
336
|
-
|
|
337
|
-
**目标**:快节奏,每章 3-4 个场景
|
|
338
|
-
|
|
339
|
-
✓ **节奏控制**:
|
|
340
|
-
- 场景转换干脆:少过渡,直接跳
|
|
341
|
-
- 时间快进:跳过无聊部分
|
|
342
|
-
- 对话推进:用对话而非叙述推进情节
|
|
343
|
-
|
|
344
|
-
---
|
|
345
|
-
|
|
346
|
-
## 🔄 风格更新记录
|
|
347
|
-
|
|
348
|
-
| 日期 | 章节范围 | 主要变化 |
|
|
349
|
-
|------|---------|---------|
|
|
350
|
-
| 2025-02-07 | 1-10 章 | 初始分析 |
|
|
351
|
-
|
|
352
|
-
---
|
|
353
|
-
|
|
354
|
-
## 📝 手动调整区(可选)
|
|
355
|
-
|
|
356
|
-
用户可以在此添加自动分析未捕获的风格特征:
|
|
357
|
-
|
|
358
|
-
```
|
|
359
|
-
[用户手动添加的风格要点]
|
|
360
|
-
- 例如:喜欢用"淡淡的""微微"等柔和词汇
|
|
361
|
-
- 例如:避免使用"突然",用行为暗示突然性
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
---
|
|
365
|
-
|
|
366
|
-
**使用建议**:
|
|
367
|
-
每次执行 /write 前,先快速扫描本文件,刷新风格记忆。
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
## 常见陷阱 (Common Pitfalls)
|
|
371
|
-
|
|
372
|
-
### 1. 样本不足导致不准确
|
|
373
|
-
|
|
374
|
-
**症状**:
|
|
375
|
-
- 只分析 1-2 章
|
|
376
|
-
- 风格特征不稳定
|
|
377
|
-
|
|
378
|
-
**解决**:
|
|
379
|
-
- 最少 3 章
|
|
380
|
-
- 建议 10+ 章
|
|
381
|
-
|
|
382
|
-
### 2. 过度依赖量化指标
|
|
383
|
-
|
|
384
|
-
**症状**:
|
|
385
|
-
- 只看数字,不看感觉
|
|
386
|
-
- 机械地复制特征
|
|
387
|
-
|
|
388
|
-
**解决**:
|
|
389
|
-
- 量化 + 定性结合
|
|
390
|
-
- 保留灵活性
|
|
391
|
-
|
|
392
|
-
### 3. 风格指南过时
|
|
393
|
-
|
|
394
|
-
**症状**:
|
|
395
|
-
- 最初 10 章生成的指南
|
|
396
|
-
- 但现在已写到 50 章,风格变化
|
|
397
|
-
|
|
398
|
-
**解决**:
|
|
399
|
-
- 定期更新(每 10 章)
|
|
400
|
-
- 检测风格漂移
|
|
401
|
-
|
|
402
|
-
## 检查清单 (Checklist)
|
|
403
|
-
|
|
404
|
-
执行风格学习前:
|
|
405
|
-
- [ ] 已写章节 ≥ 3 章?
|
|
406
|
-
- [ ] 章节内容完整(非草稿)?
|
|
407
|
-
- [ ] personal-voice.md 不存在或需要更新?
|
|
408
|
-
|
|
409
|
-
执行后验证:
|
|
410
|
-
- [ ] personal-voice.md 已生成?
|
|
411
|
-
- [ ] 量化指标合理?
|
|
412
|
-
- [ ] 续写指导清晰可执行?
|
|
413
|
-
- [ ] 用户确认风格描述准确?
|
|
414
|
-
|
|
415
|
-
## 进阶功能(可选)
|
|
416
|
-
|
|
417
|
-
### 风格漂移检测
|
|
418
|
-
```
|
|
419
|
-
每写 5 章,重新分析风格:
|
|
420
|
-
- 对比新风格 vs 旧风格
|
|
421
|
-
- 如果差异 > 20% →
|
|
422
|
-
提醒:"检测到风格变化,建议更新风格指南"
|
|
423
|
-
```
|
|
424
|
-
|
|
425
|
-
### 多人协作风格融合
|
|
426
|
-
```
|
|
427
|
-
如果多人合著:
|
|
428
|
-
- 分别分析每人风格
|
|
429
|
-
- 提取共同特征
|
|
430
|
-
- 生成统一风格指南
|
|
431
|
-
```
|
|
432
|
-
|
|
433
|
-
---
|
|
434
|
-
|
|
435
|
-
**核心价值**:
|
|
436
|
-
让 AI 真正理解用户风格,而非依赖模糊的"学我的风格"指令。
|
|
File without changes
|