Install
openclaw skills install system-change-archiveCreate a pre-restart audit and rollback archive for system-level changes. Use when modifying OpenClaw config, plugins, routing, approvals, startup behavior, or other critical files where a failed restart would be painful to diagnose. 中文:这是给系统级改动准备的“重启前留档 + 失败可回滚”保障层,适合改配置、插件、路由、审批、启动行为这类关键部分;会把改前备份、执行计划、diff 和验证记录提前整理好,出了问题也能快速排查和回退。
openclaw skills install system-change-archiveA skill for high-risk system changes where restart or reload can make problems much harder to diagnose.
Its value is not in editing files for you. Its value is in making sure the risky parts are documented before the system is touched:
In one line: keep the evidence, context, and recovery path in place before you touch the system.
Key strengths:
If the change is small and low-risk, this skill may be overkill. But when the work can affect system behavior, service startup, remote access, or message routing, it becomes genuinely useful.
Use this skill in situations like these:
dist files, plugins, routing, approvals, startup behavior, or automation coreThis skill is usually not worth using for:
Use this skill only when the change is truly system-level, restart-sensitive, or hard to reconstruct after failure.
If it is a normal low-risk edit, do the work normally and keep the process lighter.
Run scripts/init_change_archive.py.
It resolves the archive location in this order:
--archive-rootSYSTEM_CHANGE_ARCHIVE_ROOTIf you need the exact path selection rules, read references/path-resolution.md.
Typical command:
python3 scripts/init_change_archive.py \
--change-name approval-followup-routing \
--summary "Patch reply routing for exec approval follow-up" \
--file /path/to/file1 \
--file /path/to/file2 \
--copy-before \
--init-index
This creates a structure like this:
<archive_root>/backups/system-changes/YYYY-MM-DD/HHMM-change-name/
PRE-RESTART/
README.md
meta.json
plan.md
backup/
after/
diff/
POST-RESTART/
restart-result.md
verify.md
logs/
It can also update the daily index when needed.
Before restart or reload, make sure these are actually present and meaningfully filled:
If you need the exact field expectations, read references/archive-schema.md.
This skill does not patch code or config for you. The real patch or config work happens outside the archival workflow.
Preferably before restart or reload, place:
PRE-RESTART/after/PRE-RESTART/diff/Do not skip this step.
Record:
One concise entry per change is usually enough to keep the day folder browsable.
这是一个专门给系统级变更做兜底的 skill。
它最有价值的地方,不是“帮你改文件”,而是把那些最容易在重启后出事、又最难补救的东西,提前整理好:
一句话说:先把证据、上下文和退路留好,再去动系统。
这类 skill 的优势很直接:
如果你做的是普通小改,这个 skill 会显得偏重;但只要涉及系统行为、服务启动、远程访问、消息路由这些关键链路,它就很值。
下面这些场景,就该上这个 skill:
dist 文件、插件、路由、审批逻辑、启动行为、自动化核心下面这些一般别拿它上:
只有当改动真的是系统级、重启敏感、翻车后难排查时,才用这个 skill。
如果只是普通小改,正常做就行,别把流程搞得太重。
运行 scripts/init_change_archive.py。
它会按这个顺序找地方放档案:
--archive-rootSYSTEM_CHANGE_ARCHIVE_ROOT如果你想看更细的路径判定规则,再读 references/path-resolution.md。
常用命令:
python3 scripts/init_change_archive.py \
--change-name approval-followup-routing \
--summary "Patch reply routing for exec approval follow-up" \
--file /path/to/file1 \
--file /path/to/file2 \
--copy-before \
--init-index
这会创建出这样一套目录:
<archive_root>/backups/system-changes/YYYY-MM-DD/HHMM-change-name/
PRE-RESTART/
README.md
meta.json
plan.md
backup/
after/
diff/
POST-RESTART/
restart-result.md
verify.md
logs/
并且在需要时顺手更新当天索引。
在 restart/reload 之前,至少要把下面这些内容补到位,而且别只留空壳:
如果你要看更细的字段要求,读 references/archive-schema.md。
这个 skill 不负责替你改代码或改配置;真正的 patch / config 操作在外面做。
最好在 restart/reload 之前就放好:
PRE-RESTART/after/PRE-RESTART/diff/这一条别跳。
把这些记进去:
每次改动留一条简短记录就够,这样当天目录翻起来不乱。