oc-guard Skill
Purpose
All config-changing requests must go through
oc-guard.
Do not directly edit
~/.openclaw/openclaw.json.
When possible, invoke the bundled CLI at
{baseDir}/scripts/oc-guard.py.
Hard Rules
- 1. Use
oc-guard plan before apply. - High-risk changes require
oc-guard apply --confirm. - Always return execution receipt first.
- If command is not executed, return
【模型说明-未执行】. - Never claim success without a real
oc-guard receipt.
Common Commands
- - INLINECODE7
- INLINECODE8
- INLINECODE9
- INLINECODE10
- INLINECODE11
技能名称: oc_guard
详细描述:
oc-guard 技能
目的
所有配置变更请求必须通过 oc-guard 处理。
请勿直接编辑 ~/.openclaw/openclaw.json。
如有可能,请调用位于 {baseDir}/scripts/oc-guard.py 的捆绑命令行工具。
硬性规则
- 1. 在执行应用前,必须先使用 oc-guard plan 进行规划。
- 高风险变更需要使用 oc-guard apply --confirm 进行确认。
- 始终首先返回执行回执。
- 如果命令未执行,返回 【模型说明-未执行】。
- 未收到真实的 oc-guard 回执前,切勿声称操作成功。
常用命令
- - {baseDir}/scripts/oc-guard.py --help
- {baseDir}/scripts/oc-guard.py plan <需求描述>
- {baseDir}/scripts/oc-guard.py apply --confirm <需求描述>
- {baseDir}/scripts/oc-guard.py plan --proposal <文件>
- {baseDir}/scripts/oc-guard.py apply --confirm --proposal <文件>