A security wrapper that protects AI agents from prompt injection by isolating untrusted shell command outputs using UUID-based boundaries.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install openclaw-safe-exec
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 openclaw-safe-exec using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
safe-exec is a critical security utility designed for LLM agents that interact with shell environments. It addresses a significant vulnerability: prompt injection via external data. When an agent executes a command that fetches remote data or reads untrusted files, an attacker can embed malicious instructions in that output. By using Openclaw Skills like this one, developers can ensure that the agent treats command output strictly as data, not as a source of new instructions.
The tool functions by encapsulating the standard output and error streams within cryptographically random UUID boundaries. These boundaries are unique to every execution, making it impossible for an attacker to guess or forge the closing tags. This ensures that the LLM can distinguish between the agent's internal control flow and the raw data returned by a command, reinforcing the security posture of Openclaw Skills.
To install this tool, copy the script to your local path and ensure it has execution permissions:
# Copy to PATH
cp scripts/safe-exec.sh ~/.local/bin/safe-exec
# Grant execution permissions
chmod +x ~/.local/bin/safe-exec
The tool uses a structured tagging system to help the LLM identify data boundaries. The following table describes the structure used within Openclaw Skills:
| Component | Tag Format | Purpose |
|---|---|---|
| Block ID | Block ID: [UUID] | Identifies the unique session ID |
| STDOUT Open | <<<STDOUT:[UUID]>>> |
Marks the start of command output |
| STDOUT Close | <<<END_STDOUT:[UUID]>>> |
Marks the end of command output |
| EXIT Open | <<<EXIT:[UUID]>>> |
Marks the start of the exit code |
| EXIT Close | <<<END_EXIT:[UUID]>>> |
Marks the end of the exit code |
Loading
An advanced autonomic software factory skill for Clawdbot optimized for ephemeral VM execution and high-concurrency development loops.

An automated scientific research framework that handles the end-to-end pipeline from idea generation to paper compilation.

A dual-mode management tool that integrates the Tailscale CLI and API for complete control over your private mesh network.

A comprehensive AI-driven interface for managing Usenet downloads and queue operations through the SABnzbd REST API.

A specialized search tool for accessing the Moegirl Wiki encyclopedia to retrieve anime, manga, and gaming character data.

An opinionated framework and tool for designing, building, and publishing professional-grade Openclaw Skills.








































