prompt-guard

Installation
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:

pip install transformers torch

Basic usage:

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)
Related skills

More from zechenzhangagi/ai-research-skills

Installs
68
GitHub Stars
8.3K
First Seen
Feb 10, 2026