Skip to content
Back to skills

Llm Guardrails

ASecurity

Enforce input and output safety checks around LLM calls using schemas, PII scrubbing, policy checks, and graceful fallbacks

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsrustgorailssecurity

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill llm-guardrails --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llm Guardrails?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Llm Guardrails
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-llm-guardrails/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-llm-guardrails)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Enforce input and output safety checks around LLM calls using schemas, PII scrubbing, policy checks, and graceful fallbacks
profile: standard
tags: ai, llm, security, guardrails
---

# LLM guardrails

Use when filtering untrusted inputs, validating model responses, or enforcing safety/policy constraints in production AI apps.

## Defense layers
- Treat guardrails as fast, deterministic checks before and after model calls: length/token caps, PII/secret redaction, schema validation, and domain blocklists/classifiers.
- Run cheap deterministic checks (regex/length/JSON schema) synchronously before costly LLM-judge classifiers, and parallelize independent input checks to protect latency.
- Enforce tool/action authorization in application code based on user session—never let an LLM response trigger privileged writes directly without RBAC checks.

## Graceful failures
- Define safe, non-leaky fallback responses when a guardrail trips, logging trigger category and prompt version without storing raw sensitive inputs.
- Monitor false-positive and false-negative trigger rates continuously against curated edge-case evaluation sets.

## Verify
Run adversarial prompt tests, malformed output tests, and benign edge cases verifying latency overhead stays within budget.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.