Agent Guardrails

Agent Guardrails is a skill for Claude Code, Codex from niels-emmer/myace. It costs 28 tokens per session (1,125 once invoked), scanned C, original, MIT.

A safety policy for coding agents that lists protected targets, risky commands, checks for the potential impact of an action, and points where the agent must ask for confirmation.

In plain words
What is it for?
Use it before deploying, restarting services, changing infrastructure or network settings, applying database migrations, publishing packages, or deleting data.
Why use it?
It reduces accidental changes to production systems, networks, routing, migrations, published packages, or data. The policy makes the boundary between inspection and action explicit.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Good fit Use it before deploying, restarting services, changing infrastructure or network settings, applying database migrations, publishing packages, or deleting data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/niels-emmer/myace/agent-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 niels-emmer/myace --skill agent-guardrails
Clone the repo
git clone --depth 1 https://github.com/niels-emmer/myace

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 Agent Guardrails

README.md
[![agentmods](https://agentmods.dev/badge/skills/niels-emmer/myace/agent-guardrails/github.svg)](https://agentmods.dev/skills/niels-emmer/myace/agent-guardrails)
Your own site
<a href="https://agentmods.dev/skills/niels-emmer/myace/agent-guardrails"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/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 Agent Guardrails

Your own site · 80×15
<a href="https://agentmods.dev/skills/niels-emmer/myace/agent-guardrails"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/agent-guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,125 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00028 $0.01125
Opus 5.5 $0.00011 $0.00450
Sonnet 5.5 $0.00006 $0.00225
Haiku 4.5 $0.00003 $0.00112

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

Security

Grade C, and why

Agent Guardrails scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

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

- Recursive deletion (`rm -rf`) outside a scratch directory.
collections/additional/enterprise-ai-governance/skills/agent-guardrails/SKILL.md · 117 lines

How it starts

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

Purpose

Autonomous agents are useful precisely because they act. This skill makes the boundary of "acting safely" explicit: which targets are protected, which commands require a pause, what to check before a live action, and when to stop and ask. It is a policy an agent can follow without knowing any particular infrastructure.

When to use it

Before any command that could change shared state: deploying, restarting a service, applying infrastructure, running a migration, changing network or routing configuration, publishing a package, or deleting data.

Declared protected targets

Treat these as protected by default. Confirm before acting on any of them:

  • Production names — any namespace, host, container, database, bucket, or environment whose name contains prod or production as a whole word or name segment (for example prod-db, not producer).
  • Routing and ingress — reverse-proxy configuration, DNS records, TLS certificates, and anything that changes which service answers a public name.
  • Network membership — firewall rules, security groups, network policies, and the set of services attached to a shared network.
  • Data migrations — schema changes, backfills, and anything that rewrites or removes stored data.
  • Identity and access — IAM users, roles, policies, RBAC bindings, and service-account credentials.
  • Secret stores — reading, writing, rotating, or printing any secret, key, or credential.
  • Shared infrastructure — hosts or clusters that also run services other people or other teams depend on.
  • Publication — pushing to a protected branch, publishing a package, or making a repository public.

A project may add to this list; it must never silently remove from it.

Soft-deny commands

A soft deny is not a prohibition — it is a requirement to stop, state the blast radius, and get explicit confirmation. Treat at least these as soft-denied:

  • docker compose (or docker stack) against a file or project whose name includes prod.
  • kubectl apply, kubectl delete, or a rollout against a production context or namespace.
  • terraform apply or terraform destroy, and any equivalent IaC apply.
  • Database downgrades, destructive migrations, DROP, TRUNCATE, or a DELETE/UPDATE without a narrowing predicate.
  • git push --force or --force-with-lease to a shared branch.
  • Recursive deletion (rm -rf) outside a scratch directory.
  • Cloud provider delete, terminate, or purge operations.
  • Piping a remote script directly into a shell.
  • Package or image publication (npm publish, pip upload, registry push).
  • Firewall, DNS, or proxy-routing changes.
  • Editing IAM, RBAC, or secret-store contents.

Read the full file on GitHub · 117 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. yesterday Changed 35dc465e9052
  2. 7d ago First seen · 117 lines · 28 tokens per session scan C f57321b52d30

Subscribe to this mod's changes

Agent Guardrails is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 1,125 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-23.

Related

Agent Guardrails compared with skills from other repositories

Agent Guardrails next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Agent Guardrailsniels-emmer/myaceSkill12d agoMITC28Claude Code, Codex
idiomatic-goTypeFox/agent-skillsSkill51mo agoMITA137Claude Code
eclipse-license-checkTypeFox/agent-skillsSkill51mo agoMITA110Claude Code
go-documentationTypeFox/agent-skillsSkill51mo agoMITA98Claude Code
publish-vscode-extensionTypeFox/agent-skillsSkill51mo agoMITA107Claude Code
domainmodel-dslTypeFox/agent-skillsSkill51mo agoMITA68Claude Code
statemachine-dslTypeFox/agent-skillsSkill51mo agoMITA63Claude Code