返回顶部
o

ontology-to-expertpack本体转专家包

Convert an Ontology skill knowledge graph into a structured ExpertPack. Use when migrating from the Ontology skill's entity/relation graph (memory/ontology/graph.jsonl) to ExpertPack's richer format with multi-layer retrieval, EK measurement, and portable deployment. Output is Obsidian-compatible — includes YAML frontmatter on all content files and can be opened as an Obsidian vault. Triggers on: 'ontology to expertpack', 'convert ontology', 'export ontology', 'migrate ontology', 'ontology graph

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
246
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

ontology-to-expertpack

本体到专家包转换器

将OpenClaw本体技能的仅追加知识图谱转换为完全兼容的专家包,支持多层检索。

使用方法

运行转换脚本:

bash
python3 {skill_dir}/scripts/convert.py \
--graph memory/ontology/graph.jsonl \
--output ~/expertpacks/my-knowledge-pack

可选参数:

  • - --schema memory/ontology/schema.yaml — 使用类型定义和关系规则
  • --name My Knowledge Pack — 自定义包名称(默认为本体导出)
  • --type auto|person|product|process|composite — 覆盖自动检测的包类型

输出内容

输出目录中将生成完整的专家包:

  • - manifest.yaml — 包标识、类型、上下文层级、EK元数据占位符
  • overview.md — 图谱内容摘要、实体/关系计数、导航指南
  • 按映射类别组织的内容(关系/、工作流/、事实/、概念/、操作/、治理/)
  • 每个内容目录中的_index.md
  • relations.yaml — 类型化实体关系图(符合schema 2.3标准)
  • glossary.md — 实体类型和术语
  • 引导摘要和##章节标题,实现最佳分块

文件名采用短横线命名法。内容文件保持在3KB以下。

转换后步骤

  1. 1. cd进入生成的专家包目录
  2. 验证每个内容文件为400–800个token(Schema 2.5 — 正确大小的文件无需外部分块器)
  3. 运行EK评估器测量深奥知识比例
  4. 审查并优化manifest.yaml中的上下文层级
  5. 提交到git并通过expertpack.ai或ClawHub分享

完整的包维护工作流程请参见expertpack.ai和expertpack ClawHub技能。

保持输出包对git友好,并准备好进行迭代深化。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ontology-to-expertpack-1776373681 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ontology-to-expertpack-1776373681 技能

通过命令行安装

skillhub install ontology-to-expertpack-1776373681

下载

⬇ 下载 ontology-to-expertpack v1.0.1(免费)

文件大小: 5.25 KB | 发布时间: 2026-4-17 15:36

v1.0.1 最新 2026-4-17 15:36
Core 2.8: Obsidian compatibility — output packs include YAML frontmatter and can be opened as Obsidian vaults.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部