Knowledge Graph Builder Free
БесплатноЗапускает вложенные скриптыНе проверенAI Agent类型化知识图谱系统,实体-关系-约束三要素,JSONL存储+约束验证。
от thcjp567 установок в других каталогахОб этом скилле
知识图谱构建器(免费版)
AI Agent的类型化知识图谱系统。实体-关系-约束三要素,每条变更都经过验证。
信息零散如沙,关系不可追溯,约束无验证。知识图谱构建器免费版将零散信息组织为可验证、可查询、可推理的结构化图谱。
架构总览
┌─────────────────────────────────────────────────────────────────┐
│ 知识图谱构建器免费版 (KNOWLEDGE GRAPH FREE) │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ 实体创建 │ -> │ 约束验证 │ -> │ JSONL存储 │ │
│ │ 12+核心类型 │ │ 必填/枚举/ │ │ 追加式日志 │ │
│ │ │ │ 禁止/类型/ │ │ 保留历史 │ │
│ └──────────────┘ │ 基数/无环 │ └──────────────┘ │
│ └──────────────┘ │
│ │ │
│ v │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ 图遍历查询 │ │ 关系创建 │ │ 约束检查 │ │
│ │ 按类型/属性 │ │ from-to-rel │ │ validate │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ 规划即图变换 │ │ 技能契约 │ │
│ │ 多步计划建模 │ │ 读写声明 │ │
│ └──────────────┘ └──────────────┘ │
│ │
│ 存储位置:memory/knowledge-graph/graph.jsonl │
│ 模式定义:memory/knowledge-graph/schema.yaml │
│ │
└─────────────────────────────────────────────────────────────────┘
快速开始
- 阅读## 核心能力章节了解skill功能
- 按## 依赖说明配置环境
- 执行所需能力对应的命令
- 参考## 错误处理章节处理异常
- 查看## FAQ解答常见疑问
30秒上手
# 初始化图谱目录
mkdir -p memory/knowledge-graph
touch memory/knowledge-graph/graph.jsonl
# 创建基础模式
cat > memory/knowledge-graph/schema.yaml << 'EOF'
types:
Person:
required: [name]
optional: [email, phone, notes]
Project:
required: [name, status]
status_enum: [active, paused, completed, archived]
Task:
required: [title, status]
status_enum: [open, in_progress, blocked, done]
relations:
has_owner:
from_types: [Project, Task]
to_types: [Person]
cardinality: many_to_one
has_task:
from_types: [Project]
to_types: [Task]
cardinality: one_to_many
blocks:
from_types: [Task]
to_types: [Task]
acyclic: true
EOF
60秒完整配置
# 示例
cat >> memory/knowledge-graph/graph.jsonl << 'EOF'
{"op":"create","entity":{"id":"p_001","type":"Person","properties":{"name":"张三","email":"[email protected]"}}}
{"op":"create","entity":{"id":"proj_001","type":"Project","properties":{"name":"网站重设计","status":"active"}}}
{"op":"relate","from":"proj_001","rel":"has_owner","to":"p_001"}
{"op":"create","entity":{"id":"task_001","type":"Task","properties":{"title":"设计首页原型","status":"open"}}}
{"op":"relate","from":"proj_001","rel":"has_task","to":"task_001"}
EOF
# 已知限制
python3 scripts/knowledge_graph.py validate
# 查询图谱
python3 scripts/knowledge_graph.py list --type Person
python3 scripts/knowledge_graph.py related --id proj_001 --rel has_task
结果处理: 执行完成后,查看输出结果确认操作状态。成功时输出包含处理摘要和结果数据;失败时根据错误信息排查问题,查阅错误处理章节获取恢复步骤。
核心能力
1. 类型化实体系统
12+核心类型,覆盖常见知识管理场景:
| 类型 | 必填属性 | 可选属性 | 用途 |
|---|---|---|---|
| Person | name | email, phone, notes | 人员信息 |
| Organization | name | type, members[] | 组织信息 |
| Project | name, status | goals[], owner? | 项目管理 |
| Task | title, status | due?, priority?, assignee?, blockers[] | 任务管理 |
| Goal | description | target_date?, metrics[] | 目标管理 |
| Event | title, start | end?, location?, attendees[], recurrence? | 事件日历 |
| Location | name | address?, coordinates? | 地点信息 |
| Document | title | path?, url?, summary? | 文档管理 |
| Message | content, sender | recipients[], thread? | 消息记录 |
| Thread | subject | participants[], messages[] | 讨论线程 |
| Note | content | tags[], refs[] | 笔记 |
| Account | service, username | credential_ref? | 账户管理 |
| Device | name, type | identifiers[] | 设备管理 |
| Credential | service, secret_ref | (禁止直接存储密钥) | 凭证引用 |
| Action | type, target, timestamp | outcome? | 行为日志 |
| Policy | scope, rule, enforcement | - | 策略管理 |
输入: 用户提供类型化实体系统所需的指令和必要参数。 处理: 按照skill规范执行类型化实体系统操作,遵循单一意图原则。 输出: 返回类型化实体系统的执行结果,包含操作状态和输出数据。
2. 关系系统
关系结构:
from_id: 源实体ID
relation_type: 关系类型
to_id: 目标实体ID
properties: 关系属性(可选)
常见关系类型:
| 关系 | 源类型 | 目标类型 | 基数 | 说明 |
|---|---|---|---|---|
| has_owner | Project, Task | Person | many_to_one | 项目/任务的负责人 |
| has_task | Project | Task | one_to_many | 项目包含的任务 |
| has_member | Orga |
Установить Knowledge Graph Builder Free в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
readexecFAQ
Что делает скилл Knowledge Graph Builder Free?
AI Agent类型化知识图谱系统,实体-关系-约束三要素,JSONL存储+约束验证。
Как установить скилл Knowledge Graph Builder Free?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Knowledge Graph Builder Free запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic