/install claw-guardirails-skill
Guardrails Safe Tools
When to Use
Apply this skill whenever a request can:
- execute shell/system commands;
- send outbound messages/posts to channels;
- trigger external actions (email, DB, gateways, automation).
Hard Rules
- Use
safe_execinstead of rawexec. - Use
safe_sendinstead of direct channel-post tools. - Use
safe_actionfor generic external/API side effects. - Never bypass the guardrails resolver with direct destructive tools.
- If decision is
require_approval, stop and wait for explicit approval flow.
Input Hygiene
- Always provide the narrowest
cwdforsafe_exec. - Include sender/channel/agent context when available.
- Keep command args explicit; do not hide risky flags in shell expansions.
- For
safe_action, include explicitresourceswhere possible.
Tool Contracts
safe_exec
Use for shell commands only after permission resolution.
Expected input shape:
{
"command": "git",
"args": ["status"],
"cwd": "/workspace/project"
}
safe_send
Use for outbound channel messages.
Expected input shape:
{
"channel": "telegram:ops-room",
"message": "Deployment done",
"channelType": "telegram"
}
safe_action
Use for side-effect actions that are not plain shell or plain chat send.
Expected input shape:
{
"action": "gmail.delete_message",
"payload": { "messageId": "..." },
"resources": [
{ "kind": "unknown", "value": "email-api", "operation": "delete" }
]
}
Decision Handling
allow: continue and return runtime result.deny: return denial with reason code; do not retry with alternate dangerous tools.require_approval: surface approval id/reason and wait for/approve \x3Cid>or RPC approval.
Good Defaults
- Prefer read-only commands (
git status,rg,ls) before mutable ones. - Propose reversible operations first.
- Ask for confirmation before destructive intent, even if technically allowed.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install claw-guardirails-skill - After installation, invoke the skill by name or use
/claw-guardirails-skill - Provide required inputs per the skill's parameter spec and get structured output
What is ClawGuardrails?
Enforces guarded execution with safe_exec, safe_send, and safe_action. Use when a task may run shell commands, send channel messages, or call external APIs/a... It is an AI Agent Skill for Claude Code / OpenClaw, with 355 downloads so far.
How do I install ClawGuardrails?
Run "/install claw-guardirails-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is ClawGuardrails free?
Yes, ClawGuardrails is completely free (open-source). You can download, install and use it at no cost.
Which platforms does ClawGuardrails support?
ClawGuardrails is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created ClawGuardrails?
It is built and maintained by Timo (@eveiljuice); the current version is v0.1.0.