guardrails-safety-filter-builder

Define a modular safety pipeline that detects unsafe prompts, redacts PII, and blocks policy-violating requests.

5|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/patricio0312rev/skillset --skill guardrails-safety-filter-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guardrails-safety-filter-builder
Source: https://github.com/patricio0312rev/skillset/tree/main/templates/ai-engineering/guardrails-safety-filter-builder
Command: npx skills add https://github.com/patricio0312rev/skillset --skill guardrails-safety-filter-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables teams to implement robust safety filters for LLMs, including PII redaction, policy-driven constraints, prompt-injection detection, and safe refusal templates to reduce risk and protect user data.

Core Features & Use Cases

  • Input filtering to block malicious prompts and reduce attack surface.
  • Output redaction to mask sensitive information in responses.
  • Policy constraints to enforce allowed content and provide safe refusals.
  • PII detection and redaction to protect personal data in user interactions.
  • Prompt-injection detection to identify and block attempts to manipulate system prompts or dynamics.

Quick Start

Configure the guardrails builder in your ML pipeline to automatically apply safety filters during request handling.

Frequently Asked Questions about guardrails-safety-filter-builder

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

FAQPage Schema
How do I implement PII redaction and prompt-injection detection in my LLM application?

To implement PII redaction and prompt-injection detection, configure a modular safety pipeline that filters malicious inputs and masks sensitive information in LLM responses. This approach enforces policy constraints and provides safe refusal templates to protect user data.

What is the best way to enforce content moderation policies across an API gateway for chatbots?

The best way to enforce content moderation for chatbots is to apply a modular safety pipeline at the API gateway. This pipeline detects and mitigates unsafe prompts, blocks policy-violating requests, and ensures strict refusal handling across diverse domains.

Can I use a modular safety pipeline to block malicious prompts and reduce the attack surface of my AI assistant?

Yes, you can use a modular safety pipeline to block malicious prompts and reduce your AI assistant's attack surface. Input filtering identifies and blocks attempts to manipulate system prompts, while extensible rules and testing hooks allow for continuous security adjustments.

Does this guardrails approach provide safe refusal templates for policy-violating requests?

Yes, this guardrails approach provides safe refusal templates for policy-violating requests. Policy constraints enforce allowed content and automatically trigger safe refusals, ensuring the LLM application mitigates risk while maintaining strict content moderation.

How do I set up output redaction to mask sensitive information in LLM responses?

To set up output redaction for LLM responses, integrate the guardrails builder into your ML pipeline during request handling. This automatically masks sensitive information in outputs, detects PII in user interactions, and enforces privacy protection across chatbots and assistants.

Why does my LLM chatbot need extensible rules and testing hooks for content moderation?

Your LLM chatbot needs extensible rules and testing hooks for content moderation to adapt to evolving attack vectors like prompt-injection. Extensible rules allow custom policy enforcement, while testing hooks validate that PII redaction and input filtering function correctly across diverse domains.