ai-guardrails

ai-guardrails is a skill for Claude Code, Codex from VoDaiLocz/kilo-kit-mcp. It costs 58 tokens per session (1,068 once invoked), scanned A, original, Apache-2.0.

A security guide for autonomous AI agents that read untrusted content and use tools. It covers threats such as prompt injection, data theft, unsafe tool use, and endless action loops.

In plain words
What is it for?
Use it when designing safeguards for live agents, including checks around prompts, external data, tools, sandboxing, and repeated actions.
Why use it?
It helps reduce the risk that an agent follows malicious instructions, exposes sensitive data, or takes unsafe actions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing safeguards for live agents, including checks around prompts, external data, tools, sandboxing, and repeated actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vodailocz/kilo-kit-mcp/ai-guardrails
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add VoDaiLocz/kilo-kit-mcp --skill ai-guardrails
Clone the repo
git clone --depth 1 https://github.com/VoDaiLocz/kilo-kit-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-guardrails

README.md
[![agentmods](https://agentmods.dev/badge/skills/vodailocz/kilo-kit-mcp/ai-guardrails/github.svg)](https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/ai-guardrails)
Your own site
<a href="https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/ai-guardrails"><img src="https://agentmods.dev/badge/skills/vodailocz/kilo-kit-mcp/ai-guardrails/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-guardrails

Your own site · 80×15
<a href="https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/ai-guardrails"><img src="https://agentmods.dev/badge/skills/vodailocz/kilo-kit-mcp/ai-guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01068
Opus 5.5 $0.00023 $0.00427
Sonnet 5.5 $0.00012 $0.00214
Haiku 4.5 $0.00006 $0.00107

Measured 2mo ago against content hash 36483a8c5b5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-guardrails scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/security/ai-guardrails/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Guardrails & Defense-in-Depth

Overview

The ai-guardrails skill provides a comprehensive framework for securing autonomous LLM agents. As agents interact with untrusted external data sources and perform actions on behalf of users, the attack surface expands significantly. This skill focuses on implementing multi-layered defenses to ensure agent safety, reliability, and integrity in live environments.

Threat Model

Autonomous agents face unique security challenges that require a proactive defense strategy:

  1. Direct Prompt Injection (DPI): Malicious input explicitly attempting to hijack the agent's core instructions.
  2. Indirect Prompt Injection (IPI): Injected instructions hidden in retrieved web pages, emails, or files that the agent processes.
  3. Prompt Leaking: Attempts to extract system instructions, internal reasoning paths, or proprietary data.
  4. Data Exfiltration: Unauthorized access and transfer of PII or sensitive internal data to external endpoints.
  5. SSRF (Server-Side Request Forgery) via Tool Use: Leveraging agent-enabled tools to probe internal networks or access forbidden resources.
  6. Agent Loop Exploitation: Crafting inputs that force the agent into infinite loops or resource-exhaustion scenarios.
  7. Tool Abuse: Circumventing intended tool usage patterns to execute malicious commands.

Core Defenses

Dual-LLM & Context Boundary Isolation

  • Pattern: Isolate instructions from data.
  • Implementation: Separate the Instruction Stream (system prompts, task logic) from the Content Stream (retrieved data).
  • Mechanism: Use a secondary, smaller "Sanitizer LLM" to filter untrusted content before it reaches the main reasoning engine.

Indirect Prompt Injection (IPI) Defenses

  • Detection: Utilize structured markup (e.g., XML tags like <untrusted_content>) to wrap retrieved data.
  • Neutralization: Instruct the agent to strictly ignore any instructions contained within tagged content blocks.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 69 lines · 58 tokens per session scan A 36483a8c5b5e

Subscribe to this mod's changes

ai-guardrails is a skill published in the GitHub repository VoDaiLocz/kilo-kit-mcp (28 stars, last pushed 15d ago), licensed Apache-2.0. It adds 58 tokens to every session and 1,068 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

ai-guardrails compared with skills from other repositories

ai-guardrails next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-guardrailsVoDaiLocz/kilo-kit-mcpSkill2815d agoApache-2.0A58Claude Code, Codex
llm-structured-outputhybridlabor-api/bdb-dev-optimized-agent-skillsSkill910d agoApache-2.0A42Claude Code, Codex
drizzle-orm-experthybridlabor-api/bdb-dev-optimized-agent-skillsSkill910d agoApache-2.0A41Claude Code, Codex
landing-page-generatorhybridlabor-api/bdb-dev-optimized-agent-skillsSkill910d agoApache-2.0A50Claude Code, Codex
tdmcp-pipelinehybridlabor-api/bdb-dev-optimized-agent-skillsSkill910d agoApache-2.0A128Claude Code, Codex
memb-skillhybridlabor-api/bdb-dev-optimized-agent-skillsSkill910d agoApache-2.0A36Claude Code, Codex
startcycle-graph-userhybridlabor-api/bdb-dev-optimized-agent-skillsSkill910d agoApache-2.0A102Claude Code, Codex