kalarislabs/research-agent-skills/nemo-guardrails
Claude Code and agent skill by kalarislabs/research-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Adds runtime safety rails to LLM applications with NVIDIA NeMo Guardrails, configured through Colang 2.0 flows. Covers jailbreak and prompt-injection detection, self-check input/output validation, retrieval-based fact-checking, hallucination detection, PII filtering via Presidio, toxicity detection via ActiveFence, and LlamaGuard integration. Use when adding programmable safety rules to a production LLM app, blocking jailbreaks or prompt injection, filtering PII from model inputs and outputs, verifying generated claims against retrieved sources, or tuning false positives and latency of guardrail checks. For standalone moderation only, use LlamaGuard or the OpenAI Moderation API instead.
Install
npx vskill@latest install kalarislabs/research-agent-skills/nemo-guardrailsSKILL.md
NeMo Guardrails - Programmable Safety for LLMs
Quick start
NeMo Guardrails adds programmable safety rails to LLM applications at runtime.
Installation:
Basic example (input validation):
Common workflows
Workflow 1: Jailbreak detection
Detect prompt injection attempts:
Workflow 2: Self-check input/output
Validate both input and output:
Workflow 3: Fact-checking with retrieval
Verify factual claims:
Workflow 4: PII detection with Presidio
Filter sensitive information:
Workflow 5: LlamaGuard integration
Use Meta's moderation model:
When to use vs alternatives
Use NeMo Guardrails when:
- Need runtime safety checks
- Want programmable safety rules
- Need multiple safety mechanisms (jailbreak, hallucination, PII)
- Building production LLM applications
- Need low-latency filtering (runs on T4)
Safety mechanisms:
- Jailbreak detection: Pattern matching + LLM
- Self-check I/O: LLM-based validation
- Fact-checking: Retrieval + verification
- Hallucination detection: Consistency checking
- PII filtering: Presidio integration
- Toxicity detection: ActiveFence integration
Use alternatives instead:
- LlamaGuard: Standalone moderation model
- OpenAI Moderation API: Simple API-based filtering
- Perspective API: Google's toxicity detection
- Constitutional AI: Training-time safety
Common issues
Issue: False positives blocking valid queries
Adjust threshold:
Issue: High latency from multiple checks
Parallelize checks:
Issue: Hallucination detection misses errors
Use stronger verification:
Advanced topics
Colang 2.0 DSL: See references/colang-guide.md for flow syntax, actions, variables, and advanced patterns.
Integration guide: See references/integrations.md for LlamaGuard, Presidio, ActiveFence, and custom models.
Performance optimization: See references/performance.md for latency reduction, caching, and batching strategies.
Hardware requirements
- GPU: Optional (CPU works, GPU faster)
- Recommended: NVIDIA T4 or better
- VRAM: 4-8GB (for LlamaGuard integration)
- CPU: 4+ cores
- RAM: 8GB minimum
Latency:
- Pattern matching: <1ms
- LLM-based checks: 50-200ms
- LlamaGuard: 100-300ms (T4)
- Total overhead: 100-500ms typical
Resources
- Docs: https://docs.nvidia.com/nemo/guardrails/
- GitHub: https://github.com/NVIDIA/NeMo-Guardrails ⭐ 4,300+
- Examples: https://github.com/NVIDIA/NeMo-Guardrails/tree/main/examples
- Version: v0.9.0+ (v0.12.0 expected)
- Production: NVIDIA enterprise deployments
Agent operating procedure
- Check the environment. Confirm the model, checkpoint, benchmark version and evaluation harness version.
- Pin down the inputs. Confirm formats, identifiers and parameters from the data or the user. Ask rather than guess any value that changes the result.
- Run a small version first. Evaluate on a small subset to verify prompts, parsing and scoring.
- Execute the full task using the instructions and references above.
- Validate the result. Use the benchmark's official splits and metrics; check for contamination; report variance across seeds or prompts.
- Report. State what was run (versions, commands, parameters), what was checked, and what is still uncertain.
| If this happens | Do this | |
|---|---|---|
| Scores differ from published numbers | Check prompt format, few-shot settings and harness version before concluding. | |
| A function, flag or endpoint in these instructions is missing in the installed version | Check the installed version's own documentation (help(), --help, official docs), adapt, and tell the user. Never invent an API. | |
| A required input, identifier or parameter is ambiguous | Ask the user, or state the assumption explicitly before running. |
Integrity rules
- Never fabricate results, parameters, identifiers, citations or statistics. If something cannot be run or verified, say so plainly.
- Report evaluation settings in full; never cherry-pick prompts, seeds or subsets.
- Treat version-specific details here as possibly outdated: confirm them against the official documentation for the installed version.
- Ask before actions that cost money, consume shared GPUs or cloud quota, touch personal or patient data, or cannot be undone.
Related skills
prompt-guard: Classifies text with Meta's Prompt Guard, an 86M-parameter model loaded from HuggingFace, into BENIGN, INJECTION or JAILBREAK labels to det…llamaguard: Classifies LLM prompts and responses as safe or unsafe using Meta's LlamaGuard (7B v1, 8B v2 and v3) across six categories: violence and ha…langsmith-observability: LLM observability platform for tracing, evaluation, and monitoring.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/nemo-guardrails/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kalarislabs/research-agent-skills/nemo-guardrails)