Converts an OpenClaw Ontology skill's append-only knowledge graph into a fully compliant ExpertPack with multi-layer retrieval support.
Run the converter script:
python3 {skill_dir}/scripts/convert.py \
--graph memory/ontology/graph.jsonl \
--output ~/expertpacks/my-knowledge-pack
Optional flags:
--schema memory/ontology/schema.yaml — uses type definitions and relation rules--name "My Knowledge Pack" — custom pack name (defaults to "Ontology Export")--type auto|person|product|process|composite — override auto-detected pack typeA complete ExpertPack at the output directory:
manifest.yaml — pack identity, type, context tiers, EK metadata placeholderoverview.md — summary of graph contents, entity/relation counts, navigation guide_index.md in each content directoryrelations.yaml — typed entity relation graph (schema 2.3 compliant)glossary.md — entity types and terms## section headers for optimal chunkingFilenames use kebab-case. Content files kept under 3KB.
cd into the generated ExpertPack directorymanifest.yaml context tiersSee expertpack.ai and the expertpack ClawHub skill for full pack maintenance workflows.
Keep the output pack git-friendly and ready for iterative deepening.
共 2 个版本