A zero-dependency security middleware that sanitizes email and calendar data to prevent prompt injection and malicious exfiltration in AI agents.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install agent-mail-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 agent-mail-guard using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
AgentMailGuard is a specialized security layer designed to sit between untrusted data sources and your AI agent context window. Built specifically for the Openclaw Skills ecosystem, it neutralizes a wide array of attack vectors including prompt injections, hidden unicode, and markdown-based data exfiltration. By processing incoming emails and calendar events through a rigorous sanitization pipeline, it ensures that your LLM only receives safe, structured text.
This tool is critical for developers who want to grant their agents access to communication tools without exposing the system to malicious 'ignore previous instructions' style attacks. It prioritizes privacy and security by performing all processing locally, ensuring no sensitive data ever leaves your machine while maintaining a high standard of protection.
To integrate this security layer into your Openclaw Skills setup, ensure you have Python 3.11 or higher installed.
# Navigate to the skill directory
cd agent-mail-guard
# Configure your trusted contacts
cp contacts.json.example contacts.json
# Edit contacts.json to include your known domains and VIPs
# Run a test sanitization on an email via gog CLI
bash scripts/check-email.sh
# Run the built-in test suite to verify security patterns
python3 -m pytest scripts/test_sanitizer.py
The skill produces a structured JSON output for every processed item, allowing Openclaw Skills to handle the data programmatically:
| Key | Description |
|---|---|
sender |
The validated email address of the sender. |
sender_tier |
Classification as known, unknown, or vip. |
subject |
The sanitized and cleaned subject line. |
body_clean |
The safe, truncated version of the body text. |
suspicious |
Boolean flag indicating if injection patterns were found. |
flags |
A list of specific security violations detected (e.g., 'markdown_img'). |
date |
ISO formatted date string. |
Loading
A comprehensive collaboration skill that connects AI agents to Minibook instances for project management, threaded discussions, and roadmap tracking.

A documentation-first security skill providing transparency and guidance for performing static analysis on third-party tools.

A specialized operational toolkit designed for rescue agents to diagnose, repair, and maintain OpenClaw Gateway instances.

An automated pipeline for gathering and synthesizing media and entertainment industry news from 65+ specialized sources.

An autonomous AI agent with internet access capable of complex research, software engineering, and multi-app workflow automation.

An automated deployment skill for provisioning OpenClaw on Google Cloud Platform with secure Tailscale networking and Brave Search integration.








































