Migrate
它能做什么
接收从其他工具导出的笔记或规则,把每一部分放到正确的位置,并记录其来源。它适用于要把多年笔记迁移到新系统、又不想手动整理全部内容的人。
适用场景
- ✓当你想导入来自 Obsidian、Notion 或 Apple Notes 导出的笔记的时候。
- ✓当你有一份旧的 CLAUDE.md 或 Cursor 规则文件需要迁移的时候。
- ✓当你有大量日记或笔记文件需要整理的时候。
技能链接
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Migrate/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我旧的 Obsidian 笔记导入我的系统,并把每个章节放到正确的位置。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会为每个内容块提出一个目标位置,并附上置信度评分。高置信度的内容块会自动批准,中低置信度的则等待你确认。每个被写入的内容都会记录其源文件和章节。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Migrate — external-content intake and classification
Contents: Ideal State · Anti-criteria · Inputs · Tool contract · Output format · Gotchas · Examples · References · Data & Config
Migrate intakes external content, classifies each chunk against the LifeOS taxonomy, and commits it to the right destination with provenance. New LifeOS users usually arrive with years of notes (a CLAUDE.md, a markdown vault, journal dumps, rules from another tool) that map onto no LifeOS structure, and sorting hundreds of chunks by hand never gets done. Migrate proposes a destination for every chunk with a confidence score: high-confidence chunks auto-approve, medium ones ask for confirmation, low ones get a walk-through. Unlike /interview, which asks questions to fill gaps, /migrate already has the content and only classifies and routes it.
Ideal State
- Every committed chunk lands in a LifeOS destination that fits it and carries provenance: an HTML comment naming source file, section and timestamp.
- The principal sees the whole routing proposal (chunks per target, average confidence, UNCLEAR and under-40% counts) before anything is written, and picks how to approve it.
- Each chunk under 60% confidence is approved one at a time, each UNCLEAR chunk is routed by the principal's own call, and each chunk under 40% is walked through with them first (a conversational rule; the tool does not enforce the 40% line).
- Every AI collaboration rule reaches a constitutional surface (a CLAUDE.md operational rule, a hook, a
settings.jsonpermission, or the relevant skill's Gotchas), and every knowledge chunk becomes a new typed note with source metadata. - The run closes with what was committed per target, what is still UNCLEAR, and whether
/interviewshould fill what the migration left sparse.
Anti-criteria
Each of these is refused in code by LIFEOS/TOOLS/MigrateApprove.ts; the parenthesis names the mechanism. MigrateApprove.test.ts covers the threshold, UNCLEAR, protected-target and duplicate refusals.
- A chunk lands in PRINCIPAL_IDENTITY.md or under IDEAL_STATE/ without the principal's yes on that exact chunk. Identity is load-bearing, and IDEAL_STATE is fully private and curated, so each dimension is the principal's call. (Refused unless the single-item command carries
--confirm-protected <id>; every bulk command rejects that flag.) - A chunk under 60% confidence, or an UNCLEAR chunk, is committed by a bulk command. (
--approve-alltakes only chunks at or aboveBULK_MIN_CONFIDENCEand leaves the rest pending; UNCLEAR is refused until--modifyretargets it.) - A rule chunk is written to the harness
memory/feedback_*.mddirectory. Every feedback memo is a missed system patch (LIFEOS/RULES/SelfHealing.md§ Self-Healing Infrastructure, the "Override of harness auto-memory" paragraph), so rule chunks are walked through one by one to a constitutional surface. (Amemory/feedbacktarget is refused until--modifyretargets it.) - A chunk is committed to a target that already holds its text. (Text is compared lowercased with whitespace collapsed against the target file or knowledge dir; a match is reported and left pending, and
--reject <id>drops it.)
Inputs
MigrateScan classifies into a routing table; MigrateApprove commits per the user's chosen path.
Sources supported in V1
- Files:
.md,.markdown,.txt(single file or directory recursion) - Stdin: piped content or pasted directly
- Other LifeOS installs: point at their
USER/TELOS/orMEMORY/KNOWLEDGE/directories - Agent-harness rule files:
CLAUDE.md,.cursorrules, OpenAI Custom Instructions export - Exports: Obsidian vaults (markdown), Notion exports (markdown), Apple Notes exports (.txt), raw journal dumps
Collect the source path from the user; pasted content goes in through --stdin.
Tool contract
Run the scanner:
bun ~/.claude/LIFEOS/TOOLS/MigrateScan.ts --source <path>
# or
echo "$CONTENT" | bun ~/.claude/LIFEOS/TOOLS/MigrateScan.ts --stdin
# preview the routing without writing the approval queue
bun ~/.claude/LIFEOS/TOOLS/MigrateScan.ts --source <path> --dry-run
Scanner output includes total chunks found, the proposed routing table (how many chunks per target), average classification confidence, the count of UNCLEAR chunks, and the count of low-confidence (<40%) chunks.
Then approve along the path the user picks:
Fast path (they say "approve all trusted"):
bun ~/.claud
常见问题
它会未经询问就做更改吗?
只有高置信度的内容块会自动批准。中低置信度的内容需要你确认。
我怎么知道某项内容来自哪里?
每个已写入的内容都带有一条注释,标明其源文件、章节和时间。
它是用来编辑单个文件的吗?
不是。它为批量导入而设计,对单个文件的小改动,直接编辑更合适。
详情
作者的原始描述
Intakes external content (notes, CLAUDE.md, Cursor rules, Obsidian/Notion/Apple Notes exports), classifies chunks against the LifeOS taxonomy, and commits with provenance after confidence-tiered approval. USE WHEN /migrate, migrate content, import from other LifeOS, bring in old notes, import Cursor rules, import CLAUDE.md, bulk import, Obsidian/Notion/Apple Notes import. NOT FOR single-file edits, conversational interviews, identity edits.
repo: danielmiessler/LifeOS
热度
- GitHub 星标
- 20k
- 排名
- #10438
- 许可证
- MIT
- 更新时间
- 2026/10/28
评论
- …