A high-performance prompt injection firewall that protects AI agents from 113 threat patterns using multi-layered heuristic scoring.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install prompt-shield
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 prompt-shield using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
PromptShield is a specialized security layer designed to safeguard AI agents against manipulative inputs and adversarial attacks. By utilizing a multi-layered pattern recognition system, it classifies incoming text into threat levels to prevent unauthorized command execution, memory poisoning, and identity overrides. As a developer-first tool within the Openclaw Skills ecosystem, it provides a zero-dependency solution for maintaining agent integrity.
Built by the RASSELBANDE collective, this firewall is battle-tested against real-world prompt injection scenarios. It serves as a critical defense mechanism for any developer building autonomous agents that interact with untrusted user input or external data sources, ensuring that the underlying LLM remains within its intended operational boundaries.
To get started with this component of your Openclaw Skills, ensure you have Python 3 installed and follow these steps:
# Install the only required dependency
pip install pyyaml
# Make the scanner executable
chmod +x shield.py
# Test a simple scan
./shield.py scan "Hello, how can I help you?"
For Claude Code integration, add the hook to your configuration:
{
"hooks": {
"UserInputSubmit": ["/path/to/prompt-shield/prompt-shield-hook.sh"]
}
}
The skill manages its security logic through a structured YAML-based system:
| File | Description |
|---|---|
patterns.yaml |
The primary database containing 113 patterns across 14 categories. |
whitelist.yaml |
A hash-chained ledger of approved exceptions requiring peer signatures. |
shield.py |
The main execution logic for scanning and heuristic scoring. |
Threat classification is handled via the following scoring thresholds:
Loading
An inter-agent messaging tool that allows a lead agent to broadcast notifications to sub-agents through shared memory files.

An intelligent integration for controlling LIFX smart lighting systems through natural language processing and robust CLI tools.

A comprehensive social media management skill that enables AI agents to create, schedule, and publish content across multiple platforms using a CLI.

An API-first automation tool for collecting and validating timestamped, auditor-ready evidence for ISO 27001 and SOC 2 compliance.

An agent-based skill enabling iterative task execution and sophisticated automation loops within the OpenClaw environment.

A professional financial analysis agent that provides real-time market data tracking and structured three-layer impact predictions for global economic events.








































