AgentSkillsCN

Ai Guardrails

AI监管机制

SKILL.md

AI Guardrails

Input/output validation and safety for AI applications.

Quick Start

bash
npx ai-guardrails validate "Check this text"

What It Does

  • Detect PII (email, phone, SSN, credit cards)
  • Block prompt injection attempts
  • Filter harmful content
  • Validate LLM outputs

Usage

bash
# Validate text
npx ai-guardrails validate "text"

# Detect PII
npx ai-guardrails pii "Email: test@example.com"

# Check injection
npx ai-guardrails injection "Ignore previous instructions"

# Generate files
npx ai-guardrails init

Part of the LXGIC Dev Toolkit

One of 110+ free developer tools from LXGIC Studios.

License

MIT. Free forever.