← Back to Skills Marketplace
brianhearn

Expertpack Export

by Brian Hearn · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
294
Downloads
1
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install 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,...
README (SKILL.md)

ExpertPack Export

Part of the ExpertPack 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 · GitHub · Schema docs

Prerequisites

  • Read references/schemas-summary.md for the EP schema rules this export must follow.
  • The export writes to a target directory (default: {workspace}/export/). It does NOT modify the agent's live workspace files.

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.json

Review the scan output. It proposes:

  • Which files map to which pack type (agent, person, product, process)
  • Which knowledge domains were detected
  • Confidence scores for ambiguous classifications

2. Propose

Present the proposed composite to the user:

  • List each proposed pack with type, slug, and key content sources
  • Flag ambiguous classifications for user decision
  • Note any gaps (e.g., "No process packs detected — skip or create stubs?")

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:

  • Reads source files listed in the scan manifest
  • Extracts and classifies knowledge assertions
  • Deduplicates (prefers newest for conflicts)
  • Writes structured .md files with proper headers and frontmatter
  • Writes manifest.yaml per pack
  • Strips secrets (API keys, tokens, passwords) automatically

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:

  • All required files exist per schema
  • manifest.yaml fields are valid
  • No secrets leaked (scans for API key patterns)
  • File sizes within guidelines
  • Cross-references resolve

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

  • Never include secrets. The scan and distill scripts strip known patterns, but always review operational/tools.md and operational/infrastructure.md manually.
  • Distill, don't copy. Raw journal entries and session states should be compressed into structured knowledge. The export should be 10-20% the volume of raw state.
  • Respect privacy. Flag personal information about the user for access tier review. Default user-specific content to private access.
  • Preserve provenance. Each distilled file should note its source files in frontmatter.
  • Don't modify the live workspace. All output goes to the export directory.
Usage Guidance
This skill appears to do what it claims: read an OpenClaw workspace, distill knowledge, and write an ExpertPack export. Before installing or running it, consider: 1) The scripts read many workspace files (memory, logs, scripts, identity files). Only run the export on a workspace you intend to export. 2) The code strips secrets with regex patterns — this can miss or misclassify secrets. Manually review the resulting export (and run validate.py) before sharing or pushing it. 3) The distillation step is performed by the calling agent (the agent reads source files and writes distilled output). If you allow autonomous model invocation, review agent prompts and outputs carefully to avoid accidental data exposure. 4) Run the tool in a controlled environment and inspect generated files in /{workspace}/export/ (or a test workspace) first. 5) Because the skill includes runnable scripts, inspect the scripts locally (they are included) and ensure python3 on your system runs them with the expected permissions. If you need stricter guarantees, restrict the workspace contents to remove sensitive files before running the export.
Capability Analysis
Type: OpenClaw Skill Name: expertpack-export Version: 1.1.0 The expertpack-export skill bundle is a legitimate utility designed to export an OpenClaw agent's knowledge into a structured 'ExpertPack' format. The included Python scripts (scan.py, distill.py, compose.py, and validate.py) perform workspace inventory, directory scaffolding, and schema validation. The bundle demonstrates a strong security posture by implementing multiple redundant checks for secrets (API keys, tokens) and explicitly instructing the AI agent to strip sensitive data and seek user confirmation before finalizing the export. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description match the included scripts and instructions: the skill scans an OpenClaw workspace, distills content, scaffolds EP packs, composes a composite, and validates against schemas. The only declared external requirement is python3, which is appropriate for the bundled Python scripts.
Instruction Scope
The SKILL.md and scripts direct the agent to read the entire OpenClaw workspace (logs, memory, scripts, identity files) and produce an export. That is expected for an export tool, but the distillation step explicitly delegates 'content distillation' to the calling AI agent (the agent reads source files and writes distilled content). This gives the agent broad discretion over how raw content is transformed; combined with workspace-wide read access, it creates potential for accidental inclusion or transmission of sensitive data if the agent is not restricted or audited. The scripts attempt to strip secrets with regexes, but regex-based scrubbing is imperfect and can miss secrets or false-positive/negative cases.
Install Mechanism
No install spec; code is instruction-only plus included Python scripts. Nothing is downloaded from external URLs or installed automatically — the highest risk install patterns are not present.
Credentials
The skill requests no environment variables or credentials. It operates against a workspace directory (default /root/.openclaw/workspace), which is appropriate for an export tool and proportionate to its stated function.
Persistence & Privilege
The skill is not always-enabled and does not request system-wide persistence or modify other skills. It runs as an on-demand exporter and writes only to the specified export directory; no privileged or persistent behavior is requested.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install expertpack-export
  3. After installation, invoke the skill by name or use /expertpack-export
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
Core 2.8: Obsidian compatibility — output packs include YAML frontmatter and can be opened as Obsidian vaults.
v2.0.0
Updated for Schema 2.7. Improved distillation pipeline and composite manifest generation.
v1.0.1
Add ExpertPack framework links (expertpack.ai, GitHub, schema docs) and declare python3 requirement in metadata.
v1.0.0
Initial release — scan, distill, compose, validate pipeline for exporting OpenClaw agents into structured ExpertPack composites.
Metadata
Slug expertpack-export
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is 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,... It is an AI Agent Skill for Claude Code / OpenClaw, with 294 downloads so far.

How do I install Expertpack Export?

Run "/install expertpack-export" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Expertpack Export free?

Yes, Expertpack Export is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Expertpack Export support?

Expertpack Export is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Expertpack Export?

It is built and maintained by Brian Hearn (@brianhearn); the current version is v1.1.0.

💬 Comments