Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
AI agent safety guardrails for tool calls. Use when (1) you want to validate agent tool calls before execution, (2) building agents that run shell commands, file operations, or API calls, (3) adding a safety layer to any MCP server or agent framework, (4) auditing what your agents are doing. Catches destructive commands, SSRF, SQL injection, path traversal, data exfiltration, prompt injection, and credential leaks. Zero dependencies, under 2ms.
AI agent safety guardrails for tool calls. Use when (1) you want to validate agent tool calls before execution, (2) building agents that run shell commands, file operations, or API calls, (3) adding a safety layer to any MCP server or agent framework, (4) auditing what your agents are doing. Catches destructive commands, SSRF, SQL injection, path traversal, data exfiltration, prompt injection, and credential leaks. Zero dependencies, under 2ms.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Validates what AI agents DO, not what they SAY. Drop-in safety layer for any tool-calling agent.
This skill requires the vigil-agent-safety npm package (12.3KB, Apache 2.0 license): npm install vigil-agent-safety Source code: https://github.com/hexitlabs/vigil npm: https://www.npmjs.com/package/vigil-agent-safety The npm package has zero runtime dependencies. This skill is a wrapper that calls that package.
import { checkAction } from 'vigil-agent-safety'; const result = checkAction({ agent: 'my-agent', tool: 'exec', params: { command: 'rm -rf /' }, }); // result.decision === "BLOCK" // result.reason === "Destructive command pattern" // result.latencyMs === 0.3
Destructive commands (rm -rf, mkfs, reverse shells) โ BLOCK SSRF (metadata endpoints, localhost, internal IPs) โ BLOCK Data exfiltration (curl to external, .ssh/id_rsa access) โ BLOCK SQL injection (DROP TABLE, UNION SELECT) โ BLOCK Path traversal (../../../etc/shadow) โ BLOCK Prompt injection (ignore instructions, [INST] tags) โ BLOCK Encoding attacks (base64 decode, eval(atob())) โ BLOCK Credential leaks (API keys, AWS keys, tokens) โ ESCALATE 22 rules. Zero dependencies. Under 2ms per check.
import { configure } from 'vigil-agent-safety'; // warn = log violations but don't block (recommended to start) configure({ mode: 'warn' }); // enforce = block dangerous calls configure({ mode: 'enforce' }); // log = silent logging only configure({ mode: 'log' });
Add Vigil as a safety layer for your agent tool calls. The scripts/vigil-check.js wrapper lets you validate from the command line: # Check a tool call node scripts/vigil-check.js exec '{"command":"rm -rf /"}' # โ BLOCK: Destructive command pattern # Check a safe call node scripts/vigil-check.js read '{"path":"./README.md"}' # โ ALLOW
Load built-in policy templates: import { loadPolicy } from 'vigil-agent-safety'; loadPolicy('restrictive'); // Tightest rules loadPolicy('moderate'); // Balanced (default) loadPolicy('permissive'); // Minimal blocking
npx vigil-agent-safety check --tool exec --params '{"command":"ls -la"}' npx vigil-agent-safety policies
GitHub: https://github.com/hexitlabs/vigil npm: https://www.npmjs.com/package/vigil-agent-safety Docs: https://hexitlabs.com/vigil
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.