# command_guard > Enforce .agentpolicy rules before executing commands. - Author: CheekyCodexConjurer - Repository: CheekyCodexConjurer/agentic-operations-architect - Version: 20251230100351 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/CheekyCodexConjurer/agentic-operations-architect - Web: https://mule.run/skillshub/@@CheekyCodexConjurer/agentic-operations-architect~command_guard:20251230100351 --- --- name: command_guard description: Enforce .agentpolicy rules before executing commands. metadata: short-description: Command safety guard --- ## 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`.