A lightweight two-stage safety framework for AI agents to filter prompts and prevent injection attacks before response generation.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install input-safety-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 input-safety-guard using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Input Safety Guard is a specialized security framework within the Openclaw Skills ecosystem designed to act as a robust gatekeeper for AI agents. It provides a sophisticated two-stage screening process that protects against prompt injection, prompt leakage, and various categories of unsafe or malicious user input. By integrating this skill, developers can ensure their agents remain within safe operational boundaries without sacrificing performance or user experience.
The system leverages a unique combination of deterministic prefiltering and agent-native semantic review. This layered defense strategy allows for high-speed rejection of known threats while utilizing the LLM's own reasoning capabilities to understand complex intent. As a core component of Openclaw Skills, it helps maintain the integrity of agent instructions and prevents unauthorized data exposure in production environments.
To integrate this into your workflow, ensure the following files are in your project directory: config/default_rules.yaml and the src/input_safety_guard/ source files. Use the following steps to initialize:
# Install required dependencies
pip install pyyaml
# Configure your rules in the yaml files
# default_rules.yaml, default_rules.strict.yaml, or default_rules.relaxed.yaml
Within your Python code, initialize the pipeline:
from input_safety_guard.pipeline import InputSafetyPipeline
pipeline = InputSafetyPipeline(profile="default")
response = pipeline.handle_user_message(user_input)
The Input Safety Guard organizes its decisions into structured metadata for clear auditing and routing. The primary schema includes:
| Field | Type | Description |
|---|---|---|
| decision | String | The final safety result: allow, review, or block. |
| source | String | Indicates if the decision came from prefilter or stage2. |
| category | String | The specific risk classification (e.g., prompt_leaking, insult). |
| confidence | String | Reliability of the classification: high, medium, or low. |
| matched_rules | Array | List of deterministic rules triggered during Stage 1. |
Loading
A streamlined automation skill to fetch, analyze, and generate professional digests from the HuggingFace Daily Papers feed.

A lightweight Git intelligence tool that provides immediate visibility into repository status, commit history, and team contribution metrics.

A fully autonomous AI agent skill that navigates a cyber-palace environment, making strategic social and political moves every two minutes.

A real-time virtual pet system for AI agents and developers featuring evolving pixel art species and high-stakes survival mechanics.

An integrated suite for managing the full lifecycle of Claude Code sessions, from keyword searching to automated history repair.

An AI agent skill for discovering and analyzing high-performing TikTok ad creatives and marketing patterns via the PipiAds database.








































