← 返回 Skills 市场
314
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install oc-guard-skill
功能描述
Safe OpenClaw config planning/apply workflow with bilingual execution receipts.
安全使用建议
This skill appears to do what it claims: a local Python CLI that gates OpenClaw config changes via plan/apply, performs backups, and emits signed bilingual receipts. Before installing or allowing autonomous invocation, check: 1) verify the openclaw and opencode binaries on your system are the official tools the script will call (the script runs them via subprocess), 2) review scripts/oc-guard.py (it will create a receipt secret file at ~/.openclaw/.ocguard_receipt_secret and logs in /tmp) and confirm you are comfortable with those local files, 3) run the provided smoke checks (python3 -m py_compile scripts/oc-guard.py and scripts/oc-guard.py plan --proposal templates/proposal.template.json) and inspect outputs, and 4) ensure /tmp diagnostic files (e.g., /tmp/oc-guard-last-opencode-output.txt) are handled as they may contain local diagnostic output. The skill does not request external credentials and does not contain hardcoded remote endpoints, but it does invoke external CLIs — only proceed if those CLIs are trusted. If you want extra assurance, run the script in a sandbox or inspect the remainder of the script not included in the truncated listing.
功能分析
Type: OpenClaw Skill
Name: oc-guard-skill
Version: 1.1.2
The oc-guard-skill is a well-architected configuration management tool for OpenClaw, designed specifically to prevent accidental misconfiguration. The core script (scripts/oc-guard.py) implements several defensive security patterns, including a strict path allowlist for configuration edits, automatic backups before applying changes, automated rollbacks if the service fails to restart or pass canary checks, and regex-based masking of sensitive keys (secrets/tokens) in output logs. While it interacts with sensitive configuration files and executes system commands via subprocess, its behavior is transparent, heavily documented in SKILL.md and docs/SAFETY.md, and strictly aligned with its stated purpose of providing a 'safe' configuration workflow.
能力评估
Purpose & Capability
Name/description (oc-guard: safe config plan/apply) match the included files and required binaries. The script implements plan/apply, path allowlists, validation, backup/rollback, and bilingual receipts. Required binaries (python3, openclaw, opencode) are appropriate for the stated purpose.
Instruction Scope
SKILL.md directs agents to run the bundled CLI and enforce plan/apply/gating rules; it does not ask the agent to read unrelated system files or external endpoints. The repository docs and AGENTS.md warn not to publish secrets and call out diagnostic files in /tmp; these behaviors align with the script.
Install Mechanism
There is no install spec (instruction-only with a bundled script). That is low-risk and coherent: the repo expects the script to be made executable and linked into ~/.local/bin optionally. No external download URLs or archive extracts are present.
Credentials
The skill declares no required env vars but supports a set of optional environment overrides (OPENCLAW_HOME, OCGUARD_*, etc.). The script will create a local receipt secret file (~/.openclaw/.ocguard_receipt_secret) if OCGUARD_RECEIPT_SECRET is not provided. This is proportionate to producing signed receipts but users should be aware of the local secret file and the optional env overrides.
Persistence & Privilege
The skill does not request always:true and is user-invocable only — normal defaults. It writes a local receipt secret and log files under ~/.openclaw and /tmp and may create backups under ~/.openclaw/config-backups. These are scoped to the user's environment and are expected for a config guard; users should confirm they are comfortable with these local files being created.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install oc-guard-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/oc-guard-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.2
Include .py CLI entrypoint and align skill/docs checks for ClawHub package consistency.
v1.1.1
Add official validation, drift/canary safety checks, and package metadata consistency updates.
v1.0.3
Improve plan diagnostics and enforce no-bypass safety rule
元数据
常见问题
Oc Guard Skill 是什么?
Safe OpenClaw config planning/apply workflow with bilingual execution receipts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 314 次。
如何安装 Oc Guard Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install oc-guard-skill」即可一键安装,无需额外配置。
Oc Guard Skill 是免费的吗?
是的,Oc Guard Skill 完全免费(开源免费),可自由下载、安装和使用。
Oc Guard Skill 支持哪些平台?
Oc Guard Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Oc Guard Skill?
由 edmond(@edmond-ai)开发并维护,当前版本 v1.1.2。
推荐 Skills