agent-guard

Detects and sanitizes prompt-injection and command-injection threats in AI agent inputs.

1|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zscole/AgentGuard --skill agent-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-guard
Source: https://github.com/zscole/AgentGuard/tree/main
Command: npx skills add https://github.com/zscole/AgentGuard --skill agent-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Real-time detection and sanitization of prompt-injection and command-injection threats targeting AI agents, preventing unsafe prompts from altering behavior.

Core Features & Use Cases

  • Real-time detection of prompt and command injections
  • On-demand sanitization that replaces threats with safe placeholders
  • OpenClaw and Claude MCP server integration for seamless deployment
  • GitHub issue screening and threat analytics

Quick Start

Install the skill in your OpenClaw or Claude MCP environment and start analyzing text with agent-guard analyze to detect threats.

Frequently Asked Questions about agent-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect prompt injection attacks in AI agent inputs?

You can detect prompt injection in AI agent inputs by running agent-guard analyze, which applies context-aware risk scoring to text and GitHub issues. It returns structured threat results, sanitized output with safe placeholders, and actionable recommendations.

Can I sanitize command-injection threats directly in Claude MCP environments?

Yes, you can sanitize command-injection threats in Claude MCP environments. Agent-guard integrates directly with Claude MCP servers to detect malicious inputs and replace threats with safe placeholders, preventing unsafe prompts from altering agent behavior.

Do I need external libraries to run prompt-injection detection for AI agents?

No, you do not need external libraries for prompt-injection detection. Agent-guard's core logic requires only the Python standard library, though optional OpenClaw and Claude MCP integrations are available for seamless server deployment and threat analytics.

What is the best way to screen GitHub issues for AI security threats?

The best way to screen GitHub issues for AI security threats is using agent-guard to analyze issue content with context-aware risk scoring. It identifies prompt-injection and command-injection attacks, providing structured threat results and sanitizing unsafe inputs.

Does agent-guard work with OpenClaw for real-time AI agent security?

Yes, agent-guard works with OpenClaw for real-time AI agent security. It offers optional OpenClaw integration to detect and sanitize prompt-injection and command-injection threats, providing structured threat reporting and recommendations within the OpenClaw environment.