RSS新闻聚合
抓取分类新闻头条
该技能用于维护 Clawdbot 的累积式知识图谱,通过 Python 脚本对 life/areas/** 目录下的实体进行原子化事实的添加、替换与摘要生成,保持 ID 连续性,避免手动编辑 JSON 文件。
安装要求:Python 3 环境,将技能仓库克隆至本地。
步骤一:添加事实
python3 skills/knowledge-graph/scripts/kg.py add \
--entity people/safa \
--category status \
--fact "Runs Clawdbot on a Raspberry Pi" \
--source conversation
步骤二:替换旧事实
python3 skills/knowledge-graph/scripts/kg.py supersede \
--entity people/safa \
--old safa-002 \
--category status \
--fact "Moved Clawdbot from Pi to a Mac mini"
步骤三:生成摘要
python3 skills/knowledge-graph/scripts/kg.py summarize --entity people/safa
注意事项:实体位于 life/areas/<kind>/<slug>/;事实存于 items.json,摘要存于 summary.md;禁止删除事实,仅允许替代操作。
见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | 实体路径、事实文本、分类、来源、旧事实ID(替换时) |
| 输出 | 更新的 items.json、生成的 summary.md、新事实ID |
| 适用人群 | Clawdbot 用户、个人知识库维护者、AI 助手开发者 |
| 不包含 | 可视化界面、关系推理、自动抽取、云同步 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/safatinaztepe/knowledge-graph/SKILL.md
来源类型:GitHub 仓库