add-llm-guardrails

Add input and output validation, PII detection, and toxicity checks to LLM applications.

29|8|Updated Jul 5, 2026
One-click install
npx skills add https://github.com/ContextJet-ai/awesome-llm-observability --skill add-llm-guardrails
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-llm-guardrails
Source: https://github.com/ContextJet-ai/awesome-llm-observability/tree/main/skills/add-llm-guardrails
Command: npx skills add https://github.com/ContextJet-ai/awesome-llm-observability --skill add-llm-guardrails

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires guardrails-ai, llm-guard, nvidia-guardrails, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive safety and security guardrails for LLM/agent applications, preventing prompt injection, PII leakage, and toxic outputs.

Core Features & Use Cases

  • Input Guardrails: Detects and prevents prompt injection, PII detection, and off-topic requests before they reach the model.
  • Output Guardrails: Validates structured output, checks for toxicity, groundedness, and sensitive data egress.
  • Implementation: Integrates with popular guardrail libraries and can be wrapped around model calls.
  • Use Case: Use this Skill to enhance the security and reliability of your LLM/agent applications, especially in regulated or enterprise environments.

Quick Start

To add guardrails to your LLM app, use the 'add-llm-guardrails' skill with the command: "apply guardrails to my-app".

Frequently Asked Questions about add-llm-guardrails

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

FAQPage Schema
How do I add LLM guardrails to prevent prompt injection and PII leakage?

To add LLM guardrails, you wrap validation checks around model calls to intercept prompt injection, detect PII, and block toxic outputs before or after processing. Input guardrails screen requests before reaching the model, while output guardrails validate structured responses and prevent sensitive data egress.

What is the best way to validate structured LLM outputs for toxicity and sensitive data?

The best way to validate structured LLM outputs is to apply output guardrails that check for toxicity, groundedness, and sensitive data egress after the model generates a response.

Can I integrate guardrails-ai and nvidia-guardrails with my existing agent applications?

Yes, you can integrate guardrails-ai and nvidia-guardrails with existing agent applications by wrapping the guardrail libraries around your current model calls to enforce safety. This approach requires implementing validation and error handling capabilities to manage intercepted requests.

Do I need input and output validation for LLM apps in regulated enterprise environments?

Yes, you need input and output validation for LLM apps in regulated enterprise environments to ensure regulatory compliance, prevent PII leakage, and block toxic or off-topic requests.

How do LLM input guardrails detect off-topic requests before they reach the model?

LLM input guardrails detect off-topic requests by validating the prompt against predefined safety criteria, stopping prompt injection, PII detection, and irrelevant queries before processing.

What are the limitations of using llm-guard for output validation in agent apps?

Limitations of using llm-guard include the need to implement custom validation and error handling capabilities to manage rejected outputs, ensuring groundedness and toxicity checks function correctly within your specific agent architecture.