llamaguard

Classify LLM inputs and outputs into six safety categories.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/ricable/mcai --skill llamaguard-ricable
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llamaguard
Source: https://github.com/ricable/mcai/tree/main/.agents/skills/llamaguard
Command: npx skills add https://github.com/ricable/mcai --skill llamaguard-ricable

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LlamaGuard helps you catch unsafe user prompts and risky model outputs before they reach production, reducing exposure to harmful, disallowed, or policy-violating content.

Core Features & Use Cases

  • Classifies conversations into safe or unsafe outcomes across six safety categories.
  • Supports both input filtering and output filtering for chatbots, assistants, and API-backed LLM applications.
  • Works with common deployment paths such as Transformers, vLLM, FastAPI, Sagemaker, and NeMo Guardrails.
  • Use it to block requests for weapons, self-harm guidance, or other high-risk content while keeping normal conversations flowing.

Quick Start

Use the llamaguard skill to evaluate a chat message and decide whether it should be allowed, blocked, or escalated.

Frequently Asked Questions about llamaguard

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

FAQPage Schema
How do I block unsafe LLM inputs and outputs in a production chatbot?

Content moderation guardrails block unsafe LLM inputs and outputs by classifying chat messages across six safety categories, allowing you to allow, block, or escalate risky conversations before they reach production.

What is LLM safety filtering for high-risk content like self-harm or weapons?

LLM safety filtering is the process of screening chatbot conversations to detect policy-violating content. It classifies messages into safe or unsafe outcomes to prevent high-risk topics like self-harm guidance from reaching users.

Does LlamaGuard content moderation work with vLLM and Sagemaker deployments?

Yes, this content moderation approach works with common deployment paths including vLLM, Sagemaker, Transformers, FastAPI, and NeMo Guardrails, ensuring deterministic safety screening across different API-backed LLM applications.

How do I apply input and output filtering to an API-backed LLM assistant?

You apply input and output filtering by evaluating both user prompts and model responses against six safety categories, blocking requests for harmful content while allowing normal conversations to flow through your API-backed LLM assistant.

Can I use NeMo Guardrails for deterministic LLM moderation behavior?

Yes, you can use NeMo Guardrails to enforce deterministic moderation behavior. This compatibility ensures your LLM application applies consistent safety screening rules across all processed chat messages.

What are the limitations of using six-category safety detection for chatbot moderation?

Six-category safety detection focuses strictly on predefined unsafe outcomes like weapons or self-harm. It does not catch content outside these specific categories, meaning normal conversations flow through but nuanced policy violations might be missed.