Self-Improving Agent → ExpertPack
name: self-improving-to-expertpack
by brianhearn · published 2026-03-22
$ claw add gh:brianhearn/brianhearn-self-improving-to-expertpack---
name: self-improving-to-expertpack
description: "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. 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'."
metadata:
openclaw:
homepage: https://expertpack.ai
requires:
bins:
- python3
---
# Self-Improving Agent → ExpertPack
Converts a **Self-Improving Agent** skill's `.learnings/` directory (3.8K ClawHub installs) into a properly structured **ExpertPack**.
**Supported sources:**
Usage
cd /root/.openclaw/workspace/ExpertPack/skills/self-improving-to-expertpack
python3 scripts/convert.py \
--workspace /path/to/your/workspace \
--output ~/expertpacks/my-learnings-pack \
[--name "My Agent's Learnings"] \
[--type auto|person|agent|process]Override `.learnings/` location with `--learnings /path/to/.learnings`.
What It Produces
A complete ExpertPack conforming to schema 2.3:
- `mind/` — best practices, conventions, behavioral patterns, promoted rules
- `facts/` — knowledge gaps filled, project-specific facts
- `operational/` — error resolutions, tool gotchas, integration fixes
- `summaries/` — pattern analyses, recurring issue summaries
- `relationships/` — cross-references between related entries
**Secrets are automatically stripped** (sk-*, ghp_*, tokens, passwords). Warnings emitted for any found.
Post-Conversion Steps
1. `cd ~/expertpacks/my-learnings-pack`
2. Run the ExpertPack chunker: `python3 /path/to/expertpack/scripts/chunk.py --pack . --output ./.chunks`
3. Measure EK ratio: `python3 /path/to/expertpack/scripts/eval-ek.py .`
4. Review `overview.md` and `manifest.yaml`
5. Commit to git and publish to ClawHub
**Learn more:** https://expertpack.ai • ClawHub [expertpack skill](https://clawhub.com/skills/expertpack)
**See also:** Self-Improving Agent skill on ClawHub.
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...