bidirectional-filtering

Installation
SKILL.md

Bidirectional Filtering with Runtime Guardrails

Security Requirement

A guardrails component SHOULD be deployed between the users/applications (or API gateway) and the models. This component acts as a gateway or proxy that inspects and acts on data flowing in both directions.

This skill refers to runtime guardrails (a deployed component), not model-level safety training.

Input Direction (User/App → Model)

Incoming prompts are raw or "tainted" input. The guardrails component analyzes them and applies rule-based actions:

Action Description
Block Discard the prompt entirely, preventing it from reaching the model
Mask Redact or obfuscate sensitive data (PII, credentials) before forwarding
Modify Rewrite the prompt to remove dangerous patterns while preserving intent
Pass Allow the prompt through unchanged
Installs
2
GitHub Stars
52
First Seen
Jul 18, 2026
bidirectional-filtering — redhatproductsecurity/prodsec-skills