Hook Guard is a comprehensive security and safety layer for AI agents that provides real-time operation monitoring, automated file backups, and risk-based command interception.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install hook-guard
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install hook-guard using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Hook Guard serves as a vital safety net for Openclaw Skills, ensuring that every action taken by an AI agent is audited and protected. By implementing a three-tier hook system (Red, Yellow, and Green), it balances high-security requirements with seamless productivity. It acts as a middleware that watches over file modifications, system commands, and external communications to prevent irreversible mistakes or unauthorized actions.
This skill is particularly essential for developers managing complex environments where agents have significant tool permissions. Whether it is preventing a catastrophic rm -rf command or keeping a history of configuration changes, Hook Guard ensures that the power of AI automation is always coupled with professional-grade safety protocols.
To enable Hook Guard as a permanent security rule for your agents, add the following configuration to your AGENTS.md file:
## Security Rules (Hook Guard)
- Check impact scope before executing rm/trash; confirmation required for >5 files.
- Auto-backup config files to .hook-guard/backups/ before modification.
- Sudo commands must be confirmed by the user.
- Confirm recipient and content before sending external messages.
- Prefer trash over rm for recoverability.
You can also trigger it manually by telling the agent "enable safety mode" or "hook guard."
Hook Guard organizes its data within the workspace directory using a structured taxonomy for backups and auditing:
| Type | Path | Retention |
|---|---|---|
| Backups | ~/.openclaw/workspace-main/.hook-guard/backups/YYYY-MM-DD/ |
7 Days |
| Audit Logs | ~/.openclaw/workspace-main/.hook-guard/audit.log |
30 Days |
| File Naming | {original_name}.{HHmmss}.bak |
N/A |
Logs use a standard format: [Timestamp] ACTION /path/to/resource.
Loading
A sophisticated orchestration skill that decomposes complex tasks into sub-tasks for parallel execution by multiple specialized agents.

A robust, automated backup solution for OpenClaw VPS instances using restic for encrypted, deduplicated, and offsite storage.

An automated workflow for creating fashion e-commerce video assets including virtual models, garment-specific scripts, and Jimeng platform SOPs.

A professional-grade cloud synchronization skill that provides encrypted, versioned backups for AI agent memory files across S3-compatible storage.

A professional-grade suite of advanced Git tools for AI agents, enabling complex operations like interactive rebasing, worktree management, and reflog recovery.

Session Resume provides automated task state persistence and recovery to ensure long-running AI agent workflows survive session interruptions or restarts.








































