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,102 +0,0 @@
|
|
|
1
|
-
# 虐文规范
|
|
2
|
-
|
|
3
|
-
## 核心理念
|
|
4
|
-
|
|
5
|
-
**虐要有理,虐要有度** - 让读者虐得爽,不是虐得烦。
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 核心要求
|
|
10
|
-
|
|
11
|
-
### 1. 虐的理由
|
|
12
|
-
|
|
13
|
-
**必须有充分理由**:
|
|
14
|
-
- 误会(但要合理)
|
|
15
|
-
- 外部阻力(家族、命运)
|
|
16
|
-
- 性格缺陷
|
|
17
|
-
- 过去的创伤
|
|
18
|
-
|
|
19
|
-
**不能无缘无故虐**。
|
|
20
|
-
|
|
21
|
-
### 2. 虐的过程
|
|
22
|
-
|
|
23
|
-
**标准流程**:
|
|
24
|
-
```
|
|
25
|
-
甜蜜(建立感情)
|
|
26
|
-
↓
|
|
27
|
-
危机出现
|
|
28
|
-
↓
|
|
29
|
-
分离/误会
|
|
30
|
-
↓
|
|
31
|
-
各自痛苦
|
|
32
|
-
↓
|
|
33
|
-
真相揭示
|
|
34
|
-
↓
|
|
35
|
-
和解(或BE)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### 3. 虐的限度
|
|
39
|
-
|
|
40
|
-
**允许的虐**:
|
|
41
|
-
- 精神折磨
|
|
42
|
-
- 思念之苦
|
|
43
|
-
- 无法在一起的痛苦
|
|
44
|
-
|
|
45
|
-
**谨慎的虐**:
|
|
46
|
-
- 身体伤害
|
|
47
|
-
- 背叛(需要合理解释)
|
|
48
|
-
- 第三者(不能真的在一起)
|
|
49
|
-
|
|
50
|
-
**禁止的虐**:
|
|
51
|
-
- 毫无理由的虐待
|
|
52
|
-
- 无底线背叛
|
|
53
|
-
- 纯粹为虐而虐
|
|
54
|
-
|
|
55
|
-
### 4. 虐后的和解
|
|
56
|
-
|
|
57
|
-
**如果是HE**:
|
|
58
|
-
- 必须有和解过程
|
|
59
|
-
- 不能突然就好了
|
|
60
|
-
- 需要道歉、解释、原谅
|
|
61
|
-
|
|
62
|
-
**如果是BE**:
|
|
63
|
-
- 也要给读者一个说法
|
|
64
|
-
- 不能烂尾
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## 虐点设计
|
|
69
|
-
|
|
70
|
-
### 类型 1:误会虐
|
|
71
|
-
```
|
|
72
|
-
她误以为他不爱了。
|
|
73
|
-
他误以为她移情别恋。
|
|
74
|
-
两人都在痛苦,却不说破。
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### 类型 2:分离虐
|
|
78
|
-
```
|
|
79
|
-
明明相爱,却不能在一起。
|
|
80
|
-
距离、身份、命运,都是阻碍。
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### 类型 3:时机虐
|
|
84
|
-
```
|
|
85
|
-
他爱她时,她不爱他。
|
|
86
|
-
她爱他时,他已有了别人。
|
|
87
|
-
错过,是最痛的虐。
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## 虐度等级
|
|
93
|
-
|
|
94
|
-
- 微虐:小矛盾
|
|
95
|
-
- 中虐:分分合合
|
|
96
|
-
- 重虐:生离死别
|
|
97
|
-
- 极虐:BE结局
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
**版本**:v1.0
|
|
102
|
-
**更新**:2025-10-19
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# 甜文规范
|
|
2
|
-
|
|
3
|
-
## 核心理念
|
|
4
|
-
|
|
5
|
-
**糖分充足,冲突适度** - 让读者吃糖吃到爽。
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 核心要求
|
|
10
|
-
|
|
11
|
-
### 1. 糖分密度
|
|
12
|
-
|
|
13
|
-
**推荐配置**:
|
|
14
|
-
- 小糖(互动、关心):每章3-5个
|
|
15
|
-
- 中糖(表白、亲密):每3-5章1个
|
|
16
|
-
- 大糖(确认关系、重要时刻):每10章1个
|
|
17
|
-
|
|
18
|
-
### 2. 甜蜜时刻设计
|
|
19
|
-
|
|
20
|
-
#### 类型 1:日常小甜
|
|
21
|
-
```
|
|
22
|
-
"冷吗?"
|
|
23
|
-
她还没回答,外套已经披在肩上。
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
#### 类型 2:暖心细节
|
|
27
|
-
```
|
|
28
|
-
他记得她不吃香菜。
|
|
29
|
-
桌上的菜,一根香菜都没有。
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
#### 类型 3:情话
|
|
33
|
-
```
|
|
34
|
-
"你知道吗?"
|
|
35
|
-
"什么?"
|
|
36
|
-
"遇见你之后,我才知道什么叫心动。"
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 3. 冲突控制
|
|
40
|
-
|
|
41
|
-
**允许的冲突**:
|
|
42
|
-
- 小误会(1-2章解决)
|
|
43
|
-
- 外部阻力(家人、工作)
|
|
44
|
-
- 性格磨合
|
|
45
|
-
|
|
46
|
-
**禁止的冲突**:
|
|
47
|
-
- 长时间误会(超过5章)
|
|
48
|
-
- 第三者插足(真的喜欢)
|
|
49
|
-
- BE倾向剧情
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## 甜度等级
|
|
54
|
-
|
|
55
|
-
- 微甜:偶尔撒糖
|
|
56
|
-
- 中甜:糖分充足
|
|
57
|
-
- 齁甜:全程高糖
|
|
58
|
-
- 甜到发腻:慎用
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
**版本**:v1.0
|
|
63
|
-
**更新**:2025-10-19
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# 严肃文学规范
|
|
2
|
-
|
|
3
|
-
## 核心理念
|
|
4
|
-
|
|
5
|
-
**深度优先,思想性为先** - 不只讲故事,更要探讨人性。
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 核心要求
|
|
10
|
-
|
|
11
|
-
### 1. 现实主义手法
|
|
12
|
-
- 真实的人物
|
|
13
|
-
- 真实的矛盾
|
|
14
|
-
- 真实的社会环境
|
|
15
|
-
|
|
16
|
-
### 2. 人物深度
|
|
17
|
-
- 复杂的性格
|
|
18
|
-
- 合理的动机
|
|
19
|
-
- 成长的弧光
|
|
20
|
-
|
|
21
|
-
### 3. 思想性
|
|
22
|
-
- 探讨人性
|
|
23
|
-
- 社会问题
|
|
24
|
-
- 哲学思考
|
|
25
|
-
|
|
26
|
-
### 4. 语言克制
|
|
27
|
-
- 不煽情
|
|
28
|
-
- 不说教
|
|
29
|
-
- 留白
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## 与爽文的区别
|
|
34
|
-
|
|
35
|
-
| 维度 | 严肃文学 | 爽文 |
|
|
36
|
-
|------|---------|------|
|
|
37
|
-
| 目的 | 思考 | 娱乐 |
|
|
38
|
-
| 节奏 | 慢 | 快 |
|
|
39
|
-
| 冲突 | 内在 | 外在 |
|
|
40
|
-
| 结局 | 开放 | 圆满 |
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
**版本**:v1.0
|
|
45
|
-
**更新**:2025-10-19
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# 强情绪规范
|
|
2
|
-
|
|
3
|
-
## 核心理念
|
|
4
|
-
|
|
5
|
-
**情绪饱满,冲击力强** - 让读者有强烈的情感体验。
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 核心要求
|
|
10
|
-
|
|
11
|
-
### 1. 情绪爆发点
|
|
12
|
-
|
|
13
|
-
每10-15章至少1个情绪爆发点:
|
|
14
|
-
- 愤怒爆发
|
|
15
|
-
- 悲伤决堤
|
|
16
|
-
- 喜悦满溢
|
|
17
|
-
- 恐惧极致
|
|
18
|
-
|
|
19
|
-
### 2. 情绪铺垫
|
|
20
|
-
|
|
21
|
-
**不能突然爆发,要有铺垫**:
|
|
22
|
-
```
|
|
23
|
-
压抑(3章) → 累积(2章) → 爆发(1章)
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
### 3. 情绪表达
|
|
27
|
-
|
|
28
|
-
#### ✅ 通过行为
|
|
29
|
-
```
|
|
30
|
-
愤怒:砸东西、颤抖、咬牙
|
|
31
|
-
悲伤:无声哭泣、蜷缩、发呆
|
|
32
|
-
喜悦:大笑、跳跃、拥抱
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
#### ❌ 直接说明
|
|
36
|
-
```
|
|
37
|
-
"她很生气" → 不够
|
|
38
|
-
"她气得浑身发抖" → 更好
|
|
39
|
-
"她抓起杯子砸向墙壁" → 最好
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## 情绪节奏
|
|
45
|
-
|
|
46
|
-
**波浪式**:
|
|
47
|
-
```
|
|
48
|
-
高潮 → 平缓 → 高潮 → 平缓
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
**不要**:
|
|
52
|
-
```
|
|
53
|
-
一直高潮(读者麻木)
|
|
54
|
-
一直平缓(读者无聊)
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
**版本**:v1.0
|
|
60
|
-
**更新**:2025-10-19
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
# 脚本工具集
|
|
2
|
-
|
|
3
|
-
本目录包含 Novel Writer Skills 的命令行脚本工具,作为 Claude Code Slash Commands 的替代方案。
|
|
4
|
-
|
|
5
|
-
## 📂 目录结构
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
scripts/
|
|
9
|
-
├── bash/ # macOS/Linux 脚本
|
|
10
|
-
├── powershell/ # Windows 脚本
|
|
11
|
-
└── README.md # 本文档
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## 🔄 novel-writer-skills 适配说明
|
|
15
|
-
|
|
16
|
-
这些脚本已从 [novel-writer](https://github.com/wordflowlab/novel-writer) 移植并适配到 novel-writer-skills 项目结构:
|
|
17
|
-
|
|
18
|
-
### 路径差异
|
|
19
|
-
|
|
20
|
-
| 文件 | novel-writer | novel-writer-skills |
|
|
21
|
-
|------|-------------|-------------------|
|
|
22
|
-
| 宪法文件 | `memory/constitution.md` | `resources/memory/constitution.md` |
|
|
23
|
-
| 故事规格 | `stories/*/specification.md` | `stories/*/specification.md` ✅ |
|
|
24
|
-
| 追踪数据 | `tracking/*.json` | `tracking/*.json` ✅ |
|
|
25
|
-
|
|
26
|
-
**所有脚本已自动适配新路径**,无需手动修改!
|
|
27
|
-
|
|
28
|
-
## 🎯 使用场景
|
|
29
|
-
|
|
30
|
-
虽然 Novel Writer Skills 主要为 Claude Code 设计,但这些脚本提供了:
|
|
31
|
-
|
|
32
|
-
- ✅ **命令行替代方案** - 在终端中直接执行操作
|
|
33
|
-
- ✅ **自动化工作流** - 集成到 CI/CD 或自动化脚本中
|
|
34
|
-
- ✅ **批处理操作** - 处理多个故事或批量检查
|
|
35
|
-
- ✅ **独立工具** - 不依赖 Claude Code 的独立功能
|
|
36
|
-
|
|
37
|
-
## 🚀 快速开始
|
|
38
|
-
|
|
39
|
-
### macOS/Linux 用户
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
# 进入项目根目录
|
|
43
|
-
cd my-novel
|
|
44
|
-
|
|
45
|
-
# 使用脚本(示例:创建宪法)
|
|
46
|
-
bash resources/scripts/bash/constitution.sh
|
|
47
|
-
|
|
48
|
-
# 或者添加到 PATH
|
|
49
|
-
export PATH="$PATH:$(pwd)/resources/scripts/bash"
|
|
50
|
-
constitution.sh
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### Windows 用户
|
|
54
|
-
|
|
55
|
-
```powershell
|
|
56
|
-
# 进入项目根目录
|
|
57
|
-
cd my-novel
|
|
58
|
-
|
|
59
|
-
# 使用脚本(示例:创建宪法)
|
|
60
|
-
.\resources\scripts\powershell\constitution.ps1
|
|
61
|
-
|
|
62
|
-
# 或者添加到环境变量
|
|
63
|
-
$env:PATH += ";$(Get-Location)\resources\scripts\powershell"
|
|
64
|
-
constitution.ps1
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
## 📚 核心脚本
|
|
68
|
-
|
|
69
|
-
### 七步方法论
|
|
70
|
-
|
|
71
|
-
| 脚本 | 功能 | 对应命令 |
|
|
72
|
-
|-----|------|---------|
|
|
73
|
-
| `constitution.sh/ps1` | 创建创作宪法 | `/constitution` |
|
|
74
|
-
| `specify-story.sh/ps1` | 定义故事规格 | `/specify` |
|
|
75
|
-
| `clarify-story.sh/ps1` | 澄清模糊点 | `/clarify` |
|
|
76
|
-
| `plan-story.sh/ps1` | 制定创作计划 | `/plan` |
|
|
77
|
-
| `generate-tasks.sh/ps1` | 生成任务清单 | `/tasks` |
|
|
78
|
-
| `analyze-story.sh/ps1` | 质量验证分析 | `/analyze` |
|
|
79
|
-
|
|
80
|
-
### 追踪与检查
|
|
81
|
-
|
|
82
|
-
| 脚本 | 功能 | 对应命令 |
|
|
83
|
-
|-----|------|---------|
|
|
84
|
-
| `init-tracking.sh/ps1` | 初始化追踪系统 | `/track-init` |
|
|
85
|
-
| `track-progress.sh/ps1` | 综合追踪更新 | `/track` |
|
|
86
|
-
| `check-plot.sh/ps1` | 情节一致性检查 | `/plot-check` |
|
|
87
|
-
| `check-timeline.sh/ps1` | 时间线管理 | `/timeline` |
|
|
88
|
-
| `manage-relations.sh/ps1` | 角色关系追踪 | `/relations` |
|
|
89
|
-
| `check-world.sh/ps1` | 世界观验证 | `/world-check` |
|
|
90
|
-
| `check-consistency.sh/ps1` | 一致性检查 | - |
|
|
91
|
-
| `check-writing-state.sh/ps1` | 写作状态检查 | - |
|
|
92
|
-
|
|
93
|
-
### 工具脚本
|
|
94
|
-
|
|
95
|
-
| 脚本 | 功能 |
|
|
96
|
-
|-----|------|
|
|
97
|
-
| `common.sh/ps1` | 通用函数库(被其他脚本引用) |
|
|
98
|
-
| `text-audit.sh/ps1` | 文本审计工具 |
|
|
99
|
-
| `test-word-count.sh` | 字数统计(仅 bash) |
|
|
100
|
-
|
|
101
|
-
## 🔧 通用函数库
|
|
102
|
-
|
|
103
|
-
`common.sh` 和 `common.ps1` 提供了以下公共函数:
|
|
104
|
-
|
|
105
|
-
### Bash 函数
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
get_project_root() # 获取项目根目录
|
|
109
|
-
get_current_story() # 获取当前故事目录
|
|
110
|
-
get_active_story() # 获取活跃故事名称
|
|
111
|
-
create_numbered_dir() # 创建带编号的目录
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### PowerShell 函数
|
|
115
|
-
|
|
116
|
-
```powershell
|
|
117
|
-
Get-ProjectRoot # 获取项目根目录
|
|
118
|
-
Get-CurrentStoryDir # 获取当前故事目录
|
|
119
|
-
Get-ActiveStory # 获取活跃故事名称
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
## ⚠️ 注意事项
|
|
123
|
-
|
|
124
|
-
1. **项目根目录识别** - 脚本通过查找 `resources/config/config.json` 确定项目根目录
|
|
125
|
-
2. **执行权限** - Linux/macOS 用户需要确保脚本有执行权限:
|
|
126
|
-
```bash
|
|
127
|
-
chmod +x resources/scripts/bash/*.sh
|
|
128
|
-
```
|
|
129
|
-
3. **与 Slash Commands 的区别**:
|
|
130
|
-
- Slash Commands 在 Claude Code 中使用,有 AI 交互能力
|
|
131
|
-
- 脚本适合自动化和批处理,无 AI 交互
|
|
132
|
-
- 推荐优先使用 Slash Commands 以获得最佳体验
|
|
133
|
-
|
|
134
|
-
## 🆚 何时使用脚本 vs Slash Commands
|
|
135
|
-
|
|
136
|
-
| 场景 | 推荐方式 |
|
|
137
|
-
|-----|---------|
|
|
138
|
-
| 日常创作、需要 AI 协助 | ✅ Slash Commands |
|
|
139
|
-
| 批量处理、自动化 | ✅ 脚本 |
|
|
140
|
-
| CI/CD 集成 | ✅ 脚本 |
|
|
141
|
-
| 学习和理解工作流 | ✅ 脚本(可查看源码) |
|
|
142
|
-
| 快速检查和验证 | ✅ 脚本 |
|
|
143
|
-
|
|
144
|
-
## 📖 示例:完整工作流
|
|
145
|
-
|
|
146
|
-
```bash
|
|
147
|
-
# 1. 创建宪法
|
|
148
|
-
bash constitution.sh
|
|
149
|
-
|
|
150
|
-
# 2. 定义故事规格
|
|
151
|
-
bash specify-story.sh
|
|
152
|
-
|
|
153
|
-
# 3. 澄清模糊点(通常需要人工参与)
|
|
154
|
-
bash clarify-story.sh
|
|
155
|
-
|
|
156
|
-
# 4. 制定计划
|
|
157
|
-
bash plan-story.sh
|
|
158
|
-
|
|
159
|
-
# 5. 生成任务
|
|
160
|
-
bash generate-tasks.sh
|
|
161
|
-
|
|
162
|
-
# 6. 初始化追踪
|
|
163
|
-
bash init-tracking.sh
|
|
164
|
-
|
|
165
|
-
# 7. 写作过程中定期追踪
|
|
166
|
-
bash track-progress.sh
|
|
167
|
-
|
|
168
|
-
# 8. 最终分析
|
|
169
|
-
bash analyze-story.sh
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
## 🔗 相关文档
|
|
173
|
-
|
|
174
|
-
- [Novel Writer Skills 主文档](../../README.md)
|
|
175
|
-
- [命令详解](../../docs/guides/commands.md)
|
|
176
|
-
- [入门指南](../../docs/guides/getting-started.md)
|
|
177
|
-
|
|
178
|
-
## 💡 提示
|
|
179
|
-
|
|
180
|
-
这些脚本是从 [novel-writer](https://github.com/wordflowlab/novel-writer) 项目移植而来,经过调整以适配 Novel Writer Skills 的项目结构。
|
|
181
|
-
|
|
182
|
-
如果你在多个 AI 工具间切换,也可以考虑使用完整版的 [novel-writer](https://github.com/wordflowlab/novel-writer)。
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
**Happy Writing!** ✨📚
|
|
187
|
-
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# 故事分析验证脚本
|
|
4
|
-
# 用于 /analyze 命令
|
|
5
|
-
|
|
6
|
-
set -e
|
|
7
|
-
|
|
8
|
-
# Source common functions
|
|
9
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
10
|
-
source "$SCRIPT_DIR/common.sh"
|
|
11
|
-
|
|
12
|
-
# Parse arguments
|
|
13
|
-
STORY_NAME="$1"
|
|
14
|
-
ANALYSIS_TYPE="${2:-full}" # full, compliance, quality, progress
|
|
15
|
-
|
|
16
|
-
# Get project root
|
|
17
|
-
PROJECT_ROOT=$(get_project_root)
|
|
18
|
-
cd "$PROJECT_ROOT"
|
|
19
|
-
|
|
20
|
-
# 确定故事路径
|
|
21
|
-
if [ -z "$STORY_NAME" ]; then
|
|
22
|
-
STORY_NAME=$(get_active_story)
|
|
23
|
-
fi
|
|
24
|
-
|
|
25
|
-
STORY_DIR="stories/$STORY_NAME"
|
|
26
|
-
|
|
27
|
-
# 检查必要文件
|
|
28
|
-
check_story_files() {
|
|
29
|
-
local missing_files=()
|
|
30
|
-
|
|
31
|
-
# 检查基准文档
|
|
32
|
-
[ ! -f "resources/memory/constitution.md" ] && missing_files+=("宪法文件")
|
|
33
|
-
[ ! -f "$STORY_DIR/specification.md" ] && missing_files+=("规格文件")
|
|
34
|
-
[ ! -f "$STORY_DIR/creative-plan.md" ] && missing_files+=("计划文件")
|
|
35
|
-
|
|
36
|
-
if [ ${#missing_files[@]} -gt 0 ]; then
|
|
37
|
-
echo "⚠️ 缺少以下基准文档:"
|
|
38
|
-
for file in "${missing_files[@]}"; do
|
|
39
|
-
echo " - $file"
|
|
40
|
-
done
|
|
41
|
-
return 1
|
|
42
|
-
fi
|
|
43
|
-
|
|
44
|
-
return 0
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
# 统计内容
|
|
48
|
-
analyze_content() {
|
|
49
|
-
local content_dir="$STORY_DIR/content"
|
|
50
|
-
local total_words=0
|
|
51
|
-
local chapter_count=0
|
|
52
|
-
|
|
53
|
-
if [ -d "$content_dir" ]; then
|
|
54
|
-
echo "内容统计:"
|
|
55
|
-
echo ""
|
|
56
|
-
for file in "$content_dir"/*.md; do
|
|
57
|
-
if [ -f "$file" ]; then
|
|
58
|
-
((chapter_count++))
|
|
59
|
-
# 使用准确的中文字数统计
|
|
60
|
-
local words=$(count_chinese_words "$file")
|
|
61
|
-
((total_words += words))
|
|
62
|
-
local filename=$(basename "$file")
|
|
63
|
-
echo " $filename: $words 字"
|
|
64
|
-
fi
|
|
65
|
-
done
|
|
66
|
-
echo ""
|
|
67
|
-
echo " 总字数:$total_words"
|
|
68
|
-
echo " 章节数:$chapter_count"
|
|
69
|
-
if [ $chapter_count -gt 0 ]; then
|
|
70
|
-
echo " 平均章节长度:$((total_words / chapter_count)) 字"
|
|
71
|
-
fi
|
|
72
|
-
else
|
|
73
|
-
echo "内容统计:"
|
|
74
|
-
echo " 尚未开始写作"
|
|
75
|
-
fi
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
# 检查任务完成度
|
|
79
|
-
check_task_completion() {
|
|
80
|
-
local tasks_file="$STORY_DIR/tasks.md"
|
|
81
|
-
if [ ! -f "$tasks_file" ]; then
|
|
82
|
-
echo "任务文件不存在"
|
|
83
|
-
return
|
|
84
|
-
fi
|
|
85
|
-
|
|
86
|
-
local total_tasks=$(grep -c "^- \[" "$tasks_file" 2>/dev/null || echo 0)
|
|
87
|
-
local completed_tasks=$(grep -c "^- \[x\]" "$tasks_file" 2>/dev/null || echo 0)
|
|
88
|
-
local in_progress=$(grep -c "^- \[~\]" "$tasks_file" 2>/dev/null || echo 0)
|
|
89
|
-
local pending=$((total_tasks - completed_tasks - in_progress))
|
|
90
|
-
|
|
91
|
-
echo "任务进度:"
|
|
92
|
-
echo " 总任务:$total_tasks"
|
|
93
|
-
echo " 已完成:$completed_tasks"
|
|
94
|
-
echo " 进行中:$in_progress"
|
|
95
|
-
echo " 未开始:$pending"
|
|
96
|
-
|
|
97
|
-
if [ $total_tasks -gt 0 ]; then
|
|
98
|
-
local completion_rate=$((completed_tasks * 100 / total_tasks))
|
|
99
|
-
echo " 完成率:$completion_rate%"
|
|
100
|
-
fi
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
# 检查规格符合度
|
|
104
|
-
check_specification_compliance() {
|
|
105
|
-
local spec_file="$STORY_DIR/specification.md"
|
|
106
|
-
|
|
107
|
-
echo "规格符合度检查:"
|
|
108
|
-
|
|
109
|
-
# 检查P0需求(简化版)
|
|
110
|
-
local p0_count=$(grep -c "^### 必须包含(P0)" "$spec_file" 2>/dev/null || echo 0)
|
|
111
|
-
if [ $p0_count -gt 0 ]; then
|
|
112
|
-
echo " P0需求:检测到,需人工验证"
|
|
113
|
-
fi
|
|
114
|
-
|
|
115
|
-
# 检查是否还有[需要澄清]标记
|
|
116
|
-
local unclear=$(grep -c "\[需要澄清\]" "$spec_file" 2>/dev/null || echo 0)
|
|
117
|
-
if [ $unclear -gt 0 ]; then
|
|
118
|
-
echo " ⚠️ 仍有 $unclear 处需要澄清"
|
|
119
|
-
else
|
|
120
|
-
echo " ✅ 所有决策已澄清"
|
|
121
|
-
fi
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
# 主分析流程
|
|
125
|
-
main() {
|
|
126
|
-
echo "故事分析报告"
|
|
127
|
-
echo "============"
|
|
128
|
-
echo "故事:$STORY_NAME"
|
|
129
|
-
echo "分析时间:$(date '+%Y-%m-%d %H:%M:%S')"
|
|
130
|
-
echo ""
|
|
131
|
-
|
|
132
|
-
# 检查基准文档
|
|
133
|
-
if ! check_story_files; then
|
|
134
|
-
echo ""
|
|
135
|
-
echo "❌ 无法进行完整分析,请先完成基准文档"
|
|
136
|
-
exit 1
|
|
137
|
-
fi
|
|
138
|
-
|
|
139
|
-
echo "✅ 基准文档完整"
|
|
140
|
-
echo ""
|
|
141
|
-
|
|
142
|
-
# 根据分析类型执行
|
|
143
|
-
case "$ANALYSIS_TYPE" in
|
|
144
|
-
full)
|
|
145
|
-
analyze_content
|
|
146
|
-
echo ""
|
|
147
|
-
check_task_completion
|
|
148
|
-
echo ""
|
|
149
|
-
check_specification_compliance
|
|
150
|
-
;;
|
|
151
|
-
quality)
|
|
152
|
-
analyze_content
|
|
153
|
-
;;
|
|
154
|
-
progress)
|
|
155
|
-
check_task_completion
|
|
156
|
-
;;
|
|
157
|
-
compliance)
|
|
158
|
-
check_specification_compliance
|
|
159
|
-
;;
|
|
160
|
-
*)
|
|
161
|
-
echo "未知的分析类型:$ANALYSIS_TYPE"
|
|
162
|
-
exit 1
|
|
163
|
-
;;
|
|
164
|
-
esac
|
|
165
|
-
|
|
166
|
-
echo ""
|
|
167
|
-
echo "分析完成。详细报告已保存到:$STORY_DIR/analysis-report.md"
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
main
|