Răsfoiți Sursa

fix(consistency): 同步增强标签格式到命令/代理文档

- SKILL.md: 更新 NEW_ENTITY 为4字段增强格式,添加层级权重表,新增 GOLDEN_FINGER_SKILL 标签文档
- webnovel-write.md: 更新实体标签格式,添加金手指技能标签支持
- consistency-checker.md: 更新验证规则支持层级分类和金手指技能检查
- metadata-extractor.md: 更新示例为增强格式
- pacing-checker.md: 添加 status_reporter --focus strand 调用说明
- webnovel-query.md: 添加 status_reporter --focus urgency/strand 快速分析命令

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
lingfengQAQ 5 luni în urmă
părinte
comite
51680f7ac0

+ 9 - 4
.claude/agents/consistency-checker.md

@@ -91,9 +91,10 @@ allowed-tools: Read, Grep
 ### Step 3: [NEW_ENTITY] Validation
 
 **For all new entities in reviewed chapters**:
-1. Verify they are tagged with `[NEW_ENTITY: 类型, 名称, 描述]`
+1. Verify they are tagged with `[NEW_ENTITY: 类型, 名称, 描述, 层级]`(层级: 核心/支线/装饰)
 2. Check if they contradict existing settings
 3. Assess if their introduction is necessary or bloat
+4. **NEW**: Verify `[GOLDEN_FINGER_SKILL]` tags for new abilities
 
 **Report untagged inventions**:
 ```
@@ -136,10 +137,13 @@ Chapters {N} - {M}
 - ✓ All new entities properly tagged: {count}
 - ⚠️ Untagged entities found: {count} (详见下方列表)
 - ❌ Contradictory entities: {count}
+- ⚠️ Missing tier classification: {count} (缺少层级标注)
+- 🔧 Untagged golden finger skills: {count}
 
 **Untagged List**:
-1. 第{M}章:"紫霄宗" (势力) - 需补充标签
-2. 第{M}章:"天雷果" (物品) - 需补充标签
+1. 第{M}章:"紫霄宗" (势力) - 需补充标签+层级
+2. 第{M}章:"天雷果" (物品) - 需补充标签+层级
+3. 第{M}章:"吞噬升级" (金手指技能) - 需补充 [GOLDEN_FINGER_SKILL] 标签
 
 ## 建议 (Recommendations)
 - [For power conflicts] 修改第{M}章,将"破空斩"替换为筑基期可用技能
@@ -162,6 +166,7 @@ Chapters {N} - {M}
 ## Success Criteria
 
 - 0 critical violations (power conflicts, unexplained character changes)
-- All new entities tagged with [NEW_ENTITY]
+- All new entities tagged with [NEW_ENTITY: ..., 层级]
+- All new golden finger skills tagged with [GOLDEN_FINGER_SKILL]
 - Location and timeline transitions are logical
 - Report provides specific fix recommendations with chapter numbers

+ 5 - 3
.claude/agents/metadata-extractor.md

@@ -39,8 +39,9 @@ Extract **structured metadata** from webnovel chapter content to populate the st
 
 刺耳的嘲笑声从四面八方传来,林天紧咬着牙关...
 
-[NEW_ENTITY: 角色, 慕容战天, 家族第一天才,练气期九层巅峰]
-[NEW_ENTITY: 角色, 慕容虎, 慕容战天的跟班,练气期五层]
+[NEW_ENTITY: 角色, 慕容战天, 家族第一天才,练气期九层巅峰, 核心]
+[NEW_ENTITY: 角色, 慕容虎, 慕容战天的跟班,练气期五层, 装饰]
+[GOLDEN_FINGER_SKILL: 吞噬, Lv1, 可吞噬敌人获得经验, 10秒]
 ```
 
 ---
@@ -149,7 +150,8 @@ Extract **structured metadata** from webnovel chapter content to populate the st
 **A) Identify Named Characters**:
 - Extract names from:
   - Dialogue attributions: `林天说道:`
-  - NEW_ENTITY tags: `[NEW_ENTITY: 角色, 慕容战天, ...]`
+  - NEW_ENTITY tags: `[NEW_ENTITY: 角色, 慕容战天, ..., 层级]`
+  - GOLDEN_FINGER_SKILL tags: Protagonist learning new skills
   - Narrative mentions: `慕容战天冷笑一声`
 
 **B) Filter Out**:

