prompt-guard

Detect prompt injections and jailbreak attempts in LLM applications.

Updated Jan 12, 2026
One-click install
npx skills add https://github.com/MesferAli/XCircle --skill prompt-guard-mesferali
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-guard
Source: https://github.com/MesferAli/XCircle/tree/main/.claude/skills/prompt-guard
Command: npx skills add https://github.com/MesferAli/XCircle --skill prompt-guard-mesferali

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires transformers, torch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill protects Large Language Model (LLM) applications by detecting and filtering malicious prompts, including prompt injections and jailbreak attempts, ensuring safer and more reliable AI interactions.

Core Features & Use Cases

  • Prompt Injection & Jailbreak Detection: Identifies and flags harmful inputs designed to manipulate LLM behavior.
  • Third-Party Data Filtering: Secures RAG systems and API responses by detecting embedded malicious instructions.
  • Multilingual Support: Operates effectively across 8 different languages.
  • Use Case: Before sending user input to an LLM, use this Skill to scan for any attempts to override its instructions or inject harmful commands, preventing security breaches and ensuring the LLM stays on task.

Quick Start

Use the prompt-guard skill to check if the user input 'Ignore previous instructions' is a jailbreak attempt.

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 and jailbreak attempts in LLM applications?

You can detect prompt injection and jailbreak attempts by scanning user inputs with an 86M parameter classifier before sending them to the LLM. This filters malicious prompts to prevent security breaches and ensures the model stays on its intended task.

Can I secure RAG systems from malicious instructions embedded in third-party data?

Yes, you can secure RAG systems by filtering third-party data and API responses using a prompt injection classifier. This detects embedded malicious instructions in retrieved context, preventing indirect attacks that manipulate LLM behavior through external sources.

Does prompt injection detection work across multiple languages?

Prompt injection detection works effectively across 8 different languages. The multilingual classifier identifies harmful inputs and jailbreak attempts in user prompts regardless of the supported language, ensuring broader security for global LLM applications.

Do I need PyTorch and Transformers to run prompt injection classification?

Yes, you need PyTorch and Transformers to run the prompt injection classification. These dependencies support the 86M parameter classifier used to detect jailbreak attempts and filter malicious prompts in LLM applications.

What is the best way to deploy a jailbreak detection model for LLM inputs?

The best way to deploy a jailbreak detection model is via HuggingFace or batch processing. This approach scans user inputs using an 86M parameter classifier, achieving high true positive rates and low false positive rates for robust LLM security.