prompt-guard

Detect and neutralize prompt injection attacks in text sources.

70|10|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/UseAI-pro/openclaw-skills-security --skill prompt-guard-useai-pro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-guard
Source: https://github.com/UseAI-pro/openclaw-skills-security/tree/main/skills/prompt-guard
Command: npx skills add https://github.com/UseAI-pro/openclaw-skills-security --skill prompt-guard-useai-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill protects your AI agent from prompt injection attacks, preventing malicious instructions from hijacking its behavior or compromising its security.

Core Features & Use Cases

  • Detects Hidden Instructions: Identifies and flags attempts to override agent directives within skill files, user inputs, or external data.
  • Prevents Instruction Hijacking: Stops unauthorized commands from manipulating the AI's intended actions.
  • Use Case: Before loading a new skill or processing user-provided text, run this guard to ensure no hidden, harmful instructions are present, maintaining the integrity of your AI's operations.

Quick Start

Analyze the provided text for any signs of prompt injection.

Frequently Asked Questions about prompt-guard

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

FAQPage Schema
How do I detect prompt injection attacks in user inputs and external data?

Detect prompt injection attacks by analyzing text for pattern anomalies, normalizing inputs, and evaluating severity to neutralize malicious instructions before processing.

What is prompt injection and how does instruction hijacking compromise AI safety?

Prompt injection is an adversarial input technique that hijacks an AI agent's intended actions by manipulating its context. It compromises AI safety by overriding core operational directives.

How do I prevent hidden malicious instructions from overriding my AI agent's directives?

Prevent hidden malicious instructions by running a guardrail check that scans skill content and external data, flagging unauthorized commands to stop context manipulation and instruction hijacking.

Can I use a prompt guardrail to ensure AI agent robustness against adversarial inputs before loading a new skill?

Yes, you can use a prompt guardrail to scan new skill files and external data. It ensures AI agent robustness by identifying and neutralizing harmful adversarial inputs prior to execution.

Does prompt injection detection work on external data sources and skill files?

Yes, prompt injection detection works across various text sources including skill files, user inputs, and external data. It employs pattern detection to identify and flag hidden instructions.