# Filter prompts and model outputs for injection, secrets, toxicity, and policy risks with LLM Guard

> Screen prompts and responses with input and output scanners before an LLM interaction reaches production users or downstream systems.

- Skill: `agentskillexchange/filter-prompts-and-model-outputs-for-injection-secrets-toxic` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/filter-prompts-and-model-outputs-for-injection-secrets-toxic`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/filter-prompts-and-model-outputs-for-injection-secrets-toxic/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/filter-prompts-and-model-outputs-for-injection-secrets-toxic

---


# Filter prompts and model outputs for injection, secrets, toxicity, and policy risks with LLM Guard

Screen prompts and responses with input and output scanners before an LLM interaction reaches production users or downstream systems.

## Prerequisites

Python 3.9+, application or agent code that can wrap LLM input and output handling

## Installation

Use the upstream install or setup path that matches your environment:
- pip install llm-guard

Requirements and caveats from upstream:
- [![PyPI - Python Version](https://img.shields.io/pypi/v/llm-guard)](https://pypi.org/project/llm-guard)
- Base functionality requires a limited number of libraries. As you explore more advanced features, necessary libraries
- Ensure you're using Python version 3.9 or higher. Confirm with: python --version.

Basic usage or getting-started notes:
- Begin your journey with LLM Guard by downloading the package:
- sh
- **Important Notes**:

- Source: https://github.com/protectai/llm-guard
- Extracted from upstream docs: https://raw.githubusercontent.com/protectai/llm-guard/HEAD/README.md

## Documentation

- https://protectai.github.io/llm-guard/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/filter-prompts-and-model-outputs-for-injection-secrets-toxicity-and-policy-risks-with-llm-guard/)

