Skip to content
Development
Skill

/cm-guardian-runtime

Use when you need to check if a destructive command is blocked or run guardian freeze checks.

From plugin
cm
5362 skills8 agents11 commands3 hooks
+1
Install
$ npx -y skills add tody-agent/codymaster --skill cm-guardian-runtime --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/cm-guardian-runtime

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when you need to check if a destructive command is blocked or run guardian freeze checks.

SKILL.md

cm-guardian-runtime.SKILL.md
name: cm-guardian-runtime
description: "Use when you need to check if a destructive command is blocked or run guardian freeze checks."

cm-guardian-runtime — destructive command & freeze checks

Commands

cm guardian check -- git push --force origin main    # exits 1 if blocked
cm guardian path-check --file ./src/app.ts --roots src,lib

Behaviour

  • Regex set for `rm -rf`, `DROP TABLE`, `git push --force`, `git reset --hard`, pipes to shell, etc.
  • Prefix whitelist includes `npm run build`, `npm test`, `npx vitest`.
  • Violations append to `.cm/guardian.log`.

Investigate / debug mode

When using **cm-debugging** or root-cause work, treat **freeze roots** as mandatory: only edit inside allowed directories until the hypothesis is proven.

Config

See `.cm/config.example.yaml` → `guardian:`. Hook patterns (Cursor / Codex): [docs/workflows/guardian-hooks.md](../../docs/workflows/guardian-hooks.md) (repo root).

Ships withcm

"I can't write code. But in 6 months, I shipped 12 real products using AI. CodyMaster is everything I learned — so you don't have to repeat my mistakes." — Tody Le, Head of Product, Creator of CodyMaster 50+ skills. One install.

Get the whole plugin

Other skills on cm.