返回顶部
e

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
255
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

expertpack-export

ExpertPack 导出

属于 ExpertPack 框架的一部分——一种为AI智能体设计的结构化、可移植知识格式。

将OpenClaw实例导出为复合型ExpertPack:一个智能体包(子类型:agent)作为主声音,加上个人/产品/流程包作为知识组成部分。

了解更多: expertpack.ai · GitHub · Schema文档

前置条件

  • - 阅读 references/schemas-summary.md 了解本次导出必须遵循的EP schema规则。
  • 导出内容写入目标目录(默认:{workspace}/export/)。不会修改智能体当前的工作区文件。

导出流程

1. 扫描

运行 scripts/scan.py 对工作区进行盘点。输出一个JSON清单,包含发现的文件、分类及建议的包分配。

bash
python3 {skill_dir}/scripts/scan.py --workspace /root/.openclaw/workspace --output /tmp/ep-scan.json

查看扫描输出。它会建议:

  • - 哪些文件映射到哪种包类型(agent、person、product、process)
  • 检测到的知识领域
  • 模糊分类的置信度评分

2. 提议

向用户展示提议的复合结构:

  • - 列出每个提议的包,包括类型、slug和关键内容来源
  • 标记模糊分类供用户决策
  • 指出任何缺口(例如:未检测到流程包——跳过还是创建存根?)

等待用户确认后再继续。

3. 提炼

为每个提议的包运行 scripts/distill.py。它读取源文件、提取知识、去重,并写入符合EP规范的输出。

bash
python3 {skill_dir}/scripts/distill.py \
--scan /tmp/ep-scan.json \
--pack agent:easybot \
--output /root/.openclaw/workspace/export/packs/easybot/

对每个包重复执行。该脚本:

  • - 读取扫描清单中列出的源文件
  • 提取并分类知识断言
  • 去重(冲突时优先采用最新内容)
  • 写入带有正确标题和前置元数据的结构化.md文件
  • 为每个包写入manifest.yaml
  • 自动清除机密信息(API密钥、令牌、密码)

4. 组合

运行 scripts/compose.py 生成复合清单和概览。

bash
python3 {skill_dir}/scripts/compose.py \
--scan /tmp/ep-scan.json \
--export-dir /root/.openclaw/workspace/export/

5. 验证

运行 scripts/validate.py 检查导出内容是否符合schema规则。

bash
python3 {skill_dir}/scripts/validate.py --export-dir /root/.openclaw/workspace/export/

它检查:

  • - 所有必需文件是否按schema存在
  • manifest.yaml字段是否有效
  • 无机密泄露(扫描API密钥模式)
  • 文件大小在指导范围内
  • 交叉引用是否可解析

6. 审查与交付

展示验证报告和导出内容的摘要。用户决定是提交/推送还是进行调整。

重要规则

  • - 绝不包含机密信息。 扫描和提炼脚本会清除已知模式,但始终手动检查 operational/tools.md 和 operational/infrastructure.md。
  • 提炼而非复制。 原始日志条目和会话状态应压缩为结构化知识。导出内容体积应为原始状态的10-20%。
  • 尊重隐私。 标记用户的个人信息以供访问层级审查。默认将用户特定内容设为 private 访问权限。
  • 保留来源信息。 每个提炼文件应在前置元数据中注明其源文件。
  • 不修改实时工作区。 所有输出均写入导出目录。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 expertpack-export-1776162266 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 expertpack-export-1776162266 技能

通过命令行安装

skillhub install expertpack-export-1776162266

下载

⬇ 下载 expertpack-export v1.1.0(免费)

文件大小: 16.06 KB | 发布时间: 2026-4-15 12:15

v1.1.0 最新 2026-4-15 12:15
Core 2.8: Obsidian compatibility — output packs include YAML frontmatter and can be opened as Obsidian vaults.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部