$npx -y skills add tody-agent/codymaster --skill cm-guardian-runtimeUse when you need to check if a destructive command is blocked or run guardian freeze checks.
| 1 | # cm-guardian-runtime — destructive command & freeze checks |
| 2 | |
| 3 | ## Commands |
| 4 | |
| 5 | ```bash |
| 6 | cm guardian check -- git push --force origin main # exits 1 if blocked |
| 7 | cm guardian path-check --file ./src/app.ts --roots src,lib |
| 8 | ``` |
| 9 | |
| 10 | ## Behaviour |
| 11 | |
| 12 | - Regex set for `rm -rf`, `DROP TABLE`, `git push --force`, `git reset --hard`, pipes to shell, etc. |
| 13 | - Prefix whitelist includes `npm run build`, `npm test`, `npx vitest`. |
| 14 | - Violations append to `.cm/guardian.log`. |
| 15 | |
| 16 | ## Investigate / debug mode |
| 17 | |
| 18 | When using **cm-debugging** or root-cause work, treat **freeze roots** as mandatory: only edit inside allowed directories until the hypothesis is proven. |
| 19 | |
| 20 | ## Config |
| 21 | |
| 22 | See `.cm/config.example.yaml` → `guardian:`. Hook patterns (Cursor / Codex): [docs/workflows/guardian-hooks.md](../../docs/workflows/guardian-hooks.md) (repo root). |