## 概要 / Summary
新增官方技能 `migrate-from-openclaw`:把本机 OpenClaw
数据目录(`~/.openclaw/`)里的智能体与技能迁移到 DesireCore。DesireCore 客户端将移除内置的 OpenClaw
专用导入器(desirecore/desirecore#6563),迁移能力改由本技能以操作知识的形式提供,Agent 用既有的
`ManageAgent`、文件工具与 `FileDigest` 完成。
Adds the official `migrate-from-openclaw` Skill, which migrates agents
and skills from the local OpenClaw data directory (`~/.openclaw/`) into
DesireCore. The DesireCore client is removing its built-in OpenClaw
importer (desirecore/desirecore#6563); this Skill carries the migration
as operating knowledge, and the Agent performs it with the existing
`ManageAgent`, file tools and `FileDigest`.
## 内容 / What it covers
- 来源结构:`openclaw.json` 的 `agents.list[]` 与
`agents.defaults.workspace`,`~` 展开规则,`IDENTITY.md` 名称与表情解析,全局技能目录只认含
`SKILL.md` 的子目录。
-
固定映射:`SOUL.md→persona.md`、`AGENTS.md→principles.md`、`USER.md`/`MEMORY.md→memory/`、workspace
`skills/`→智能体私有技能;描述取 `SOUL.md` 首个非空行(≤200 字符)。与客户端原导入器一致。
- 重名:智能体交给 `ManageAgent` 的既有原子分配(`-2`、`-3`);全局技能沿用
`<名>-openclaw[-N]`;缺版本号补 `1.0.0`。
- 流程:扫描 → 预览并由用户选择 → 创建 → 复制 → 逐文件 `FileDigest` 核对 → 回执。只读来源,不覆盖已有内容,不碰
MCP、权限、模型与凭据。
- Source layout, the fixed file mapping (same as the client's former
importer), conflict naming, and a scan → preview/choose → create → copy
→ per-file `FileDigest` verification → receipt procedure. The source is
read-only; existing content is never overwritten.
## 外部依赖披露 / External dependency disclosure
需要本机已有 OpenClaw 数据目录;本技能只读取它,不安装、不授权、不运行
OpenClaw,也不访问其网络服务(`description`、`compatibility`、本地化文案与正文均已写明)。
Requires an existing local OpenClaw data directory; the Skill only reads
it and does not install, license or operate OpenClaw (stated in
`description`, `compatibility`, localized text and the body).
## 目录 / Catalog
- 不加入 `builtin-skills.json`:只对 OpenClaw 用户有意义,按需从市场安装(客户端加号菜单入口会按需安装并预填
`/skill:migrate-from-openclaw`)。
- `requiredClientVersion` 10.0.180(`ManageAgent` 的 `avatarGeneration`
参数从该版起存在);`manifest.json` 技能计数 164 → 165。
- Not added to `builtin-skills.json`; installed on demand.
`requiredClientVersion` 10.0.180; skill count 164 → 165.
## 校验 / Checks
- `validate-i18n.py`:0 error(新条目只有与其他内置技能相同的 license/review evidence 警告)
- `validate_catalog_metadata.py --require-complete`:0 error
- `translate.py --check`:通过(中英正文均为人工撰写,`source_hash` 一致)
- 公共信息边界自检:无客户或私有信息;示例为通用名称。
运行时验收(隔离 DesireCore 实例用合成 OpenClaw 夹具按本技能迁移,与原导入器产出逐项对比)完成后补充在下方评论。
Runtime acceptance (migrating a synthetic OpenClaw fixture in an
isolated DesireCore instance and comparing with the former importer's
output) will be added as a comment.
---------
Co-authored-by: mashagua <993498039@qq.com>