Skip to content
Back to skills

Ai Guardrails

BSecurity

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)

Pro shows the line behind each finding and how to fix it

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill ai-guardrails --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Guardrails?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai Guardrails
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-ai-guardrails/badge)](https://www.skillsdirectory.com/skills/vectora-os-ai-guardrails)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.