Individual skill
implementing-llm-guardrails-for-security
Implements input/output validation guardrails for LLM applications using NVIDIA NeMo Guardrails (Colang), custom Python validators for PII detection, and the Guardrails AI framework, intercepting user inputs (prompt injection, PII, off-topic queries) and model outputs (hallucinations, toxic content, schema compliance). Use when adding safety controls to an LLM app/chatbot/RAG pipeline or validating outputs conform to expected schemas.
skills/implementing-llm-guardrails-for-security/SKILL.md
Source commit 54a798831d2266a3ca61ce68a7acb80b81160d57
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 35,926
- Repository last updated
- Aug 31, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-agents Repository topic
- claude-code Repository topic
- cybersecurity Repository topic
- incident-response Repository topic
- mitre-attack Repository topic
- penetration-testing Repository topic
- red-team Repository topic
- security Repository topic
- cloud-security Repository topic
- malware-analysis Repository topic
- llm-guardrails Declared skill tag
- nemo-guardrails Declared skill tag
- input-validation Declared skill tag
- output-filtering Declared skill tag
- ai-safety Declared skill tag
- legal Derived category
- writing Derived category
- security Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
LICENSEasset · 11,255 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesSKILL.mdcore · 8,889 bytesreferences/api-reference.mddoc · 7,186 bytesscripts/agent.pyruns · 22,070 bytes
Read excerpt
# Implementing LLM Guardrails for Security
## When to Use
- Deploying a new LLM-powered application that processes user input and needs input/output safety controls
- Adding content policy enforcement to an existing chatbot or AI agent to comply with organizational policies
- Implementing PII detection and redaction in LLM pipelines handling sensitive customer data
- Building topic-restricted AI assistants that must refuse off-topic or disallowed queries
- Validating that LLM responses conform to expected schemas before they reach downstream systems or users
- Protecting RAG pipelines from indirect prompt injection in retrieved documents
**Do not use** as a replacement for proper authentication, authorization, and network security controls. Guardrails are a defense-in-depth layer, not a perimeter defense. Not suitable for real-time content moderation of user-to-user communication without LLM involvement.
## Prerequisites