guardrails

Enforces safety and compliance for LLM prompts and responses via configurable input and output guards.

1|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Entelligentsia/skillforge --skill guardrails-entelligentsia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guardrails
Source: https://github.com/Entelligentsia/skillforge/tree/main/llm-patterns/skills/guardrails
Command: npx skills add https://github.com/Entelligentsia/skillforge --skill guardrails-entelligentsia

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guardrails protect LLM applications by validating and filtering inputs and outputs to prevent unsafe, non-compliant, or misleading results. They enforce policy conformance, guard against prompt injection, and reduce data exposure in real-world deployments.

Core Features & Use Cases

  • Input Guards: detect and block prompt injection patterns, enforce length limits, and constrain topic scope.
  • Output Guards: scan for PII, verify grounding against retrieved context, and enforce schema or structured output formats.
  • Guard Pipeline: compose cheap and expensive checks in a deterministic order to minimize latency and maximize safety.

Quick Start

Configure a guard pipeline in your LLM service to protect user interactions and downstream systems.

Frequently Asked Questions about guardrails

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

FAQPage Schema
How do I prevent prompt injection attacks in my LLM application?

You can prevent prompt injection by configuring an input guard pipeline that detects and blocks malicious injection patterns before they reach your LLM. This Skill applies deterministic safety checks to constrain topic scope and validate inputs.

How do I scan LLM outputs for PII and enforce structured formats?

Scanning LLM outputs for PII requires applying output guards that detect and filter sensitive data exposure. This Skill verifies grounding against retrieved context and enforces schema formats to ensure structured, compliant responses.

What is the best way to moderate content and enforce policy compliance in real-world LLM deployments?

The best way to moderate content and enforce compliance is applying a configurable guard pipeline to both inputs and outputs. This Skill composes cheap and expensive checks in a deterministic order to minimize latency while maximizing safety.

Can I compose multiple input and output guards to minimize latency during content moderation?

Yes, you can compose multiple input and output guards in a deterministic pipeline to minimize latency. This Skill allows you to order cheap and expensive checks sequentially to detect, modify, or block unsafe content efficiently.

Does this guardrail pipeline work without external dependencies or frameworks?

Yes, this guardrail pipeline works without external dependencies because it operates as a standalone implementation. You can configure the input and output guards directly within your LLM service to protect user interactions.

What limitations should I consider when configuring topic constraints for input guards?

When configuring topic constraints, consider that overly strict input guards may block legitimate user interactions. This Skill enforces topic scope deterministically, so you must carefully tune guard thresholds to balance safety with user experience.