guardrails

Configure content safety guardrails for AI Gateway endpoints.

13|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/truefoundry/tfy-agent-skills --skill guardrails-truefoundry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guardrails
Source: https://github.com/truefoundry/tfy-agent-skills/tree/main/skills/guardrails
Command: npx skills add https://github.com/truefoundry/tfy-agent-skills --skill guardrails-truefoundry

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you implement robust content safety and security measures for your AI applications, preventing harmful outputs and protecting sensitive data.

Core Features & Use Cases

  • Configure Guardrail Providers: Integrate various safety services (PII filtering, content moderation, prompt injection detection).
  • Define Guardrail Rules: Create policies that specify which guardrails apply to which models, users, or tools.
  • Use Case: Protect your customer-facing chatbot by enabling PII detection and content moderation on all user inputs and AI responses, ensuring compliance and a safe user experience.

Quick Start

Use the guardrails skill to create a new guardrail config group named 'my-safety-group' with PII and content moderation integrations.

Frequently Asked Questions about guardrails

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

FAQPage Schema
How do I configure content moderation guardrails for an AI Gateway?

To configure content moderation guardrails for an AI Gateway, you create a guardrail config group and define rules that apply safety services like PII filtering and prompt injection detection to specific models, users, or MCP tool integrations.

What is PII filtering and prompt injection detection in LLM security?

PII filtering and prompt injection detection in LLM security are safety mechanisms that scan user inputs and AI responses to remove sensitive personal data and block malicious prompts attempting to manipulate model behavior.

Can I apply custom guardrail rules to specific MCP tool integrations?

Yes, you can apply custom guardrail rules to specific MCP tool integrations by defining policies that specify exactly which guardrails apply to which models, users, or tools within your AI Gateway configuration.

Does this guardrails configuration support multiple safety providers at once?

Yes, the guardrails configuration supports multiple safety providers at once, allowing you to integrate various services like PII filtering, content moderation, and prompt injection detection simultaneously within a single config group.

Why do I need content safety guardrails for my customer-facing chatbot?

You need content safety guardrails for your customer-facing chatbot to prevent harmful outputs, protect sensitive user data from PII exposure, block prompt injection attacks, and ensure compliance with a safe user experience.