guardrails

guardrails is a skill for Claude Code, Codex from irahardianto/awesome-agv. It costs 39 tokens per session (749 once invoked), scanned A, original, MIT.

A pair of checklists for coding agents: one before writing code and one after implementation but before testing.

In plain words
What is it for?
Use it to review the project setup before coding and inspect completed changes for overlooked requirements or risks.
Why use it?
It helps catch missed project rules, existing patterns, requirements, design boundaries, and test plans early.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to review the project setup before coding and inspect completed changes for overlooked requirements or risks.

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

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 guardrails

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/irahardianto/awesome-agv/guardrails"><img src="https://agentmods.dev/badge/skills/irahardianto/awesome-agv/guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 749 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.00039 $0.00749
Opus 5.5 $0.00016 $0.00300
Sonnet 5.5 $0.00008 $0.00150
Haiku 4.5 $0.00004 $0.00075

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

Security

Grade A, and why

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 3mo 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.

.agents/skills/guardrails/SKILL.md · 87 lines

How it starts

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

Agent Guardrails Skill

Purpose

Structured checklists that ensure the agent considers all applicable rules before and after writing code. Catches issues that would otherwise only surface during verification.

When to Invoke

  • Pre-Flight: At the start of Phase 2 (Implement), before writing any code
  • Self-Review: At the end of Phase 2 (Implement), after writing code but before Phase 3/4

Pre-Flight Checklist

Run through this checklist before writing any code:

  • Identified all applicable rules from .agents/rules/
  • Searched for existing patterns in codebase (Pattern Discovery Protocol from architectural-pattern.md)
  • Confirmed project structure alignment (project-structure.md)
  • Identified I/O boundaries that need abstraction
  • Determined test strategy (unit/integration/E2E)
  • Reviewed rule-priority.md for any potential conflicts
  • Checked for existing structured specs (PRD/SDD/TSD/BDD/Plan) and identified applicable contracts (CT-*) and requirements (REQ-*)

If any item cannot be checked, stop and resolve before proceeding.


Post-Implementation Self-Review

Run through this checklist after writing code, before verification:

Security

  • No hardcoded secrets or configuration values
  • All user input validated at system boundaries
  • Parameterized queries (no string concatenation for SQL)

Testability

  • All I/O operations behind interfaces/abstractions
  • Business logic is pure (no side effects in calculations)
  • Dependencies injected, not hardcoded

Observability

  • All public operation entry points logged (start/success/failure)
  • Structured logging with correlation IDs
  • Appropriate log levels (not everything is INFO)

Error Handling

For universal error handling principles, see .agents/rules/error-handling-principles.md. Below: language-specific patterns only.

  • Error paths handled explicitly (no empty catch blocks)
  • Errors provide context (wrapped with additional info)
  • Resources cleaned up in error paths (defer/finally)

Read the full file on GitHub · 87 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. 3mo ago First seen · 87 lines · 39 tokens per session scan A abab85a19aab

Subscribe to this mod's changes

guardrails is a skill published in the GitHub repository irahardianto/awesome-agv (163 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 749 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-08-30.

Related

guardrails compared with skills from other repositories

guardrails next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
guardrailsirahardianto/awesome-agvSkill1631mo agoMITA39Claude Code, Codex
android-finance-specbrycegao/android-finance-specSkill45mo agoMITA48Codex
om-system-extensionopen-mercato/open-mercatoSkill2.0ktodayMITA73Claude Code, Codex
om-build-workflowopen-mercato/open-mercatoSkill2.0ktodayMITA63Claude Code, Codex
om-evolve-harnessopen-mercato/open-mercatoSkill2.0ktodayMITA66Claude Code, Codex
om-troubleshooteropen-mercato/open-mercatoSkill2.0ktodayMITA73Claude Code, Codex
brainstorm-featureHoangNguyen0403/agent-skills-standardSkill598todayMITA46Codex