ExpertPack Export
name: expertpack-export
by brianhearn · published 2026-03-22
$ claw add gh:brianhearn/brianhearn-expertpack-export---
name: expertpack-export
description: Export an OpenClaw instance's accumulated knowledge into a structured ExpertPack composite. Use when backing up an agent's identity, exporting for migration, or creating a portable knowledge snapshot. Handles auto-discovery (scanning workspace state to identify constituent packs), distillation (compressing raw state into structured EP files), and packaging (writing EP-compliant packs + composite manifest). NOT for importing/hydrating from an existing EP.
metadata:
openclaw:
homepage: https://expertpack.ai
requires:
bins:
- python3
---
# ExpertPack Export
Part of the [ExpertPack](https://expertpack.ai) framework — a structured, portable knowledge format for AI agents.
Export an OpenClaw instance into a composite ExpertPack — an agent pack (subtype: agent) as the voice, plus person/product/process packs as knowledge constituents.
**Learn more:** [expertpack.ai](https://expertpack.ai) · [GitHub](https://github.com/brianhearn/ExpertPack) · [Schema docs](https://expertpack.ai/#schemas)
Prerequisites
Export Flow
1. Scan
Run `scripts/scan.py` to inventory the workspace. It outputs a JSON manifest of discovered files, their categories, and proposed pack assignments.
python3 {skill_dir}/scripts/scan.py --workspace /root/.openclaw/workspace --output /tmp/ep-scan.jsonReview the scan output. It proposes:
2. Propose
Present the proposed composite to the user:
Wait for user confirmation before proceeding.
3. Distill
Run `scripts/distill.py` for each proposed pack. It reads source files, extracts knowledge, deduplicates, and writes EP-compliant output.
python3 {skill_dir}/scripts/distill.py \
--scan /tmp/ep-scan.json \
--pack agent:easybot \
--output /root/.openclaw/workspace/export/packs/easybot/Repeat for each pack. The script:
4. Compose
Run `scripts/compose.py` to generate the composite manifest and overview.
python3 {skill_dir}/scripts/compose.py \
--scan /tmp/ep-scan.json \
--export-dir /root/.openclaw/workspace/export/5. Validate
Run `scripts/validate.py` to check the export against schema rules.
python3 {skill_dir}/scripts/validate.py --export-dir /root/.openclaw/workspace/export/It checks:
6. Review & Ship
Present the validation report and a summary of what was exported. The user decides whether to commit/push or adjust.
Important Rules
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...