Command Guard

Enforce .agentpolicy rules before executing commands.

majiayu000 Updated 567 repo stars

File contents

Purpose

Prevent destructive or risky commands without explicit approval.

Steps

  1. Read .agentpolicy before running commands.
  2. Block denied commands and request confirmation for guarded ones.
  3. Record the decision in the Action Log.

Guardrails

  • Always respect .agentpolicy and .agentignore.

majiayu000/claude-skill-registry-data/tree/main/development/command-guard commit 87fda2403d

Frequently asked questions

npx skillmds@latest add majiayu000/command-guard-2