+ 11 - 0
.claude/agents/pacing-checker.md

@@ -23,6 +23,17 @@ allowed-tools: Read, Grep
 2. `.webnovel/state.json` (strand_tracker history)
 3. `大纲/` (to understand intended arc structure)
 
+**Optional: Use status_reporter for automated analysis**:
+```bash
+# 获取 Strand Weave 详细分析(推荐)
+python .claude/skills/webnovel-writer/scripts/status_reporter.py --focus strand
+
+# 输出包含:
+# - Quest/Fire/Constellation 占比统计
+# - 违规检测(连续Quest>5章等)
+# - 章节列表与主导Strand
+```
+
 ### Step 2: Classify Chapter Strands
 
 **For each chapter, identify the dominant strand**:

+ 24 - 0
.claude/commands/webnovel-query.md

@@ -244,6 +244,18 @@ grep -r -i -n -A 5 "{keyword}" 大纲/
 
 > **Reference**: `references/cool-points-guide.md` → 伏笔管理三层级(核心/支线/装饰)
 
+**快速分析命令**(推荐):
+```bash
+# 使用 status_reporter 获取自动化伏笔紧急度分析
+python .claude/skills/webnovel-writer/scripts/status_reporter.py --focus urgency
+
+# 输出包含:
+# - 三层级分类(核心/支线/装饰)+ 权重(3.0/2.0/1.0)
+# - 紧急度计算公式:(已过章节 / 目标回收章节) × 层级权重
+# - 危急/警告/正常 状态标识
+# - 回收建议排序
+```
+
 **YOU MUST**:
 1. Read `state.json` → `plot_threads.foreshadowing` array
 2. Filter where `status == "未回收"`
@@ -508,6 +520,18 @@ grep -r -i -n -A 5 "{keyword}" 大纲/
 
 **Purpose**: 分析最近章节的三线分布,检查是否存在节奏问题。
 
+**快速分析命令**(推荐):
+```bash
+# 使用 status_reporter 获取自动化 Strand Weave 分析
+python .claude/skills/webnovel-writer/scripts/status_reporter.py --focus strand
+
+# 输出包含:
+# - Quest/Fire/Constellation 占比统计
+# - 违规检测(连续Quest>5章、Fire缺失>10章等)
+# - 章节列表与主导Strand
+# - 节奏平衡建议
+```
+
 **YOU MUST**:
 1. Read `state.json` → `strand_tracker`
 2. Analyze last 10-20 chapters

+ 7 - 5
.claude/commands/webnovel-write.md

@@ -215,7 +215,8 @@ python .claude/skills/webnovel-writer/scripts/workflow_manager.py start-step \
 2. **Content Generation** (3000-5000 Chinese characters):
    - ✅ Follow outline Goal 100%
    - ✅ Deliver Cool Point as promised
-   - ✅ Introduce required Entities with `[NEW_ENTITY: 类型, 名称, 描述]` tags
+   - ✅ Introduce required Entities with `[NEW_ENTITY: 类型, 名称, 描述, 层级]` tags(层级: 核心/支线/装饰)
+   - ✅ Track new golden finger skills with `[GOLDEN_FINGER_SKILL: 技能名, 等级, 描述, 冷却时间]`
    - ✅ Plant Foreshadowing as planned
    - ✅ Protagonist power ≤ state.json (no power inflation)
    - ✅ Apply review feedback (avoid Critical Issues)
@@ -230,7 +231,8 @@ python .claude/skills/webnovel-writer/scripts/workflow_manager.py start-step \
    - [ ] Outline Goal achieved?
    - [ ] Cool-point delivered?
    - [ ] No power inflation (≤ state.json)?
-   - [ ] New entities tagged with [NEW_ENTITY]?
+   - [ ] New entities tagged with [NEW_ENTITY: ..., 层级]?
+   - [ ] Golden finger skills tagged with [GOLDEN_FINGER_SKILL] (if learned new)?
    - [ ] Review feedback applied (if exists)?
 
 5. **Save Output**:
@@ -263,7 +265,7 @@ python .claude/skills/webnovel-writer/scripts/workflow_manager.py start-step \
 **FORBIDDEN**:
 - ❌ Deviating from outline
 - ❌ Power inflation (exceeding state.json)
