# Oc Guard

> Safe OpenClaw config planning/apply workflow with bilingual execution receipts.

- Skill: `dvcrn/oc-guard` (Agent Skill, multi-file: 7 files)
- Install (CLI): `npx skillmds@latest add dvcrn/oc-guard`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvcrn/oc-guard/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: dvcrn (https://skillmd.com/u/dvcrn)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/dvcrn/oc-guard

---


# 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.
2. High-risk changes require `oc-guard apply --confirm`.
3. Always return execution receipt first.
4. If command is not executed, return `【模型说明-未执行】`.
5. Never claim success without a real `oc-guard` receipt.

## Common Commands
- `{baseDir}/scripts/oc-guard.py --help`
- `{baseDir}/scripts/oc-guard.py plan "<requirement>"`
- `{baseDir}/scripts/oc-guard.py apply --confirm "<requirement>"`
- `{baseDir}/scripts/oc-guard.py plan --proposal <file>`
- `{baseDir}/scripts/oc-guard.py apply --confirm --proposal <file>`

