ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

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

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/brianhearn/self-improving-to-expertpack
Or

What This Skill Does

The self-improving-to-expertpack skill acts as a bridge between the iterative development cycle of a Self-Improving Agent and the standardized, high-performance architecture of an ExpertPack. As an agent evolves, it accumulates a repository of tribal knowledge—best practices, error logs, and feature requests—often trapped in raw files like LEARNINGS.md or ERRORS.md. This skill automates the migration of these disparate notes into a clean, schema-compliant ExpertPack (v2.3). It performs intelligent parsing, deduplication, and restructuring, moving content into specialized directories like /mind, /facts, and /operational. Crucially, it secures your data by stripping secrets like API keys or tokens during the transformation process, ensuring your exported knowledge base remains safe for sharing or deployment.

Installation

Installation is handled via the OpenClaw platform. Use the standard install command within your terminal:

clawhub install openclaw/skills/skills/brianhearn/self-improving-to-expertpack

Ensure your local environment has the required Python dependencies installed, as the script leverages Python 3 for its parsing and normalization logic. Once installed, the tool is available as a command-line utility within your workspace environment.

Use Cases

This skill is designed for developers and AI operators who have reached a saturation point with their current agent's history and want to move toward a more scalable, version-controlled architecture. Common use cases include:

  • Migrating from a prototyping phase to a production-grade ExpertPack deployment.
  • Backing up accumulated agent knowledge before switching between different LLM backends or agent platforms.
  • Consolidating scattered documentation into a centralized, searchable, and machine-readable format.
  • Preparing an agent's logic for integration into a team-wide repository where structured meta-data and context tiers are required.

Example Prompts

  • "self-improving to expertpack: convert my current workspace learnings into a new pack named 'production-knowledge-base' in ~/expertpacks/"
  • "export learnings from the agent and initialize an expertpack with the type 'process' to ensure all my procedural notes are categorized correctly."
  • "migrate self-improving files: please run the conversion script on my current .learnings/ directory and output the manifest to ./expertpack-v1"

Tips & Limitations

  • Verification: Always review the generated overview.md after conversion to ensure that the priority mapping aligns with your project goals.
  • Secrets: While the skill attempts to strip credentials, verify sensitive files manually if you have included highly non-standard patterns for tokens.
  • Chunking: Don't forget to run the chunk.py post-migration; ExpertPacks rely on these chunks for efficient retrieval performance.
  • Constraint: This skill specifically requires a structured .learnings/ folder. If your agent uses custom log locations, use the --learnings flag to point the script to the correct directory.

Metadata

Stars4190
Views0
Updated2026-04-18
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-brianhearn-self-improving-to-expertpack": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#migration#knowledge-management#expertpack#automation#refactoring
Safety Score: 4/5

Flags: file-write, file-read, 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.

brianhearn 4190

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

brianhearn 4190

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

brianhearn 4190

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.

brianhearn 4190

obsidian-to-expertpack

Convert an existing Obsidian Vault into an agent-ready ExpertPack. Restructures vault content for EK optimization, RAG retrieval, and OpenClaw integration. Creates a copy — source vault is never modified. Use when: a user wants to make their Obsidian Vault usable by AI agents, convert OV to EP, drop their vault into OpenClaw as a knowledge pack, or make their notes RAG-ready. Triggers on: 'obsidian to expertpack', 'obsidian vault to ep', 'convert obsidian', 'OV to EP', 'obsidian agent ready', 'make my vault ai ready', 'obsidian knowledge pack', 'obsidian rag'.

brianhearn 4190