ai-coding-agent-guardrails

ai-coding-agent-guardrails is a skill for Claude Code from sickn33/agentic-awesome-skills. It costs 43 tokens per session (3,658 once invoked), scanned D, original, MIT.

A guide for setting boundaries around AI coding agents, including which files and commands they may access or change. It covers secret protection, isolated execution, review checkpoints, and audit records.

In plain words
What is it for?
Use it to configure restrictions for Claude Code, Cursor, Copilot, or Codex, protect secret files, limit permissions, require review, and control branches and dependencies.
Why use it?
It reduces the risk of an agent exposing credentials, making destructive changes, or modifying sensitive project settings without approval.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

Part of the agentic-awesome-skills plugin — 257 skills shipped together

Good fit Use it to configure restrictions for Claude Code, Cursor, Copilot, or Codex, protect secret files, limit permissions, require review, and control branches and dependencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sickn33/agentic-awesome-skills/ai-coding-agent-guardrails
About the project

AAS Core is a local control plane for coding agents that lets them search a large catalogue of skills, choose a stack, validate it, and create a reproducible plan. It is used to assemble and review agent workflows through its CLI, local MCP server, catalogue, plugins, and Workbench. The catalogue add-ons provide the skills, plugins, bundles, and workflows that AAS Core helps agents select and validate.

sickn33/agentic-awesome-skills · 48,503 stars · on GitHub · aaskills.tech

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 sickn33/agentic-awesome-skills --skill ai-coding-agent-guardrails
Clone the repo
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills

Made for: Claude Code.

Or install agentic-awesome-skills, the plugin that ships this one along with the rest of its 257 skills.

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-coding-agent-guardrails

README.md
[![agentmods](https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/ai-coding-agent-guardrails/github.svg)](https://agentmods.dev/skills/sickn33/agentic-awesome-skills/ai-coding-agent-guardrails)
Your own site
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/ai-coding-agent-guardrails"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/ai-coding-agent-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-coding-agent-guardrails

Your own site · 80×15
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/ai-coding-agent-guardrails"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/ai-coding-agent-guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,658 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00043 $0.03658
Opus 5.5 $0.00017 $0.01463
Sonnet 5.5 $0.00009 $0.00732
Haiku 4.5 $0.00004 $0.00366

Measured yesterday against content hash 73ded80952e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

ai-coding-agent-guardrails scanned grade D with 3 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 yesterday.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Linux-only administrator sketch for a disposable checkout; do not recursively change ownership/modes on a live developer repository. The script below grants named ACL entries but does not grant traversal on the repositor

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- NEVER execute `rm -rf`, `DROP TABLE`, `kubectl delete`, or `terraform destroy` commands

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- "curl"
Origin

Copies of this mod

2 near-identical copies found in the catalogue:

plugins/agentic-awesome-skills-claude/skills/ai-coding-agent-guardrails/SKILL.md · 429 lines

How it starts

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

AI Coding Agent Guardrails

Secure the use of AI coding agents across engineering teams. This skill covers permission boundaries, secret protection, sandbox isolation, code review gates, and audit trails for Claude Code, Cursor, Copilot, and Codex.


Permission Boundaries

CLAUDE.md Configuration

A CLAUDE.md supplies behavioral guidance, not an OS sandbox. Merge compatible rules into existing instructions without overwriting them; tool permissions and isolation enforce boundaries independently.

# CLAUDE.md

## Restrictions

- NEVER read or output contents of .env, .env.*, secrets.yaml, or any file matching *.pem, *.key
- NEVER execute `rm -rf`, `DROP TABLE`, `kubectl delete`, or `terraform destroy` commands
- NEVER push directly to main or master branches
- NEVER modify files in the infrastructure/, terraform/, or .github/workflows/ directories without explicit user approval
- NEVER install new dependencies without listing them first for review
- NEVER access or display API keys, tokens, passwords, or connection strings

## Allowed Operations

- Read and modify application source code in src/, lib/, and tests/
- Run test suites with `npm test`, `pytest`, `go test`
- Run linters with `eslint`, `ruff`, `golangci-lint`
- Create new branches with prefix `ai/` or `agent/`
- Create and modify files in docs/ directory

## Code Standards

- All new functions must include docstrings or JSDoc comments
- All new code must have corresponding unit tests
- Follow existing code style and patterns in the repository
- Maximum file length: 500 lines. Suggest splitting if exceeded.

Command Allowlists

For agents that execute shell commands, define an explicit allowlist:

# .agent-permissions.yaml — conceptual schema, not consumed automatically by these clients
agent_permissions:
  allowed_commands:
    - "npm test"
    - "npm run lint"
    - "npm run build"
    - "pytest"
    - "ruff check"
    - "go test ./..."
    - "git status"
    - "git diff"
    - "git log"
    - "git checkout -b"
    - "git add"
    - "git commit"
    - "ls"
    - "cat"
    - "head"
    - "tail"

  blocked_commands:
    - "rm -rf"
    - "curl"
    - "wget"
    - "ssh"
    - "scp"
    - "kubectl"
    - "terraform"
    - "aws"
    - "gcloud"
    - "az"
    - "docker push"
    - "npm publish"

  blocked_paths:
    - ".env*"
    - "**/*.pem"
    - "**/*.key"
    - "**/secrets/**"
    - "infrastructure/**"
    - ".github/workflows/**"

  allowed_paths:
    - "src/**"
    - "lib/**"
    - "tests/**"
    - "docs/**"
    - "package.json"
    - "pyproject.toml"

Read the full file on GitHub · 429 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday Changed · -14 lines scan C → D 73ded80952e4
  2. 1mo ago First seen · 443 lines · 43 tokens per session scan C 0de7f7a1bb34

Subscribe to this mod's changes

ai-coding-agent-guardrails is a skill published in the GitHub repository sickn33/agentic-awesome-skills (48,503 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 3,658 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-21.