prompt-guard

Detect prompt injections and jailbreak attempts in LLM applications.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Clay-HHK/claude-config --skill prompt-guard-clay-hhk
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prompt-guard
Source: https://github.com/Clay-HHK/claude-config/tree/main/skills/AI-research-SKILLs/07-safety-alignment/prompt-guard
Command: npx skills add https://github.com/Clay-HHK/claude-config --skill prompt-guard-clay-hhk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prompt injection and jailbreak attempts threaten the safety of LLM applications; Prompt Guard detects and blocks malicious prompts and third-party data.

Core Features & Use Cases

  • Lightweight 86M-parameter classifier that detects prompt injections and jailbreak attempts.
  • Multilingual support across 8 languages; fast inference (<2ms on GPU).
  • Deployable with HuggingFace or batch processing for RAG security.
  • Filters prompts and third-party data to reduce risk in chatbots, assistants, and enterprise apps.

Quick Start

Install the required packages and run the detector on a user message to obtain a jailbreak risk score.

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?▼

To detect prompt injection and jailbreak attempts in LLM applications, you can use a lightweight 86M-parameter classifier that evaluates user inputs and API responses to identify malicious instructions.

Can I filter malicious prompts across multilingual deployments?▼

Yes, you can filter malicious prompts across multilingual deployments using a classifier that supports 8 languages and processes inputs in under 2ms on GPU.

How do I secure RAG pipelines against unsafe third-party data?▼

To secure RAG pipelines against unsafe third-party data, apply a content-filtering model to batch process retrieved documents and block prompt injections before they reach the LLM.

Does prompt injection detection work with HuggingFace deployments?▼

Prompt injection detection works seamlessly with HuggingFace deployments, allowing you to load the 86M-parameter model directly for fast inference and risk-scoring.

What is the best way to prevent jailbreaks in enterprise chatbots?▼

The best way to prevent jailbreaks in enterprise chatbots is to deploy a lightweight risk-scoring classifier that filters user prompts and blocks unsafe instructions before processing.

What are the limitations of using an 86M-parameter model for LLM security?▼

An 86M-parameter model for LLM security offers fast inference under 2ms on GPU but may lack the deep contextual understanding of larger models, requiring batch processing for complex RAG pipelines.