llamaguard

Classify LLM chat messages into six safety categories for moderation.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Supporter09/Face_Anti_Spoofing_Biometric --skill llamaguard-supporter09
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llamaguard
Source: https://github.com/Supporter09/Face_Anti_Spoofing_Biometric/tree/main/.claude/skills/llamaguard
Command: npx skills add https://github.com/Supporter09/Face_Anti_Spoofing_Biometric --skill llamaguard-supporter09

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LlamaGuard helps teams automatically screen LLM prompts and responses for unsafe content so they can block harmful requests before generation and catch risky outputs before users see them.

Core Features & Use Cases

  • Prompt moderation: Classify user inputs into safe or unsafe with category labels for violence, sexual content, weapons, substances, self-harm, and criminal planning.
  • Output filtering: Review assistant responses in context and stop unsafe completions from reaching the user.
  • Production deployment: Use Transformers, vLLM, FastAPI, or NeMo Guardrails to build low-latency moderation services and integrated safety rails.

Quick Start

Use the llamaguard skill to inspect a chat conversation and return whether it is safe, unsafe, or needs category-based blocking.

Frequently Asked Questions about llamaguard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I moderate LLM inputs and outputs for unsafe content?

Moderating LLM inputs and outputs involves classifying chat messages for unsafe content across six categories including violence, sexual content, and self-harm. This allows you to block harmful prompts before generation and filter risky assistant responses before they reach users.

Can I use vLLM for low-latency content filtering in production?

Yes, you can use vLLM for low-latency content filtering in production. You can build moderation services and integrated safety rails using GPU-backed inference through Hugging Face Transformers or vLLM, alongside frameworks like FastAPI and NeMo Guardrails.

What is LLM safety labeling and when do I need it?

LLM safety labeling is the process of classifying chat messages into safe or unsafe categories such as violence, weapons, and substances. You need it to automatically screen LLM prompts and responses to prevent harmful content generation.

Does prompt moderation require a specific chat format for LLM inference?

Yes, prompt moderation requires LlamaGuard-compatible chat formatting to process conversations correctly. This formatting standard allows the model to accurately parse chat context and apply six-category safety labels during GPU-backed inference.

What is the best way to integrate guardrails for production assistants?

The best way to integrate guardrails for production assistants is by using NeMo Guardrails with vLLM serving. This combination enables low-latency moderation services that review assistant responses in context and stop unsafe completions from reaching users.

What safety categories are covered when filtering LLM responses?

Filtering LLM responses covers six safety categories: violence, sexual content, weapons, substances, self-harm, and criminal planning. This ensures comprehensive output filtering to catch risky completions before they are shown to users.