prompt-guard

Detect prompt injections and jailbreak attempts in LLM applications.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/KappTech88/AI-RESEARCH-SKILLS-MCP --skill prompt-guard-kapptech88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-guard
Source: https://github.com/KappTech88/AI-RESEARCH-SKILLS-MCP/tree/main/skills/prompt-guard
Command: npx skills add https://github.com/KappTech88/AI-RESEARCH-SKILLS-MCP --skill prompt-guard-kapptech88

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prompt Guard provides a lightweight classifier to detect prompt injections and jailbreak attempts in LLM applications.

Core Features & Use Cases

  • Lightweight 86M parameter model suitable for CPU deployment
  • Multilingual jailbreak detection across 8 languages
  • Integrates into chatbots, API endpoints, and RAG pipelines
  • Returns scores for INJECTION and JAILBREAK classes to gate unsafe prompts or outputs

Quick Start

Run a prompt through Prompt Guard to obtain its jailbreak probability and safe/unsafe verdict.

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

Detect prompt injections and jailbreak attempts by running text through a classifier that returns probabilistic scores for both unsafe classes. This allows you to gate malicious prompts before they reach your LLM.

Can I deploy a jailbreak detection model on CPU for low latency chatbots?

Yes, you can deploy jailbreak detection on CPU using an 86M parameter compact model designed for low latency. This lightweight architecture suits chatbots and API endpoints without requiring dedicated GPU hardware.

Does multilingual prompt injection detection support languages other than English?

Multilingual prompt injection detection supports 8 languages, enabling you to identify jailbreak attempts and injections across diverse user bases in global LLM applications.

How do I integrate jailbreak detection into a RAG pipeline?

Integrate jailbreak detection into a RAG pipeline by passing user queries through the classifier to obtain safe or unsafe verdicts. This gates unsafe prompts before they trigger retrieval or generation.

What scores does a prompt injection classifier return to gate unsafe prompts?

A prompt injection classifier returns probabilistic scores for INJECTION and JAILBREAK classes. These scores provide the threshold values needed to gate unsafe prompts or filter generated outputs.

Do I need heavy GPU resources to run prompt safety detection for API endpoints?

No, you do not need heavy GPU resources because prompt safety detection runs on a lightweight 86M parameter model. It is optimized for on-device or CPU deployments with simple Python integration.