input-output-guardrails

Enforce input and output guardrails on AI interactions.

3|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-ai-red-teaming --skill input-output-guardrails
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: input-output-guardrails
Source: https://github.com/pluginagentmarketplace/custom-plugin-ai-red-teaming/tree/main/skills/input-output-guardrails
Command: npx skills add https://github.com/pluginagentmarketplace/custom-plugin-ai-red-teaming --skill input-output-guardrails

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill provides multi-layer safety to filter unsafe inputs and harmful outputs, reducing risk and ensuring policy compliance across AI interactions.

Core Features & Use Cases

  • Input guardrails: detect and block prompt injections, enforce length limits, and redact PII in user prompts.
  • Output guardrails: filter toxicity, mask sensitive data, and redact system-prompt leaks while offering safe fallbacks.
  • Use Case: Deploy in chatbots, coding assistants, and content-generation workflows to keep conversations compliant and safe.

Quick Start

To start using this skill, enable the Input/Output Guardrails in your AI workflow, load the provided guardrails configuration from assets/guardrails-config.yaml, and connect the skill to process every user message and subsequent AI responses.

Frequently Asked Questions about input-output-guardrails

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

FAQPage Schema
How do I prevent prompt injection and redact PII in AI chatbot inputs?

To prevent prompt injection and redact PII in AI chatbot inputs, apply automated input guardrails that detect malicious prompt injections, enforce length limits, and mask sensitive personal data before the AI processes user messages.

What is the best way to filter toxic content and system prompt leakage in AI outputs?

Filtering toxic content and system prompt leakage in AI outputs requires output guardrails that block toxic responses, apply blocklists, redact leaked system prompts, and provide structured fallbacks to ensure safe interactions.

Can I enforce rate limiting and logging for AI content generation workflows?

Yes, you can enforce rate limiting and structured logging for AI content generation workflows by integrating a multi-layer guardrails configuration that processes every user message and logs safe fallbacks for subsequent AI responses.

Does this input and output filtering work with coding assistants?

Yes, input and output filtering works with coding assistants, chatbots, and content-generation workflows, applying safety policies across AI interactions to mask sensitive data and block unsafe responses.

How do I load guardrails configuration to start filtering unsafe AI responses?

To load guardrails configuration and start filtering unsafe AI responses, enable the guardrails in your AI workflow and load the provided YAML configuration file from the assets directory to process user messages.