novelws 3.1.0 → 4.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 +74 -0
- package/README.md +47 -49
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +35 -33
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +63 -6
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/core/config.d.ts +22 -15
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +28 -16
- package/dist/core/config.js.map +1 -1
- package/dist/utils/diagnostics.d.ts.map +1 -1
- package/dist/utils/diagnostics.js +6 -5
- package/dist/utils/diagnostics.js.map +1 -1
- package/package.json +1 -1
- package/templates/commands/analyze.md +10 -10
- package/templates/commands/character.md +10 -10
- package/templates/commands/checklist.md +27 -27
- package/templates/commands/clarify.md +2 -2
- package/templates/commands/constitution.md +8 -8
- package/templates/commands/expert.md +3 -3
- package/templates/commands/facts.md +9 -9
- package/templates/commands/guide.md +25 -25
- package/templates/commands/help-me.md +2 -2
- package/templates/commands/plan.md +26 -26
- package/templates/commands/recap.md +16 -16
- package/templates/commands/relations.md +13 -13
- package/templates/commands/revise.md +15 -15
- package/templates/commands/search.md +10 -10
- package/templates/commands/specify.md +4 -4
- package/templates/commands/tasks.md +9 -9
- package/templates/commands/timeline.md +13 -13
- package/templates/commands/track-init.md +8 -8
- package/templates/commands/track.md +22 -22
- package/templates/commands/volume-summary.md +6 -6
- package/templates/commands/write.md +125 -38
- package/templates/dot-claude/CLAUDE.md +5 -5
- package/templates/{config → resources/config}/keyword-mappings.json +19 -19
- package/templates/{scripts → resources/scripts}/README.md +8 -8
- package/templates/{scripts → resources/scripts}/bash/analyze-story.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/check-consistency.sh +7 -7
- package/templates/{scripts → resources/scripts}/bash/check-facts.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/check-plot.sh +2 -2
- package/templates/{scripts → resources/scripts}/bash/check-timeline.sh +3 -3
- package/templates/{scripts → resources/scripts}/bash/check-world.sh +5 -5
- package/templates/{scripts → resources/scripts}/bash/check-writing-state.sh +26 -26
- package/templates/{scripts → resources/scripts}/bash/common.sh +3 -3
- package/templates/{scripts → resources/scripts}/bash/constitution.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/init-tracking.sh +13 -13
- package/templates/{scripts → resources/scripts}/bash/manage-relations.sh +10 -10
- package/templates/{scripts → resources/scripts}/bash/migrate-tracking.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/plan-story.sh +2 -2
- package/templates/{scripts → resources/scripts}/bash/specify-story.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/tasks-story.sh +2 -2
- package/templates/{scripts → resources/scripts}/bash/tests/bench-preload-cache.sh +3 -3
- package/templates/{scripts → resources/scripts}/bash/tests/test-cross-platform.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/tests/test-preload-cache.sh +1 -1
- package/templates/{scripts → resources/scripts}/bash/tests/test-regex-precompile.sh +4 -4
- package/templates/{scripts → resources/scripts}/bash/text-audit.sh +3 -3
- package/templates/{scripts → resources/scripts}/bash/track-progress.sh +5 -5
- package/templates/{scripts → resources/scripts}/powershell/analyze-story.ps1 +1 -1
- package/templates/{scripts → resources/scripts}/powershell/check-consistency.ps1 +8 -8
- package/templates/{scripts → resources/scripts}/powershell/check-plot.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/check-timeline.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/check-writing-state.ps1 +31 -31
- package/templates/{scripts → resources/scripts}/powershell/common.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/constitution.ps1 +1 -1
- package/templates/{scripts → resources/scripts}/powershell/init-tracking.ps1 +5 -5
- package/templates/{scripts → resources/scripts}/powershell/manage-relations.ps1 +6 -6
- package/templates/{scripts → resources/scripts}/powershell/migrate-tracking.ps1 +1 -1
- package/templates/{scripts → resources/scripts}/powershell/plan-story.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/specify-story.ps1 +1 -1
- package/templates/{scripts → resources/scripts}/powershell/tests/bench-ps-cache.ps1 +10 -10
- package/templates/{scripts → resources/scripts}/powershell/tests/test-ps-cache.ps1 +4 -4
- package/templates/{scripts → resources/scripts}/powershell/text-audit.ps1 +2 -2
- package/templates/{scripts → resources/scripts}/powershell/track-progress.ps1 +2 -2
- package/templates/skills/analysis/character-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/foreshadow-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/hook-analysis/SKILL.md +2 -2
- package/templates/skills/analysis/logic-analysis/SKILL.md +2 -2
- package/templates/skills/analysis/opening-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/pacing-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/power-analysis/SKILL.md +3 -3
- package/templates/skills/analysis/reader-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/style-analysis/SKILL.md +1 -1
- package/templates/skills/analysis/voice-analysis/SKILL.md +1 -1
- package/templates/skills/auto-tracking/SKILL.md +1 -1
- package/templates/skills/quality-assurance/consistency-checker/SKILL.md +1 -1
- package/templates/skills/quality-assurance/facts-checker/SKILL.md +2 -2
- package/templates/skills/quality-assurance/hook-checker/SKILL.md +2 -2
- package/templates/skills/quality-assurance/long-series-continuity/SKILL.md +7 -7
- package/templates/skills/quality-assurance/pre-write-checklist/SKILL.md +22 -22
- package/templates/skills/quality-assurance/setting-detector/SKILL.md +15 -15
- package/templates/skills/quality-assurance/voice-consistency-checker/SKILL.md +1 -1
- package/templates/skills/writing-techniques/character-arc/SKILL.md +1 -1
- package/templates/skills/writing-techniques/multi-thread-narrative/SKILL.md +1 -1
- package/templates/skills/writing-techniques/reader-expectation/SKILL.md +1 -1
- package/templates/skills/writing-techniques/revision-polish/SKILL.md +1 -1
- package/templates/skills/writing-techniques/style-learning/SKILL.md +2 -2
- package/templates/skills/writing-techniques/writing-balance/SKILL.md +1 -1
- package/templates/knowledge-base/README.md +0 -285
- /package/templates/{knowledge-base → resources}/character-archetypes/01-hero.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/02-mentor.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/03-shadow.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/04-ally.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/05-shapeshifter.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/06-trickster.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/07-threshold-guardian.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/08-herald.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/09-father.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/10-mother.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/11-child.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/12-sage.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/README.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/application-guide.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/archetype-combinations.md +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/config.yaml +0 -0
- /package/templates/{knowledge-base → resources}/character-archetypes/examples-analysis.md +0 -0
- /package/templates/{specification-example.md → resources/config/specification-example.md} +0 -0
- /package/templates/{knowledge-base → resources}/craft/character-arc.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/dialogue.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/hook-design.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/pacing.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/power-system.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/scene-structure.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/show-not-tell.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/story-structures.md +0 -0
- /package/templates/{knowledge-base → resources}/craft/tension-management.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/01-first-meeting.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/02-bonding-moment.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/03-declaration.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/04-triumph.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/05-reunion.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/06-forgiveness.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/07-betrayal.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/08-loss.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/09-rejection.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/10-failure.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/11-misunderstanding.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/12-farewell.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/13-revelation.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/14-point-of-no-return.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/15-dark-night.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/16-sacrifice.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/17-awakening.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/18-confrontation.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/19-bittersweet-goodbye.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/20-moral-dilemma.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/21-temptation.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/22-redemption.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/README.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/beat-sequences.md +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/config.yaml +0 -0
- /package/templates/{knowledge-base → resources}/emotional-beats/pacing-guide.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/game-lit.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/historical.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/horror.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/military.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/mystery.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/rebirth.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/revenge.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/romance.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/sci-fi.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/sports.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/thriller.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/urban.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/workplace.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/wuxia.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/xuanhuan.md +0 -0
- /package/templates/{knowledge-base → resources}/genres/youth.md +0 -0
- /package/templates/{memory → resources/memory}/constitution.md +0 -0
- /package/templates/{memory → resources/memory}/personal-voice.md +0 -0
- /package/templates/{knowledge-base → resources}/references/README.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/culture.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/daily-life.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/overview.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/society.md +0 -0
- /package/templates/{knowledge-base → resources}/references/china-1920s/warlords.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/daily-life.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/overview.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/power-system.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/sects.md +0 -0
- /package/templates/{knowledge-base → resources}/references/cultivation-world/world-setting.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/corporate.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/daily-life.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/overview.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/relationships.md +0 -0
- /package/templates/{knowledge-base → resources}/references/modern-workplace/tech-industry.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/culture.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/daily-life.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/overview.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/politics.md +0 -0
- /package/templates/{knowledge-base → resources}/references/tang-dynasty/society.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/README.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/anti-ai-v3.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/anti-ai-v4-deprecated.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/anti-ai-v5-balanced.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/concretization.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/fast-paced.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/no-poison.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/romance-angst.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/romance-sweet.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/serious-literature.md +0 -0
- /package/templates/{knowledge-base → resources}/requirements/strong-emotion.md +0 -0
- /package/templates/{scripts → resources/scripts}/bash/check-analyze-stage.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/clarify-story.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/generate-tasks.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/test-word-count.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/run-all-benchmarks.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-cache-semantics.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-edge-cases-bash.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-phase1-bash.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-regression-bash.sh +0 -0
- /package/templates/{scripts → resources/scripts}/bash/tests/test-task6-verification.sh +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/check-analyze-stage.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/check-facts.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/clarify-story.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/generate-tasks.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/tests/test-cross-platform.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/tests/test-edge-cases-ps.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/tests/test-phase1-ps.ps1 +0 -0
- /package/templates/{scripts → resources/scripts}/powershell/tests/test-regression-ps.ps1 +0 -0
- /package/templates/{knowledge-base → resources}/styles/README.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/ancient-style.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/literary.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/minimal.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/natural-voice.md +0 -0
- /package/templates/{knowledge-base → resources}/styles/web-novel.md +0 -0
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
# 写作知识库系统
|
|
2
|
-
|
|
3
|
-
## 概述
|
|
4
|
-
|
|
5
|
-
这是 Novel Writer Skills 的核心竞争力 - 一个可扩展的通用写作知识库系统。
|
|
6
|
-
|
|
7
|
-
**与项目特定知识的区别**:
|
|
8
|
-
- `spec/knowledge/` - 存放项目特定知识(角色档案、地点、世界观等)
|
|
9
|
-
- `templates/knowledge-base/`(本目录)- 存放通用写作知识(类型惯例、技法、参考资料)
|
|
10
|
-
|
|
11
|
-
**工作原理**:
|
|
12
|
-
1. **自动激活**:setting-detector Skill根据关键词映射表自动检测故事设定
|
|
13
|
-
2. **按需加载**:只加载相关的知识库,节省token(单个知识库~500 tokens)
|
|
14
|
-
3. **持续应用**:知识库在整个创作过程中保持激活
|
|
15
|
-
|
|
16
|
-
**Token效率**:
|
|
17
|
-
- 传统方案(50个Skill):~2000 tokens
|
|
18
|
-
- 当前方案(1个detector + 按需知识库):~600 tokens
|
|
19
|
-
- **节省75%**
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## 📚 知识库索引
|
|
24
|
-
|
|
25
|
-
### 1. 类型知识库(Genres)
|
|
26
|
-
|
|
27
|
-
专业类型小说的创作惯例和最佳实践。
|
|
28
|
-
|
|
29
|
-
| 文件 | 类型 | 关键惯例 |
|
|
30
|
-
|------|------|---------|
|
|
31
|
-
| `genres/romance.md` | 言情小说 | HEA结局、情感节奏点、关系弧 |
|
|
32
|
-
| `genres/mystery.md` | 悬疑推理 | 公平游戏、线索管理、嫌疑人设计 |
|
|
33
|
-
| `genres/historical.md` | 历史小说 | 考据平衡、时代氛围、历史白描 |
|
|
34
|
-
| `genres/revenge.md` | 复仇爽文 | 节奏控制、打脸设计、情绪管理 |
|
|
35
|
-
| `genres/wuxia.md` | 武侠小说 | 江湖规则、武学体系、侠义精神 |
|
|
36
|
-
|
|
37
|
-
### 2. 写作技法知识库(Craft)
|
|
38
|
-
|
|
39
|
-
跨类型适用的专业写作技巧。
|
|
40
|
-
|
|
41
|
-
| 文件 | 技法 | 核心原则 |
|
|
42
|
-
|------|------|---------|
|
|
43
|
-
| `craft/dialogue.md` | 对话技巧 | 潜台词、角色声音、自然感 |
|
|
44
|
-
| `craft/scene-structure.md` | 场景结构 | 目标-冲突-灾难、续场模型 |
|
|
45
|
-
| `craft/character-arc.md` | 角色弧线 | 改变机制、内外冲突、成长逻辑 |
|
|
46
|
-
| `craft/pacing.md` | 节奏控制 | 张弛有度、高潮设计、过渡管理 |
|
|
47
|
-
| `craft/show-not-tell.md` | 展示技巧 | 感官细节、行为暗示、避免说教 |
|
|
48
|
-
|
|
49
|
-
### 3. 参考资料库(References)
|
|
50
|
-
|
|
51
|
-
特定时代、文化、背景的真实资料。
|
|
52
|
-
|
|
53
|
-
| 目录 | 内容 | 用途 |
|
|
54
|
-
|------|------|------|
|
|
55
|
-
| `references/china-1920s/` | 1920年代中国 | 军阀混战、社会风貌、日常生活 |
|
|
56
|
-
| └─ `overview.md` | 时代概览 | 历史事件、社会分层、城乡对比 |
|
|
57
|
-
| └─ `warlords.md` | 军阀体系 | 派系关系、军队编制、权力结构 |
|
|
58
|
-
| └─ `society.md` | 社会结构 | 阶层分化、家族制度、婚姻制度 |
|
|
59
|
-
| └─ `daily-life.md` | 日常生活 | 衣食住行、货币物价、娱乐文化 |
|
|
60
|
-
| └─ `culture.md` | 文化娱乐 | 新文化运动、文学流派、女性解放 |
|
|
61
|
-
|
|
62
|
-
**未来扩展**:
|
|
63
|
-
- `references/tang-dynasty/` - 唐朝(仙侠、宫斗题材)
|
|
64
|
-
- `references/modern-workplace/` - 现代职场
|
|
65
|
-
- `references/cultivation-world/` - 修仙世界
|
|
66
|
-
- ...(可无限扩展)
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## 🔍 关键词映射表
|
|
71
|
-
|
|
72
|
-
**用途**:供 `setting-detector` Skill 使用,根据用户输入的关键词自动激活对应知识库。
|
|
73
|
-
|
|
74
|
-
### 类型知识库关键词
|
|
75
|
-
|
|
76
|
-
```yaml
|
|
77
|
-
romance:
|
|
78
|
-
keywords: [言情, 爱情, 恋爱, 浪漫, 感情线, 关系弧, CP, 甜文, 虐文]
|
|
79
|
-
auto_load: genres/romance.md
|
|
80
|
-
|
|
81
|
-
mystery:
|
|
82
|
-
keywords: [悬疑, 推理, 侦探, 破案, 谜团, 线索, 真相, 凶手, 犯罪]
|
|
83
|
-
auto_load: genres/mystery.md
|
|
84
|
-
|
|
85
|
-
historical:
|
|
86
|
-
keywords: [历史, 古代, 朝代, 考据, 时代背景, 历史小说]
|
|
87
|
-
auto_load: genres/historical.md
|
|
88
|
-
|
|
89
|
-
revenge:
|
|
90
|
-
keywords: [复仇, 报仇, 打脸, 爽文, 逆袭, 反击]
|
|
91
|
-
auto_load: genres/revenge.md
|
|
92
|
-
|
|
93
|
-
wuxia:
|
|
94
|
-
keywords: [武侠, 江湖, 武功, 侠客, 门派, 武学, 剑客]
|
|
95
|
-
auto_load: genres/wuxia.md
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### 写作技法关键词
|
|
99
|
-
|
|
100
|
-
```yaml
|
|
101
|
-
dialogue:
|
|
102
|
-
triggers: [对话, 角色说话, 台词, 交流场景, 谈话]
|
|
103
|
-
auto_load: craft/dialogue.md
|
|
104
|
-
|
|
105
|
-
scene-structure:
|
|
106
|
-
triggers: [场景, 章节结构, 情节推进, 场景设计]
|
|
107
|
-
auto_load: craft/scene-structure.md
|
|
108
|
-
|
|
109
|
-
character-arc:
|
|
110
|
-
triggers: [角色成长, 人物弧线, 角色改变, 性格转变]
|
|
111
|
-
auto_load: craft/character-arc.md
|
|
112
|
-
|
|
113
|
-
pacing:
|
|
114
|
-
triggers: [节奏, 快慢, 拖沓, 高潮, 张力]
|
|
115
|
-
auto_load: craft/pacing.md
|
|
116
|
-
|
|
117
|
-
show-not-tell:
|
|
118
|
-
triggers: [展示, 具象化, 说教, 感官细节, 描写]
|
|
119
|
-
auto_load: craft/show-not-tell.md
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### 参考资料关键词
|
|
123
|
-
|
|
124
|
-
```yaml
|
|
125
|
-
china-1920s:
|
|
126
|
-
keywords: [1920, 民国, 军阀, 北洋, 穿越民国, 二十年代, 上海滩, 十里洋场]
|
|
127
|
-
auto_load:
|
|
128
|
-
- references/china-1920s/overview.md
|
|
129
|
-
- references/china-1920s/warlords.md
|
|
130
|
-
- references/china-1920s/society.md
|
|
131
|
-
- references/china-1920s/daily-life.md
|
|
132
|
-
- references/china-1920s/culture.md
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
---
|
|
136
|
-
|
|
137
|
-
## 🛠️ 使用指南
|
|
138
|
-
|
|
139
|
-
### 自动激活流程
|
|
140
|
-
|
|
141
|
-
1. **用户提到关键词**:
|
|
142
|
-
```
|
|
143
|
-
用户:"我要写一部1920年代的言情复仇小说"
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
2. **setting-detector 检测**:
|
|
147
|
-
- 检测到 "1920" → 激活 `references/china-1920s/`
|
|
148
|
-
- 检测到 "言情" → 激活 `genres/romance.md`
|
|
149
|
-
- 检测到 "复仇" → 激活 `genres/revenge.md`
|
|
150
|
-
|
|
151
|
-
3. **按需加载**:
|
|
152
|
-
```
|
|
153
|
-
✓ 已加载 genres/romance.md (520 tokens)
|
|
154
|
-
✓ 已加载 genres/revenge.md (480 tokens)
|
|
155
|
-
✓ 已加载 references/china-1920s/*.md (650 tokens)
|
|
156
|
-
|
|
157
|
-
总计:~1650 tokens(仅加载相关知识)
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
4. **持续应用**:
|
|
161
|
-
- 在 `/specify` 时:建议关键元素
|
|
162
|
-
- 在 `/plan` 时:提供结构框架
|
|
163
|
-
- 在 `/write` 时:实时写作建议
|
|
164
|
-
- 在 `/analyze` 时:类型惯例检查
|
|
165
|
-
|
|
166
|
-
### 手动指定加载
|
|
167
|
-
|
|
168
|
-
如果自动检测失败,用户可以明确指定:
|
|
169
|
-
|
|
170
|
-
```
|
|
171
|
-
"请加载 romance 和 mystery 知识库"
|
|
172
|
-
"这个故事需要 1920s 中国参考资料"
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
### 查看当前激活的知识库
|
|
176
|
-
|
|
177
|
-
用户可随时询问:
|
|
178
|
-
```
|
|
179
|
-
"当前激活了哪些知识库?"
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
AI会回复:
|
|
183
|
-
```
|
|
184
|
-
📚 当前激活的知识库:
|
|
185
|
-
✓ genres/romance.md - 言情小说惯例
|
|
186
|
-
✓ genres/revenge.md - 复仇爽文技巧
|
|
187
|
-
✓ references/china-1920s/ - 1920年代中国资料
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
---
|
|
191
|
-
|
|
192
|
-
## 📦 知识库扩展
|
|
193
|
-
|
|
194
|
-
### 添加新知识库
|
|
195
|
-
|
|
196
|
-
1. **确定类别**:genres / craft / references
|
|
197
|
-
|
|
198
|
-
2. **创建文件**:
|
|
199
|
-
```bash
|
|
200
|
-
# 类型知识
|
|
201
|
-
touch templates/knowledge-base/genres/sci-fi.md
|
|
202
|
-
|
|
203
|
-
# 写作技法
|
|
204
|
-
touch templates/knowledge-base/craft/worldbuilding.md
|
|
205
|
-
|
|
206
|
-
# 参考资料
|
|
207
|
-
mkdir -p templates/knowledge-base/references/ancient-rome
|
|
208
|
-
touch templates/knowledge-base/references/ancient-rome/military.md
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
3. **更新映射表**:在本 README 的关键词映射表中添加对应条目
|
|
212
|
-
|
|
213
|
-
4. **编写内容**:参考现有知识库的格式(500-800行)
|
|
214
|
-
|
|
215
|
-
### 知识库格式规范
|
|
216
|
-
|
|
217
|
-
每个知识库文件应包含:
|
|
218
|
-
|
|
219
|
-
```markdown
|
|
220
|
-
# [知识库标题]
|
|
221
|
-
|
|
222
|
-
## 快速参考(Quick Reference)
|
|
223
|
-
[1-3段概述,说明核心原则]
|
|
224
|
-
|
|
225
|
-
## 核心原则(Core Principles)
|
|
226
|
-
[3-5个关键法则,带详细解释]
|
|
227
|
-
|
|
228
|
-
## 实践应用(Practical Application)
|
|
229
|
-
[如何在各个创作阶段应用这些知识]
|
|
230
|
-
|
|
231
|
-
## 常见陷阱(Common Pitfalls)
|
|
232
|
-
[类型新人常犯的错误及避免方法]
|
|
233
|
-
|
|
234
|
-
## 示例分析(Examples)
|
|
235
|
-
[经典作品案例分析]
|
|
236
|
-
|
|
237
|
-
## 与Commands的集成(Integration with Commands)
|
|
238
|
-
[在/specify, /plan, /write, /analyze中如何应用]
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
### 从经典小说提取知识库
|
|
242
|
-
|
|
243
|
-
未来可以解构经典小说,提取为知识库:
|
|
244
|
-
|
|
245
|
-
```bash
|
|
246
|
-
# 示例:从《三体》提取硬科幻知识
|
|
247
|
-
templates/knowledge-base/genres/hard-sci-fi.md
|
|
248
|
-
|
|
249
|
-
# 从《红楼梦》提取家族叙事知识
|
|
250
|
-
templates/knowledge-base/craft/family-saga.md
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
---
|
|
254
|
-
|
|
255
|
-
## 📊 知识库状态
|
|
256
|
-
|
|
257
|
-
**当前状态**:初始版本
|
|
258
|
-
|
|
259
|
-
| 类别 | 已完成 | 计划中 | 总计 |
|
|
260
|
-
|------|--------|--------|------|
|
|
261
|
-
| 类型知识 | 5 | 10+ | 15+ |
|
|
262
|
-
| 写作技法 | 5 | 8+ | 13+ |
|
|
263
|
-
| 参考资料 | 1 | 20+ | 21+ |
|
|
264
|
-
|
|
265
|
-
**下一步扩展计划**:
|
|
266
|
-
- [ ] 奇幻小说(fantasy)
|
|
267
|
-
- [ ] 科幻小说(sci-fi)
|
|
268
|
-
- [ ] 恐怖小说(horror)
|
|
269
|
-
- [ ] 世界构建技法(worldbuilding)
|
|
270
|
-
- [ ] 古代中国各朝代参考资料
|
|
271
|
-
- [ ] 现代都市参考资料
|
|
272
|
-
|
|
273
|
-
---
|
|
274
|
-
|
|
275
|
-
## 🔗 相关文档
|
|
276
|
-
|
|
277
|
-
- **Skills指南**:`docs/guides/skills-guide.md` - 了解 setting-detector Skill 如何使用本知识库
|
|
278
|
-
- **插件开发**:`docs/plugin-development.md` - 如何开发知识库插件
|
|
279
|
-
- **命令详解**:`docs/guides/commands.md` - 知识库如何增强各个命令
|
|
280
|
-
|
|
281
|
-
---
|
|
282
|
-
|
|
283
|
-
**知识库系统 = Novel Writer Skills 的长期竞争力**
|
|
284
|
-
|
|
285
|
-
让专业知识为你的创作保驾护航! ✨📚
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/{knowledge-base → resources}/character-archetypes/07-threshold-guardian.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/{knowledge-base → resources}/character-archetypes/archetype-combinations.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/{knowledge-base → resources}/references/cultivation-world/power-system.md
RENAMED
|
File without changes
|
|
File without changes
|
/package/templates/{knowledge-base → resources}/references/cultivation-world/world-setting.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/templates/{knowledge-base → resources}/references/modern-workplace/relationships.md
RENAMED
|
File without changes
|
/package/templates/{knowledge-base → resources}/references/modern-workplace/tech-industry.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|