prompt-guard

Detect and classify prompt injection patterns in text data with risk levels.

12|3|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/ApiliumCode/mayros --skill prompt-guard-apiliumcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-guard
Source: https://github.com/ApiliumCode/mayros/tree/main/skills/official/prompt-guard
Command: npx skills add https://github.com/ApiliumCode/mayros --skill prompt-guard-apiliumcode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill proactively identifies and classifies potentially harmful prompt injection attempts within text data, safeguarding AI systems from malicious inputs.

Core Features & Use Cases

  • Prompt Injection Detection: Scans text for known patterns of prompt injection, such as role overrides, command execution attempts, and evasion techniques.
  • Risk Classification: Assigns a risk level (dangerous, suspicious, safe) to each detected pattern, allowing for prioritized response.
  • Use Case: Before processing user-generated content that will be fed into a sensitive AI model, run it through prompt-guard to flag any attempts to manipulate the AI's behavior or extract confidential information.

Quick Start

Use the prompt-guard skill to scan the provided text for any injection attempts.

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 input before processing it?

To detect prompt injection, scan text data using pattern matching against predefined rules to identify role overrides, command execution attempts, and evasion techniques. This classifies inputs into dangerous, suspicious, or safe categories, safeguarding AI systems from malicious manipulation.

What is the best way to classify risk levels for suspicious AI inputs?

The best way to classify risk levels for suspicious inputs is to apply threat detection logic that assigns a risk level of dangerous, suspicious, or safe to each detected prompt injection pattern. This enables prioritized security auditing and response.

Can I use pattern matching alone to secure my AI from prompt injection?

Yes, you can use pattern matching alone to secure your AI by scanning text for known dangerous and suspicious injection patterns. This proactive content moderation layer identifies role overrides and evasion techniques to prevent malicious behavior.

When do I need to run threat detection for AI safety and content moderation?

You need to run threat detection for AI safety and content moderation before processing user-generated content that will be fed into a sensitive AI model. This proactively identifies and flags attempts to manipulate the AI's behavior or extract confidential information.

Does prompt injection detection work for security auditing of text data?

Yes, prompt injection detection works for security auditing of text data by applying risk classification to flag known evasion techniques. It scans provided text to identify potentially harmful attempts, allowing for prioritized response to safeguard AI systems.