nemo-guardrails

Implement runtime safety guardrails for LLM applications using NeMo Guardrails and Colang 2.0 DSL.

2|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/zhuangbiaowei/smart_bot --skill nemo-guardrails-zhuangbiaowei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nemo-guardrails
Source: https://github.com/zhuangbiaowei/smart_bot/tree/main/skills/nemo-guardrails
Command: npx skills add https://github.com/zhuangbiaowei/smart_bot --skill nemo-guardrails-zhuangbiaowei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust framework to ensure the safety, reliability, and ethical behavior of Large Language Model (LLM) applications by implementing programmable runtime guardrails.

Core Features & Use Cases

  • Runtime Safety: Detects and prevents harmful outputs, prompt injections, and PII leaks.
  • Programmable Rails: Uses Colang 2.0 DSL to define custom safety rules and workflows.
  • Use Case: Protect your customer-facing chatbot from generating toxic content, revealing sensitive information, or responding to jailbreak attempts, ensuring a secure and trustworthy user experience.

Quick Start

Install the nemoguardrails library using pip.

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 and jailbreaks in LLM applications?

Runtime safety guardrails prevent prompt injection by validating LLM inputs and outputs. Programmable rails detect jailbreak attempts and toxic content, ensuring your application only generates secure and trustworthy responses.

How do I filter PII and detect hallucinations in chatbot outputs?

PII filtering and hallucination detection are handled by runtime guardrails that validate LLM outputs. You can enforce fact-checking and mask sensitive information programmatically before responses reach the user.

Can I define custom LLM safety policies using Colang?

Yes, you can define custom LLM safety policies using the Colang 2.0 DSL. This domain-specific language allows you to program specific guardrails, workflows, and input validation rules for your application's security needs.

Does runtime LLM security work efficiently on T4 GPUs for production?

Runtime LLM security can run efficiently on T4 GPUs for production environments. The guardrails framework processes jailbreak detection and toxicity checks with optimized performance suitable for customer-facing applications.

What is the best way to add programmable guardrails to an existing LLM app?

The best way to add programmable guardrails is using a framework like NeMo Guardrails. It provides runtime safety mechanisms for jailbreak detection and input validation, which you can install via pip and configure using Colang.

Why do I need runtime security instead of just fine-tuning the model?

Runtime security provides an additional layer of protection by enforcing programmable guardrails that fine-tuning cannot guarantee. It actively detects prompt injections and filters PII in real-time, preventing harmful outputs dynamically.