expertpack-export
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). Output is Obsidian-compatible — includes YAML frontmatter on all content files and can be opened as an Obsidian vault. NOT for importing/hydrating from an existing EP.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/brianhearn/expertpack-exportWhat This Skill Does
The expertpack-export skill provides a robust framework for converting the accumulated knowledge, personality, and operational logic of an OpenClaw AI agent into an ExpertPack composite. An ExpertPack is a standardized, portable knowledge format that allows you to move agent intelligence across different environments or back up your agent's state in a structured, human-readable way.
This tool operates through a six-stage pipeline: Scanning, Proposal, Distillation, Composition, Validation, and Review. It automatically maps disparate files within your workspace into categorized packs (agent, person, product, or process), extracts core knowledge assertions, scrubs sensitive credentials like API keys to ensure security, and packages the data into valid ExpertPack schemas. By utilizing this skill, you ensure your agent's development history and operational context remain organized and transferable.
Installation
To add this capability to your agent, run the following command in your terminal or command-line interface:
clawhub install openclaw/skills/skills/brianhearn/expertpack-export
Ensure that you have appropriate write permissions to your local workspace, as the skill will generate an export/ directory containing your packaged knowledge files.
Use Cases
- Knowledge Portability: Moving an agent's persona and logic from a local testing environment to a production deployment without losing core operational context.
- Disaster Recovery & Archiving: Creating regular, version-controlled snapshots of your agent's knowledge base to restore service in the event of local workspace corruption.
- Collaborative Knowledge Sharing: Exporting specific 'process' or 'product' packs to share internal logic with other team members or other OpenClaw instances.
Example Prompts
- "Export my current agent state into an ExpertPack so I can migrate it to my server."
- "Scan my current workspace and show me the proposed structure for an ExpertPack export before you begin distilling."
- "Run a full export of the workspace and validate the output against the ExpertPack schema rules."
Tips & Limitations
- Verification: Always review the scan output generated by
scan.py. If the agent suggests incorrect mappings, you can manually guide the process before distillation begins. - Secrets Scrubbing: While the
distill.pyscript automatically filters known API key patterns, always perform a final visual audit of your export files before uploading them to public repositories. - Non-Destructive: This skill is strictly for exportation. It does not handle importing or hydrating a new agent from an existing pack; you will need to utilize the OpenClaw import tools for that purpose.
- Prerequisites: Familiarize yourself with the ExpertPack schema documentation to better understand how your agent's data is being structured, especially if you intend to modify the output files for downstream applications.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-brianhearn-expertpack-export": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
expertpack
Work with ExpertPacks — structured knowledge packs for AI agents. Obsidian-compatible: every pack is a valid Obsidian vault with Dataview support. Use when: (1) Loading/consuming an ExpertPack as agent context, (2) Creating or hydrating a new ExpertPack from scratch, (3) Configuring RAG for a pack, (4) Opening or authoring a pack in Obsidian. Triggers on: 'expertpack', 'expert pack', 'esoteric knowledge', 'knowledge pack', 'pack hydration', 'obsidian vault', 'obsidian pack'. For CLI tools (ep-validate, ep-doctor, ep-graph-export, ep-strip-frontmatter) install expertpack-cli. For EK ratio measurement and quality evals install expertpack-eval. For exporting an OpenClaw agent as an ExpertPack install expertpack-export. For converting an existing Obsidian Vault into an ExpertPack install obsidian-to-expertpack. For serving any ExpertPack as an MCP endpoint (expertise-as-a-service), see EP MCP at github.com/brianhearn/ep-mcp.
elite-to-expertpack
Convert Elite Longterm Memory data into a structured ExpertPack. Migrates the 5-layer memory system (SESSION-STATE hot RAM, LanceDB warm store, Git-Notes cold store, MEMORY.md curated archive, and daily journals) into ExpertPack's portable format with multi-layer retrieval, context tiers, and EK measurement. Output is Obsidian-compatible — includes YAML frontmatter on all content files and can be opened as an Obsidian vault. Use when: upgrading from Elite Longterm Memory to ExpertPack, backing up agent knowledge, or migrating to a new platform. Triggers on: 'elite to expertpack', 'convert elite memory', 'export elite memory', 'migrate elite longterm', 'upgrade memory to expertpack', 'elite memory export'.
expertpack-cli
Run ExpertPack CLI tools for validating, fixing, graphing, and deploying packs. Use when: running ep-validate, ep-doctor, ep-graph-export, ep-strip-frontmatter, or ep-fix-broken-wikilinks on a local pack. Triggers on: 'validate pack', 'ep-validate', 'ep-doctor', 'fix pack errors', 'graph export', 'ep-graph-export', 'strip frontmatter', 'deploy pack', 'ep-strip-frontmatter'. Requires the ExpertPack repo cloned locally (github.com/brianhearn/ExpertPack) — tools live in tools/validator/.
expertpack-eval
Measure ExpertPack EK (Esoteric Knowledge) ratio and run automated quality evals. Use when: (1) Measuring what percentage of a pack's content frontier LLMs cannot produce on their own, (2) Running automated eval sets against a pack-powered agent with LLM-as-judge scoring. Requires OpenRouter API key (auto-resolved from OpenClaw auth or OPENROUTER_API_KEY env var). Companion to the main expertpack skill. Triggers on: 'EK ratio', 'measure EK', 'blind probe', 'eval expertpack', 'pack quality eval', 'run eval', 'esoteric knowledge ratio'. Note: packs are Obsidian-compatible — eval results (ek_score) can be added to file frontmatter and queried in Obsidian via Dataview.
self-improving-to-expertpack
Convert Self-Improving Agent learnings into a structured ExpertPack. Migrates the .learnings/ directory (LEARNINGS.md, ERRORS.md, FEATURE_REQUESTS.md) and any promoted content from workspace files into ExpertPack's portable format with multi-layer retrieval, context tiers, and EK measurement. Output is Obsidian-compatible — includes YAML frontmatter on all content files and can be opened as an Obsidian vault. Use when: upgrading from Self-Improving Agent to ExpertPack, backing up agent learnings, exporting accumulated knowledge, or migrating to a new platform. Triggers on: 'self-improving to expertpack', 'convert self-improving', 'export learnings', 'migrate self-improving', 'learnings to expertpack', 'convert learnings to pack'.