-- ❌ Missing [NEW_ENTITY] tags
+- ❌ Missing [NEW_ENTITY] or [GOLDEN_FINGER_SKILL] tags
 - ❌ Ignoring review feedback Critical Issues
 - ❌ Skipping self-review
 
@@ -287,7 +289,7 @@ python .claude/skills/webnovel-writer/scripts/workflow_manager.py start-step \
   --step-name "Extract Entities"
 ```
 
-**IF** you used `[NEW_ENTITY]` tags in the chapter:
+**IF** you used `[NEW_ENTITY]` or `[GOLDEN_FINGER_SKILL]` tags in the chapter:
 
 ```bash
 python .claude/skills/webnovel-writer/scripts/extract_entities.py "正文/第{N:04d}章.md" --auto
@@ -828,7 +830,7 @@ python .claude/skills/webnovel-writer/scripts/workflow_manager.py complete-task
 
 **Chapter Content**:
 - [ ] Chapter file saved to `正文/第{N:04d}章.md` (3,000-5,000 chars)
-- [ ] [NEW_ENTITY] tags extracted (if any)
+- [ ] [NEW_ENTITY] and [GOLDEN_FINGER_SKILL] tags extracted (if any)
 
 **State Management**:
 - [ ] `update_state.py` executed successfully

+ 28 - 5
.claude/skills/webnovel-writer/SKILL.md

@@ -86,14 +86,37 @@ allowed-tools:
 
 **标记格式**:
 ```markdown
+# 基础格式(3字段)
 [NEW_ENTITY: 类型, 名称, 描述]
 
+# 增强格式(4字段,推荐)- 支持实体层级分类
+[NEW_ENTITY: 类型, 名称, 描述, 层级]
+# 层级选项: 核心(必须追踪) / 支线(应该追踪) / 装饰(可选追踪)
+
+示例(增强格式):
+[NEW_ENTITY: 角色, 血煞门主, 本卷最终BOSS,炼虚期巅峰, 核心]
+[NEW_ENTITY: 角色, 云长老, 天云宗外门长老,筑基期巅峰修为, 支线]
+[NEW_ENTITY: 地点, 黑风山脉, 天云宗附近的危险区域,栖息着大量妖兽, 装饰]
+[NEW_ENTITY: 物品, 天雷果, 稀有灵果,可帮助练气期修士突破筑基瓶颈, 支线]
+[NEW_ENTITY: 势力, 血煞门, 邪道宗门,与主角家族有世仇, 核心]
+[NEW_ENTITY: 功法, 吞噬神功, 主角的金手指功法,可吞噬他人修为, 核心]
+```
+
+**层级权重(用于伏笔紧急度计算)**:
+| 层级 | 权重 | 含义 |
+|------|------|------|
+| 核心 | 3.0 | 必须追踪,影响主线 |
+| 支线 | 2.0 | 应该追踪,丰富剧情 |
+| 装饰 | 1.0 | 可选追踪,增加真实感 |
+
+**金手指技能标签**(独立标签,用于追踪主角技能):
+```markdown
+[GOLDEN_FINGER_SKILL: 技能名, 等级, 描述, 冷却时间]
+
 示例:
-[NEW_ENTITY: 角色, 云长老, 天云宗外门长老,筑基期巅峰修为,负责监督新人大比]
-[NEW_ENTITY: 地点, 黑风山脉, 天云宗附近的危险区域,栖息着大量妖兽]
-[NEW_ENTITY: 物品, 天雷果, 稀有灵果,可帮助练气期修士突破筑基瓶颈]
-[NEW_ENTITY: 势力, 血煞门, 邪道宗门,与主角家族有世仇]
-[NEW_ENTITY: 功法, 吞噬神功, 主角的金手指功法,可吞噬他人修为]
+[GOLDEN_FINGER_SKILL: 吞噬, Lv1, 可吞噬敌人获得经验, 10秒]
+[GOLDEN_FINGER_SKILL: 鉴定术, Lv2, 查看物品/角色属性, 无冷却]
+[GOLDEN_FINGER_SKILL: 瞬移, Lv3, 短距离位移闪避攻击, 30秒]
 ```
 
 **后处理流程**: