Agent skill · Security

prompt-guard

Meta's 86M prompt injection and jailbreak detector. Filters malicious prompts and third-party data for LLM apps. 99%+ TPR, <1% FPR. Fast (<2ms GPU). Multilingual (8 languages). Deploy with HuggingFace or batch processing for RAG security.

Orchestra-Researchgithub.com/Orchestra-ResearchGitHub ↗
claude-codecodexMIT
Install
npx skills add Orchestra-Research/AI-Research-SKILLs --skill prompt-guard --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 9 KB
Bundled scripts: none
Version: 1.0.0
Declared author: Orchestra Research
Requires: [transformers, torch]
Path: 07-safety-alignment/prompt-guard/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 11,391
Language: TeX
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Prompt Guard - Prompt Injection & Jailbreak Detection Prompt Guard is an 86M parameter classifier that detects prompt injections and jailbreak attempts in LLM applications. ## Quick start **Installation**: ```bash pip install transformers torch ``` **Basic usage**: ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification import torch from torch.nn.functional import softmax model_id = "meta-llama/Prompt-Guard-86M" tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForSequenceClassification.from_pretrained(model_id) model.eval() def get_jailbreak_score(text): """Check user input for jailbreak attempts.""" inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512) with torch.no_grad(): logits = model(**inputs).logits probs = softmax(logits, dim=-1) return probs[0, 2].item() # Jailbreak probability # Check prompt score = get_jailbreak_score("Ignore previous instructions") if score > 0.5: print("⚠️ Jailbreak attempt detected!") ``` **Classification labels**: - **BENIGN** (label 0): Normal content - **INJECTION** (label 1): Embedded instructions in data - **JAILBREAK** (label 2): Direct override attempts ## Common workfl

What's inside
Steps it walks through
  1. Quick start
  2. Common workflows
  3. Workflow 1: User input filtering (jailbreak detection)
  4. Workflow 2: Third-party data filtering (injection detection)
  5. Workflow 3: Batch processing for RAG
  6. When to use vs alternatives
  7. Common issues
  8. Threshold recommendations
  9. Hardware requirements
  10. Resources
Commands it runs
pip install transformers torch
More from AI-Research-SKILLs
All skills →
About this skill
What does the prompt-guard skill do?

Meta's 86M prompt injection and jailbreak detector. Filters malicious prompts and third-party data for LLM apps. 99%+ TPR, <1% FPR. Fast (<2ms GPU). Multilingual (8 languages). Deploy with HuggingFace or batch processing for RAG security.

How do I install it?

Run `npx skills add Orchestra-Research/AI-Research-SKILLs --skill prompt-guard --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From Orchestra-Research/AI-Research-SKILLs, a repository with 11,391 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going