AI safety guardrails — prompt injection (direct and indirect) defences, untrusted content handling, tool permission scoping and confirmations, output validation and filtering, data leakage prevention, jailbreak resistance testing, OWASP LLM Top 10. Use when AI features or agents handle untrusted input or take actions (guardrails, prompt injection, jailbreak, LLM security, tool safety).
5 stars
0 votes
0 copies
0 views
Added December 3, 2026
ai-agentsrustgorailstestingsecurity
Security analysis
B75/100
criticalContains 'ignore previous instructions' pattern — found in 91% of malicious skills (Snyk ToxicSkills)
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ai Guardrails?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-ai-guardrails)
---
name: ai-guardrails
description: AI safety guardrails — prompt injection (direct and indirect) defences, untrusted content handling, tool permission scoping and confirmations, output validation and filtering, data leakage prevention, jailbreak resistance testing, OWASP LLM Top 10. Use when AI features or agents handle untrusted input or take actions (guardrails, prompt injection, jailbreak, LLM security, tool safety).
metadata:
category: ai
---
# AI guardrails
## Purpose
Keep AI features and agents safe when inputs are hostile.
**Use when:** AI features with user content, retrieval, tools or actions.
**Not for:** general appsec.
## Inputs
- AI flow, tools, data sources.
## Outputs
- Guardrail design and adversarial tests.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "ai guardrails"` for prior decisions, patterns and anti-patterns.
- [AI feature review checklist](../../../checklists/ai-feature-review.md)
- [Agent safety policy](../../../policies/agent-safety.md)
## Steps
1. **Map.** Map untrusted inputs (user, documents, web, tool output) and capabilities (tools, data).
Done when trust map exists.
2. **Contain.** Least-privilege tools; confirmations for consequential actions; no secrets in context.
Done when injection cannot cause harmful actions.
3. **Validate.** Schema-validate outputs; filter sensitive data.
Done when outputs checked before use.
4. **Test.** Adversarial suite (injections in documents, tool outputs).
Done when suite in CI.
## Best practices
- Assume injection will succeed; limit what it can do.
- Separate data and instructions with delimiters and roles.
## Common mistakes
- Relying on "ignore previous instructions" filters.
- Giving the model write tools by default.
## Example
Email assistant: injected instruction in an email cannot send mail — sending requires user confirmation; 30 injection tests pass.
## Reusable prompt
```text
Apply the AI guardrails skill (.agents/skills/ai-guardrails/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Map trust boundaries of the AI flow, contain capabilities, validate outputs and add an adversarial test suite.
Return: Guardrail design and adversarial tests..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```