Personal AI Infrastructure 多设备生命周期同步总入口:一句“同步一下我的 Personal AI”自动判断 PULL/PUSH/MERGE/NO ACTION/REVIEW/BLOCKED(AUTO_SYNC),覆盖 agent-tools、personal-ai-state(curated + Dynamic Memory 合并)、项目仓库、runtime refresh 与新设备 Fresh Restore;同时保留 DSH 四层环境上传/更新/体检/复现作为子步骤。只自动处理确定安全的变更,冲突与 dirty 一律留给人工。
60
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./skills/publish-and-reuse/SKILL.md本 skill 是 Personal AI Infrastructure 长期、多设备、增量生命周期同步的最高层入口。
用户平时只需要说“同步一下我的 Personal AI”,系统自动判断本次应该
PULL / PUSH / MERGE / NO ACTION / REVIEW / BLOCKED——用户不负责判断方向。
Fresh Restore 只是 local canonical missing 时的特殊 SYNC。
旧的 DSH 四层能力(Skills / 插件 / MCP / DSH 配置的上传、更新、体检、新设备复现)保留,但作为整体同步中的子步骤。
复杂协议、SYNC_OWNERSHIP_MATRIX、方向规则、Memory 合并契约、RESTORE 全流程:
references/personal-ai-lifecycle-sync.md(先读它再执行非常规场景)。
minimal-implementation)。| 用户说 | 进入模式 |
|---|---|
| 同步一下 / 同步我的 Personal AI / 更新一下这台电脑 / 让两台电脑一致 / 把变化同步出去 | SYNC(AUTO_SYNC,自动判方向) |
| 只检查 | CHECK(只读) |
| 只拉远端 | PULL(禁止 push/merge) |
| 只上传 | PUSH(禁止 pull/merge) |
| 在新电脑恢复 | RESTORE |
| 上传环境 / 更新环境 / 环境体检 / 新设备复现(旧表达) | 继续工作,映射到 PUSH / PULL / CHECK / RESTORE 子流程 |
编排器(薄,只 inspect/classify/调用既有工具/排序/报告):
python scripts\personal_ai_sync.py check # 只读分类,连 checkpoint 都只读更新
python scripts\personal_ai_sync.py sync # AUTO_SYNC 默认日常入口
python scripts\personal_ai_sync.py sync --detail # 下钻
python scripts\personal_ai_sync.py restore # Fresh/缺失恢复内部顺序(防数据丢失):fetch all → classify all(git ancestry,禁止 mtime/last-write-wins)→ action plan → 只执行确定安全动作 → 受影响面判定 → 受影响 Harness aic apply(generated-only,snapshot+post-diff+rollback)→ 受影响 derived 增量 refresh → validate → 写 machine-local checkpoint(~/.dsh/.personal-ai-sync/status.json)→ 短输出。
确定安全的自动动作(其余一律 REVIEW):clean FF pull、验证通过且 privacy scan PASS 的 FF push、不同设备新增 record/revision 的 Memory 确定性合并(复用 MemoryProvider.import_bundle 契约)、派生索引 rebuild、runtime diff/refresh。
aic discover / 本地 rebuild。.credentials.yaml、sessions/、storages/ 永远排除。known external blocker, unchanged,不重复建议解决。默认短输出(用户说“展开”才下钻 git 日志/diff/governance 细节):
Personal AI Sync
agent-tools IN_SYNC / PULLED / PUSHED
personal-ai-state IN_SYNC / PULLED / PUSHED / MERGED
projects <简要汇总>
memory <新增/合并/冲突数量>
runtime NO DRIFT / refreshed
secrets READY / PARTIAL
external blockers known external blocker, unchanged
Result: PASS / REVIEW / BLOCKED冲突时先把确定安全的部分同步完,只把真正冲突留给人工(不问“要不要同步其他没冲突的”)。
python scripts\sync_skills.py --destination "$env:USERPROFILE\.dsh\skills" --plugins-destination "$env:USERPROFILE\.dsh\profiles\web\plugins" --dsh-config-dir dsh-config --mcp-cordis "$env:USERPROFILE\.dsh\profiles\web\cordis.patch.yml" --profile full --checkgit diff --check + validate_repo --strict + quality_report --strict + 仓库回归 + publish_check.py → git push → 四层体检确认。git pull --ff-only → 门禁 → 同体检命令 --apply → 逐层 sync_dsh_config.py apply → 重启 DSH 生效。权威细节:references/personal-ai-lifecycle-sync.md、docs/publishing.md、docs/sync-ongoing.md。
本 skill 变更后必须全绿:
python scripts/validate_repo.py --strict
python skills/skill-quality-gate/scripts/quality_report.py --root . --strict
python -m unittest discover -s tests -v
python scripts/publish_check.py同步执行后验收:aic validate = VALID + 已安装 Harness aic diff = NO DRIFT + personal_status 无新增异常。
3677cfc
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.