nemo-guardrails

Implements runtime safety for LLM apps using NVIDIA NeMo Guardrails.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill nemo-guardrails-tianhao909
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nemo-guardrails
Source: https://github.com/tianhao909/AI-Research-SKILLs-cn/tree/main/07-safety-alignment/nemo-guardrails
Command: npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill nemo-guardrails-tianhao909

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nemoguardrails, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust framework for implementing runtime safety and security measures in Large Language Model (LLM) applications, preventing harmful outputs and misuse.

Core Features & Use Cases

  • Jailbreak Detection: Prevents prompt injection attacks and unauthorized instruction bypassing.
  • Input/Output Validation: Ensures user inputs and LLM outputs adhere to defined safety policies.
  • Fact-Checking & Hallucination Detection: Verifies factual accuracy and mitigates the generation of false information.
  • PII Filtering: Detects and masks Personally Identifiable Information to ensure data privacy.
  • Toxicity Detection: Identifies and blocks harmful or offensive content.
  • Use Case: Protect a customer-facing chatbot from generating inappropriate responses, revealing sensitive data, or being manipulated into performing unintended actions.

Quick Start

Install the nemoguardrails library by running 'pip install nemoguardrails'.

Frequently Asked Questions about nemo-guardrails

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

FAQPage Schema
How do I prevent prompt injection attacks in my LLM application?

You can prevent prompt injection attacks in your LLM application by implementing jailbreak detection and input validation using Colang 2.0 programmable rails, which block unauthorized instruction bypassing at runtime.

What is the best way to detect and filter PII from LLM outputs?

The best way to detect and filter PII from LLM outputs is to use a guardrails framework that integrates Presidio, allowing you to detect and mask Personally Identifiable Information to ensure data privacy.

How do I set up runtime hallucination detection for customer-facing chatbots?

You set up runtime hallucination detection for customer-facing chatbots by installing the nemoguardrails library and configuring fact-checking rails to verify factual accuracy and mitigate false information generation.

Does this guardrails framework work with LlamaGuard for toxicity detection?

Yes, this guardrails framework works with LlamaGuard for toxicity detection. It integrates external tools like Presidio and LlamaGuard alongside Colang 2.0 DSL to identify and block harmful or offensive content.

Can I enforce custom safety policies for LLM input and output validation?

Yes, you can enforce custom safety policies for LLM input and output validation. The framework leverages Colang 2.0 DSL for programmable rails, ensuring user inputs and LLM outputs adhere to your defined security rules.

What are the limitations of using Colang 2.0 for LLM security?

A limitation of using Colang 2.0 for LLM security is the requirement to learn its specific DSL syntax for defining programmable rails, and you must install the nemoguardrails Python dependency before implementation.