Skills 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 to pack', 'upgrade ontology'. Requires the Ontology skill's graph.jsonl and optionally schema.yaml.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/brianhearn/ontology-to-expertpack" ~/.claude/skills/openclaw-skills-ontology-to-expertpack && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/brianhearn/ontology-to-expertpack" ~/.openclaw/skills/openclaw-skills-ontology-to-expertpack && rm -rf "$T"
skills/brianhearn/ontology-to-expertpack/SKILL.mdOntology to ExpertPack Converter
Converts an OpenClaw Ontology skill's append-only knowledge graph into a fully compliant ExpertPack with multi-layer retrieval support.
How to Use
Run the converter script:
python3 {skill_dir}/scripts/convert.py \ --graph memory/ontology/graph.jsonl \ --output ~/expertpacks/my-knowledge-pack
Optional flags:
— uses type definitions and relation rules--schema memory/ontology/schema.yaml
— custom pack name (defaults to "Ontology Export")--name "My Knowledge Pack"
— override auto-detected pack type--type auto|person|product|process|composite
What It Produces
A complete ExpertPack at the output directory:
— pack identity, type, context tiers, EK metadata placeholdermanifest.yaml
— summary of graph contents, entity/relation counts, navigation guideoverview.md- Content organized by mapped category (relationships/, workflows/, facts/, concepts/, operational/, governance/)
in each content directory_index.md
— typed entity relation graph (schema 2.3 compliant)relations.yaml
— entity types and termsglossary.md- Lead summaries and
section headers for optimal chunking##
Filenames use kebab-case. Content files kept under 3KB.
Post-Conversion Steps
into the generated ExpertPack directorycd- Verify content files are 400–800 tokens each (Schema 2.5 — no external chunker needed for correctly-sized files)
- Run EK evaluator to measure esoteric knowledge ratio
- Review and refine
context tiersmanifest.yaml - Commit to git and share via expertpack.ai or ClawHub
See expertpack.ai and the
expertpack ClawHub skill for full pack maintenance workflows.
Keep the output pack git-friendly and ready for iterative deepening.