novel-knowledge
实体搜索、关系查询、标签查询、索引重建。其他 skill 的数据访问层。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
实体搜索、关系查询、标签查询、索引重建。其他 skill 的数据访问层。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
把剧情往更狠、更疯、更高冲突的方向炸开。不求稳,只掀桌。触发词:"booming""太平了""不够炸""上强度""来点狠的""爆一下剧情""火力全开"。
不改章末目标,只放大过程阻力、烈度、压迫和场面感。触发词:"fuck it""单章加戏""过程更炸""这一章再上点强度"。
全书架构、分卷节奏、长期主线规划。母型诊断 → beats 蓝图 → 分卷节奏卡。触发词:"全书大纲""卷结构""bookplan""故事母型""分卷规划""重排卷结构"。
讨论创意、角色、世界观、体系、势力、事件走向,做创作决策。触发词:"讨论""帮我决定""方案对比""角色设计""世界观""体系审查""设计一个物品"。
初始化新小说项目,建立目录结构和基础创作契约(CLAUDE.md)。触发词:"初始化小说""新建项目""开始写小说""创建小说"。
批量生成角色名、功法名、门派名、物品名等中文风格名称。8 类命名,7 级稀有度,项目实体去重。
| name | novel-knowledge |
| description | 实体搜索、关系查询、标签查询、索引重建。其他 skill 的数据访问层。 |
供其他 skill 调用,负责数据访问,不包含高层语义判断。
python {SKILL_DIR}/scripts/knowledge_graph.py <command> [args]
python {SKILL_DIR}/scripts/knowledge_graph.py search <query> [-t type] [-l limit] [-j]
python {SKILL_DIR}/scripts/knowledge_graph.py update <type> <name> [-j]
创建空模板文件,不覆盖已有文件。编辑完成后需运行 rebuild。
python {SKILL_DIR}/scripts/knowledge_graph.py relations <entity_id>
返回出向和入向关系。
python {SKILL_DIR}/scripts/knowledge_graph.py tags <tag>
python {SKILL_DIR}/scripts/knowledge_graph.py rebuild
扫描 memory/entities/ 下所有 md 文件的 YAML frontmatter,重新生成 _graph.json 和 _index.json。
运行时机:创建新实体文件后、编辑实体 frontmatter 后、批量修改后、novel-sync 完成后。
每个实体文件的 YAML frontmatter:
---
id: <唯一标识符,中文>
name: <显示名称>
type: <character/location/item/faction/concept>
tags: [标签1, 标签2]
relations:
- target: <目标实体id>
relation: <关系类型>
description: <关系描述>
---
关系是双向的:A → B 的关系会自动生成 B → A 的入向关系。
memory/entities/<type>/<name>.mdrebuild 同步知识图谱不要手动编辑 _graph.json 或 _index.json。
PyYAML(解析嵌套 YAML frontmatter):uv pip install pyyaml