novelws 3.1.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 +115 -564
- package/README.md +81 -598
- 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 +18 -103
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +18 -52
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/core/config.d.ts +7 -36
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +11 -38
- 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 +7 -73
- 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 -556
- 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/config/keyword-mappings.json +0 -226
- 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/knowledge-base/README.md +0 -285
- package/templates/knowledge-base/character-archetypes/01-hero.md +0 -233
- package/templates/knowledge-base/character-archetypes/02-mentor.md +0 -177
- package/templates/knowledge-base/character-archetypes/03-shadow.md +0 -221
- package/templates/knowledge-base/character-archetypes/04-ally.md +0 -178
- package/templates/knowledge-base/character-archetypes/05-shapeshifter.md +0 -177
- package/templates/knowledge-base/character-archetypes/06-trickster.md +0 -181
- package/templates/knowledge-base/character-archetypes/07-threshold-guardian.md +0 -177
- package/templates/knowledge-base/character-archetypes/08-herald.md +0 -180
- package/templates/knowledge-base/character-archetypes/09-father.md +0 -249
- package/templates/knowledge-base/character-archetypes/10-mother.md +0 -202
- package/templates/knowledge-base/character-archetypes/11-child.md +0 -183
- package/templates/knowledge-base/character-archetypes/12-sage.md +0 -202
- package/templates/knowledge-base/character-archetypes/README.md +0 -60
- package/templates/knowledge-base/character-archetypes/application-guide.md +0 -222
- package/templates/knowledge-base/character-archetypes/archetype-combinations.md +0 -242
- package/templates/knowledge-base/character-archetypes/config.yaml +0 -28
- package/templates/knowledge-base/character-archetypes/examples-analysis.md +0 -223
- package/templates/knowledge-base/craft/character-arc.md +0 -1153
- package/templates/knowledge-base/craft/dialogue.md +0 -1170
- package/templates/knowledge-base/craft/hook-design.md +0 -345
- package/templates/knowledge-base/craft/pacing.md +0 -1200
- package/templates/knowledge-base/craft/power-system.md +0 -254
- package/templates/knowledge-base/craft/scene-structure.md +0 -1136
- package/templates/knowledge-base/craft/show-not-tell.md +0 -1012
- package/templates/knowledge-base/craft/story-structures.md +0 -134
- package/templates/knowledge-base/craft/tension-management.md +0 -168
- package/templates/knowledge-base/emotional-beats/01-first-meeting.md +0 -145
- package/templates/knowledge-base/emotional-beats/02-bonding-moment.md +0 -226
- package/templates/knowledge-base/emotional-beats/03-declaration.md +0 -284
- package/templates/knowledge-base/emotional-beats/04-triumph.md +0 -240
- package/templates/knowledge-base/emotional-beats/05-reunion.md +0 -396
- package/templates/knowledge-base/emotional-beats/06-forgiveness.md +0 -204
- package/templates/knowledge-base/emotional-beats/07-betrayal.md +0 -204
- package/templates/knowledge-base/emotional-beats/08-loss.md +0 -214
- package/templates/knowledge-base/emotional-beats/09-rejection.md +0 -254
- package/templates/knowledge-base/emotional-beats/10-failure.md +0 -244
- package/templates/knowledge-base/emotional-beats/11-misunderstanding.md +0 -205
- package/templates/knowledge-base/emotional-beats/12-farewell.md +0 -283
- package/templates/knowledge-base/emotional-beats/13-revelation.md +0 -242
- package/templates/knowledge-base/emotional-beats/14-point-of-no-return.md +0 -215
- package/templates/knowledge-base/emotional-beats/15-dark-night.md +0 -244
- package/templates/knowledge-base/emotional-beats/16-sacrifice.md +0 -246
- package/templates/knowledge-base/emotional-beats/17-awakening.md +0 -246
- package/templates/knowledge-base/emotional-beats/18-confrontation.md +0 -217
- package/templates/knowledge-base/emotional-beats/19-bittersweet-goodbye.md +0 -368
- package/templates/knowledge-base/emotional-beats/20-moral-dilemma.md +0 -248
- package/templates/knowledge-base/emotional-beats/21-temptation.md +0 -240
- package/templates/knowledge-base/emotional-beats/22-redemption.md +0 -210
- package/templates/knowledge-base/emotional-beats/README.md +0 -104
- package/templates/knowledge-base/emotional-beats/beat-sequences.md +0 -276
- package/templates/knowledge-base/emotional-beats/config.yaml +0 -30
- package/templates/knowledge-base/emotional-beats/pacing-guide.md +0 -390
- package/templates/knowledge-base/genres/game-lit.md +0 -174
- package/templates/knowledge-base/genres/historical.md +0 -1127
- package/templates/knowledge-base/genres/horror.md +0 -211
- package/templates/knowledge-base/genres/military.md +0 -209
- package/templates/knowledge-base/genres/mystery.md +0 -1123
- package/templates/knowledge-base/genres/rebirth.md +0 -177
- package/templates/knowledge-base/genres/revenge.md +0 -846
- package/templates/knowledge-base/genres/romance.md +0 -948
- package/templates/knowledge-base/genres/sci-fi.md +0 -156
- package/templates/knowledge-base/genres/sports.md +0 -216
- package/templates/knowledge-base/genres/thriller.md +0 -166
- package/templates/knowledge-base/genres/urban.md +0 -170
- package/templates/knowledge-base/genres/workplace.md +0 -214
- package/templates/knowledge-base/genres/wuxia.md +0 -143
- package/templates/knowledge-base/genres/xuanhuan.md +0 -234
- package/templates/knowledge-base/genres/youth.md +0 -219
- package/templates/knowledge-base/references/README.md +0 -96
- package/templates/knowledge-base/references/china-1920s/culture.md +0 -423
- package/templates/knowledge-base/references/china-1920s/daily-life.md +0 -616
- package/templates/knowledge-base/references/china-1920s/overview.md +0 -298
- package/templates/knowledge-base/references/china-1920s/society.md +0 -703
- package/templates/knowledge-base/references/china-1920s/warlords.md +0 -427
- package/templates/knowledge-base/references/cultivation-world/daily-life.md +0 -108
- package/templates/knowledge-base/references/cultivation-world/overview.md +0 -64
- package/templates/knowledge-base/references/cultivation-world/power-system.md +0 -108
- package/templates/knowledge-base/references/cultivation-world/sects.md +0 -104
- package/templates/knowledge-base/references/cultivation-world/world-setting.md +0 -108
- package/templates/knowledge-base/references/modern-workplace/corporate.md +0 -115
- package/templates/knowledge-base/references/modern-workplace/daily-life.md +0 -129
- package/templates/knowledge-base/references/modern-workplace/overview.md +0 -73
- package/templates/knowledge-base/references/modern-workplace/relationships.md +0 -107
- package/templates/knowledge-base/references/modern-workplace/tech-industry.md +0 -131
- package/templates/knowledge-base/references/tang-dynasty/culture.md +0 -135
- package/templates/knowledge-base/references/tang-dynasty/daily-life.md +0 -139
- package/templates/knowledge-base/references/tang-dynasty/overview.md +0 -76
- package/templates/knowledge-base/references/tang-dynasty/politics.md +0 -121
- package/templates/knowledge-base/references/tang-dynasty/society.md +0 -126
- package/templates/knowledge-base/requirements/README.md +0 -240
- package/templates/knowledge-base/requirements/anti-ai-v3.md +0 -46
- package/templates/knowledge-base/requirements/anti-ai-v4-deprecated.md +0 -442
- package/templates/knowledge-base/requirements/anti-ai-v5-balanced.md +0 -203
- package/templates/knowledge-base/requirements/concretization.md +0 -90
- package/templates/knowledge-base/requirements/fast-paced.md +0 -552
- package/templates/knowledge-base/requirements/no-poison.md +0 -60
- package/templates/knowledge-base/requirements/romance-angst.md +0 -102
- package/templates/knowledge-base/requirements/romance-sweet.md +0 -63
- package/templates/knowledge-base/requirements/serious-literature.md +0 -45
- package/templates/knowledge-base/requirements/strong-emotion.md +0 -60
- package/templates/knowledge-base/styles/README.md +0 -302
- package/templates/knowledge-base/styles/ancient-style.md +0 -579
- package/templates/knowledge-base/styles/literary.md +0 -439
- package/templates/knowledge-base/styles/minimal.md +0 -472
- package/templates/knowledge-base/styles/natural-voice.md +0 -930
- package/templates/knowledge-base/styles/web-novel.md +0 -525
- package/templates/memory/personal-voice.md +0 -113
- package/templates/scripts/README.md +0 -187
- package/templates/scripts/bash/analyze-story.sh +0 -170
- package/templates/scripts/bash/check-analyze-stage.sh +0 -108
- package/templates/scripts/bash/check-consistency.sh +0 -463
- package/templates/scripts/bash/check-facts.sh +0 -214
- package/templates/scripts/bash/check-plot.sh +0 -374
- package/templates/scripts/bash/check-timeline.sh +0 -346
- package/templates/scripts/bash/check-world.sh +0 -395
- package/templates/scripts/bash/check-writing-state.sh +0 -854
- package/templates/scripts/bash/clarify-story.sh +0 -117
- package/templates/scripts/bash/common.sh +0 -151
- package/templates/scripts/bash/constitution.sh +0 -114
- package/templates/scripts/bash/generate-tasks.sh +0 -65
- package/templates/scripts/bash/init-tracking.sh +0 -183
- package/templates/scripts/bash/manage-relations.sh +0 -174
- package/templates/scripts/bash/migrate-tracking.sh +0 -183
- package/templates/scripts/bash/plan-story.sh +0 -100
- package/templates/scripts/bash/specify-story.sh +0 -93
- package/templates/scripts/bash/tasks-story.sh +0 -96
- package/templates/scripts/bash/test-word-count.sh +0 -182
- package/templates/scripts/bash/tests/bench-preload-cache.sh +0 -100
- package/templates/scripts/bash/tests/run-all-benchmarks.sh +0 -16
- package/templates/scripts/bash/tests/test-cache-semantics.sh +0 -199
- package/templates/scripts/bash/tests/test-cross-platform.sh +0 -35
- package/templates/scripts/bash/tests/test-edge-cases-bash.sh +0 -60
- package/templates/scripts/bash/tests/test-phase1-bash.sh +0 -28
- package/templates/scripts/bash/tests/test-preload-cache.sh +0 -123
- package/templates/scripts/bash/tests/test-regex-precompile.sh +0 -89
- package/templates/scripts/bash/tests/test-regression-bash.sh +0 -42
- package/templates/scripts/bash/tests/test-task6-verification.sh +0 -200
- package/templates/scripts/bash/text-audit.sh +0 -144
- package/templates/scripts/bash/track-progress.sh +0 -194
- package/templates/scripts/powershell/analyze-story.ps1 +0 -174
- package/templates/scripts/powershell/check-analyze-stage.ps1 +0 -110
- package/templates/scripts/powershell/check-consistency.ps1 +0 -138
- package/templates/scripts/powershell/check-facts.ps1 +0 -195
- package/templates/scripts/powershell/check-plot.ps1 +0 -139
- package/templates/scripts/powershell/check-timeline.ps1 +0 -112
- package/templates/scripts/powershell/check-writing-state.ps1 +0 -486
- package/templates/scripts/powershell/clarify-story.ps1 +0 -107
- package/templates/scripts/powershell/common.ps1 +0 -36
- package/templates/scripts/powershell/constitution.ps1 +0 -145
- package/templates/scripts/powershell/generate-tasks.ps1 +0 -70
- package/templates/scripts/powershell/init-tracking.ps1 +0 -98
- package/templates/scripts/powershell/manage-relations.ps1 +0 -134
- package/templates/scripts/powershell/migrate-tracking.ps1 +0 -145
- package/templates/scripts/powershell/plan-story.ps1 +0 -99
- package/templates/scripts/powershell/specify-story.ps1 +0 -85
- package/templates/scripts/powershell/tests/bench-ps-cache.ps1 +0 -80
- package/templates/scripts/powershell/tests/test-cross-platform.ps1 +0 -27
- package/templates/scripts/powershell/tests/test-edge-cases-ps.ps1 +0 -29
- package/templates/scripts/powershell/tests/test-phase1-ps.ps1 +0 -28
- package/templates/scripts/powershell/tests/test-ps-cache.ps1 +0 -73
- package/templates/scripts/powershell/tests/test-regression-ps.ps1 +0 -40
- package/templates/scripts/powershell/text-audit.ps1 +0 -102
- package/templates/scripts/powershell/track-progress.ps1 +0 -105
- 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/specification-example.md +0 -146
- 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/{memory → resources}/constitution.md +0 -0
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: character
|
|
3
|
-
description: "统一角色管理 — 创建、查看、更新角色档案,管理角色关系,设定对话指纹"
|
|
4
|
-
argument-hint: [子命令] [角色名或参数] [--volume vol-XX]
|
|
5
|
-
recommended-model: claude-sonnet-4-5-20250929 # 角色设定中等复杂度;复杂角色可用 opus
|
|
6
|
-
allowed-tools: Read, Write, Glob, Grep, Edit
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# /character — 角色管理中心
|
|
10
|
-
|
|
11
|
-
## 概述
|
|
12
|
-
|
|
13
|
-
统一管理故事中所有角色的档案、状态、关系和对话风格。所有角色数据存储在 `spec/tracking/` 目录下。
|
|
14
|
-
|
|
15
|
-
## 前置条件
|
|
16
|
-
|
|
17
|
-
1. 确认当前故事目录存在:`stories/*/`
|
|
18
|
-
2. 确认 `spec/tracking/` 目录存在,不存在则创建
|
|
19
|
-
3. 按三层 Fallback 加载角色数据:
|
|
20
|
-
|
|
21
|
-
**Layer 1: MCP 查询(优先)**
|
|
22
|
-
- `query_characters` → 角色列表(支持 `--volume vol-XX` 过滤)
|
|
23
|
-
- `query_relationships` → 关系网络
|
|
24
|
-
- `search_content --query=[角色名]` → 角色出场章节
|
|
25
|
-
|
|
26
|
-
**Layer 2: 分片 JSON(次优,检测 spec/tracking/volumes/ 是否存在)**
|
|
27
|
-
- 无 --volume:读取 `spec/tracking/summary/characters-summary.json`(活跃角色概览)
|
|
28
|
-
- 有 --volume:读取 `spec/tracking/volumes/vol-XX/character-state.json` 和 `relationships.json`
|
|
29
|
-
|
|
30
|
-
**Layer 3: 单文件 JSON(兜底)**
|
|
31
|
-
- `spec/tracking/character-state.json`
|
|
32
|
-
- `spec/tracking/relationships.json`
|
|
33
|
-
|
|
34
|
-
## 子命令决策
|
|
35
|
-
|
|
36
|
-
根据 `$ARGUMENTS` 判断子命令:
|
|
37
|
-
|
|
38
|
-
| 参数模式 | 子命令 | 说明 |
|
|
39
|
-
|---------|--------|------|
|
|
40
|
-
| `create [角色名]` | 创建角色 | 交互式创建新角色档案 |
|
|
41
|
-
| `list` 或无参数 | 角色列表 | 显示所有角色概览 |
|
|
42
|
-
| `show [角色名]` | 角色详情 | 显示单个角色完整档案 |
|
|
43
|
-
| `update [角色名]` | 更新角色 | 更新角色状态或属性 |
|
|
44
|
-
| `relate [角色A] [角色B]` | 关系管理 | 设定或更新两个角色的关系 |
|
|
45
|
-
| `voice [角色名]` | 对话指纹 | 设定角色的说话风格和语言习惯 |
|
|
46
|
-
| `timeline [角色名]` | 角色时间线 | 显示角色的出场和状态变化历史 |
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
## 子命令 1:创建角色(`create`)
|
|
51
|
-
|
|
52
|
-
### 执行流程
|
|
53
|
-
|
|
54
|
-
**Step 1: 收集基本信息**
|
|
55
|
-
|
|
56
|
-
向用户询问以下信息(未提供的标记为待定,可后续用 update 补充):
|
|
57
|
-
- 角色名称(必填)、角色类型(主角/重要配角/次要配角/龙套)
|
|
58
|
-
- 一句话描述、外貌特征(≤3 个)、性格核心(1-3 词)
|
|
59
|
-
- 初始状态、核心目标、核心冲突
|
|
60
|
-
|
|
61
|
-
**Step 2: 生成角色档案**
|
|
62
|
-
|
|
63
|
-
在 `character-state.json` 中添加新角色条目:
|
|
64
|
-
|
|
65
|
-
```json
|
|
66
|
-
{
|
|
67
|
-
"id": "[自动生成,如 char-001]",
|
|
68
|
-
"name": "[角色名]",
|
|
69
|
-
"type": "[主角/重要配角/次要配角/龙套]",
|
|
70
|
-
"summary": "[一句话描述]",
|
|
71
|
-
"appearance": {
|
|
72
|
-
"features": ["[特征1]", "[特征2]", "[特征3]"],
|
|
73
|
-
"description": "[简短外貌描述]"
|
|
74
|
-
},
|
|
75
|
-
"personality": {
|
|
76
|
-
"core": ["[性格词1]", "[性格词2]"],
|
|
77
|
-
"strengths": [],
|
|
78
|
-
"weaknesses": [],
|
|
79
|
-
"quirks": []
|
|
80
|
-
},
|
|
81
|
-
"status": {
|
|
82
|
-
"current": "[初始状态]",
|
|
83
|
-
"health": "正常",
|
|
84
|
-
"location": "[初始位置]",
|
|
85
|
-
"mood": "[初始情绪]"
|
|
86
|
-
},
|
|
87
|
-
"goals": {
|
|
88
|
-
"primary": "[核心目标]",
|
|
89
|
-
"secondary": [],
|
|
90
|
-
"hidden": ""
|
|
91
|
-
},
|
|
92
|
-
"conflict": "[核心冲突]",
|
|
93
|
-
"arc": {
|
|
94
|
-
"startPoint": "[起点状态]",
|
|
95
|
-
"endPoint": "[预期终点,可为空]",
|
|
96
|
-
"currentPhase": "初始"
|
|
97
|
-
},
|
|
98
|
-
"voice": {
|
|
99
|
-
"speechPattern": "",
|
|
100
|
-
"vocabulary": "",
|
|
101
|
-
"catchphrases": [],
|
|
102
|
-
"dialect": ""
|
|
103
|
-
},
|
|
104
|
-
"firstAppearance": null,
|
|
105
|
-
"lastAppearance": null,
|
|
106
|
-
"appearanceCount": 0,
|
|
107
|
-
"createdAt": "[ISO日期]",
|
|
108
|
-
"updatedAt": "[ISO日期]"
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
**Step 3: 输出确认**
|
|
113
|
-
|
|
114
|
-
输出角色名、类型、描述、目标、冲突的摘要,并提示后续可用 `voice`、`relate`、`update` 子命令。
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## 子命令 2:角色列表(`list`)
|
|
119
|
-
|
|
120
|
-
### 执行流程
|
|
121
|
-
|
|
122
|
-
**Step 1: 读取所有角色数据**
|
|
123
|
-
|
|
124
|
-
从三层 Fallback 加载角色数据(见前置条件)。
|
|
125
|
-
|
|
126
|
-
如果指定了 `--volume vol-XX`,仅显示该卷中出场的角色(按 `lastAppearance` 或 `firstAppearance` 在该卷章节范围内过滤)。
|
|
127
|
-
|
|
128
|
-
**Step 2: 按类型分组输出**
|
|
129
|
-
|
|
130
|
-
按角色类型(主角 → 重要配角 → 次要配角 → 龙套)分组,每组以表格显示:角色名、状态、位置、最近出场章节、出场次数。次要配角和龙套可用简略列表。
|
|
131
|
-
|
|
132
|
-
末尾附加需关注提醒(如超过 5 章未出场、状态异常的角色)。
|
|
133
|
-
|
|
134
|
-
---
|
|
135
|
-
|
|
136
|
-
## 子命令 3:角色详情(`show`)
|
|
137
|
-
|
|
138
|
-
### 执行流程
|
|
139
|
-
|
|
140
|
-
**Step 1: 查找角色**
|
|
141
|
-
|
|
142
|
-
在 `character-state.json` 中按名称模糊匹配。
|
|
143
|
-
|
|
144
|
-
**Step 2: 输出完整档案**
|
|
145
|
-
|
|
146
|
-
输出以下分区信息:
|
|
147
|
-
- 基本信息:角色名、类型、一句话描述
|
|
148
|
-
- 外貌:外貌描述和关键特征
|
|
149
|
-
- 性格:核心性格词、优点、缺点、习惯/怪癖
|
|
150
|
-
- 当前状态:状态、位置、情绪、健康
|
|
151
|
-
- 目标与冲突:主要目标、核心冲突、弧线阶段
|
|
152
|
-
- 对话风格:说话方式、常用词汇、口头禅
|
|
153
|
-
- 关系网络:从 relationships.json 提取,表格显示(对象、关系、状态、备注)
|
|
154
|
-
- 出场记录:首次出场、最近出场、总出场次数
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
|
|
158
|
-
## 子命令 4:更新角色(`update`)
|
|
159
|
-
|
|
160
|
-
### 执行流程
|
|
161
|
-
|
|
162
|
-
**Step 1: 查找角色并显示当前状态**
|
|
163
|
-
|
|
164
|
-
**Step 2: 询问要更新的内容**
|
|
165
|
-
|
|
166
|
-
支持更新的类别:状态变化(位置/情绪/健康/处境)、性格补充、目标变化、弧线推进、外貌变化、其他。用户也可直接描述变化内容,由 AI 判断更新字段。
|
|
167
|
-
|
|
168
|
-
**Step 3: 更新 JSON 并确认**
|
|
169
|
-
|
|
170
|
-
更新 `character-state.json` 中对应字段,更新 `updatedAt` 时间戳。
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
## 子命令 5:关系管理(`relate`)
|
|
175
|
-
|
|
176
|
-
### 执行流程
|
|
177
|
-
|
|
178
|
-
**Step 1: 确认两个角色存在**
|
|
179
|
-
|
|
180
|
-
**Step 2: 收集关系信息**
|
|
181
|
-
|
|
182
|
-
向用户询问:关系类型(师徒/朋友/恋人/敌人/亲属/同门/主从/竞争等)、关系状态(稳定/紧张/发展中/破裂/暧昧等)、双方态度(A→B / B→A)、关系起源、预期走向。
|
|
183
|
-
|
|
184
|
-
**Step 3: 更新 relationships.json**
|
|
185
|
-
|
|
186
|
-
写入关系条目,包含字段:`id`, `characterA`, `characterB`, `type`, `status`, `attitudeAtoB`, `attitudeBtoA`, `origin`, `trajectory`, `history`(事件数组),`createdAt`, `updatedAt`。
|
|
187
|
-
|
|
188
|
-
---
|
|
189
|
-
|
|
190
|
-
## 子命令 6:对话指纹(`voice`)
|
|
191
|
-
|
|
192
|
-
### 执行流程
|
|
193
|
-
|
|
194
|
-
**Step 1: 查找角色**
|
|
195
|
-
|
|
196
|
-
**Step 2: 收集对话风格信息**
|
|
197
|
-
|
|
198
|
-
向用户询问:说话方式(简洁/啰嗦/文雅/粗犷等)、常用句式、口头禅、禁忌用语、语气词偏好、方言/口音、教育水平体现、情绪表达方式。也可接受示例对话由 AI 分析提取。
|
|
199
|
-
|
|
200
|
-
**Step 3: 更新 character-state.json 的 voice 字段**
|
|
201
|
-
|
|
202
|
-
**Step 4: 输出对话风格卡片**
|
|
203
|
-
|
|
204
|
-
输出角色对话风格摘要(说话方式、句式、口头禅、禁忌、语气词、情绪表达)及一段基于风格设定生成的示例对话。提示 `/write` 会自动加载此风格。
|
|
205
|
-
|
|
206
|
-
---
|
|
207
|
-
|
|
208
|
-
## 子命令 7:角色时间线(`timeline`)
|
|
209
|
-
|
|
210
|
-
### 执行流程
|
|
211
|
-
|
|
212
|
-
**Step 1: 从 timeline.json 和章节内容中提取角色相关事件**
|
|
213
|
-
|
|
214
|
-
**MCP 优先**:如果 MCP 可用,调用 `search_content --query=[角色名]` 获取所有出场章节,按章节号排序生成时间线。
|
|
215
|
-
|
|
216
|
-
**Fallback**:从 timeline.json(或分片 `volumes/vol-XX/timeline.json`)和章节内容中提取。如果指定了 `--volume vol-XX`,仅显示该卷范围内的时间线。
|
|
217
|
-
|
|
218
|
-
**Step 2: 输出角色时间线**
|
|
219
|
-
|
|
220
|
-
```
|
|
221
|
-
📅 [角色名] 时间线
|
|
222
|
-
━━━━━━━━━━━━━━━━━━━━
|
|
223
|
-
|
|
224
|
-
第 1 章 — 首次登场
|
|
225
|
-
状态:[状态]
|
|
226
|
-
事件:[关键事件]
|
|
227
|
-
|
|
228
|
-
第 3 章 — 状态变化
|
|
229
|
-
状态:[新状态]
|
|
230
|
-
事件:[触发事件]
|
|
231
|
-
|
|
232
|
-
第 7 章 — 关系变化
|
|
233
|
-
与 [角色B] 的关系从 [旧关系] 变为 [新关系]
|
|
234
|
-
事件:[触发事件]
|
|
235
|
-
|
|
236
|
-
...
|
|
237
|
-
|
|
238
|
-
📊 统计:
|
|
239
|
-
- 总出场:[N] 章
|
|
240
|
-
- 状态变化:[M] 次
|
|
241
|
-
- 关系变化:[K] 次
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
---
|
|
245
|
-
|
|
246
|
-
## 数据完整性保障
|
|
247
|
-
|
|
248
|
-
### 自动同步
|
|
249
|
-
|
|
250
|
-
当 `/write` 或 `/track` 更新 tracking 数据时,`character-state.json` 和 `relationships.json` 的格式必须与 `/character` 命令兼容。
|
|
251
|
-
|
|
252
|
-
### 分片写入协议
|
|
253
|
-
|
|
254
|
-
当 `/character` 更新角色数据时:
|
|
255
|
-
|
|
256
|
-
**分片模式(检测到 spec/tracking/volumes/ 存在)**:
|
|
257
|
-
1. 确定角色最后出场章节所属的卷
|
|
258
|
-
2. 更新该卷的 `character-state.json` 或 `relationships.json`
|
|
259
|
-
3. 同步更新全局摘要:`spec/tracking/summary/characters-summary.json`
|
|
260
|
-
4. 如果 MCP 可用,调用 `sync_from_json` 同步到 SQLite
|
|
261
|
-
|
|
262
|
-
**单文件模式**:
|
|
263
|
-
- 直接更新 `spec/tracking/character-state.json` 和 `relationships.json`
|
|
264
|
-
|
|
265
|
-
### 数据校验
|
|
266
|
-
|
|
267
|
-
每次读取数据时,检查:
|
|
268
|
-
- JSON 格式是否有效
|
|
269
|
-
- 必填字段是否存在(id, name, type)
|
|
270
|
-
- 关系引用的角色 ID 是否存在
|
|
271
|
-
|
|
272
|
-
### 向后兼容
|
|
273
|
-
|
|
274
|
-
如果 `character-state.json` 中的角色条目缺少新增字段(如 `voice`),自动补充默认值而非报错。
|
|
275
|
-
|
|
276
|
-
---
|
|
277
|
-
|
|
278
|
-
## 🔗 命令链式提示
|
|
279
|
-
|
|
280
|
-
**命令执行完成后,自动附加下一步建议**:
|
|
281
|
-
|
|
282
|
-
```
|
|
283
|
-
💡 下一步建议:
|
|
284
|
-
1️⃣ `/character voice [角色名]` — 设定角色对话风格(如刚创建角色)
|
|
285
|
-
2️⃣ `/character relate [角色A] [角色B]` — 建立角色关系
|
|
286
|
-
3️⃣ `/write [章节号]` — 角色就绪,开始写作
|
|
287
|
-
```
|