guardrails-skill: Instructions file for Claude Code

CLAUDE.md

guardrails-skill CLAUDE.md is an instructions file for Claude Code from adewale/guardrails-skill. It costs 996 tokens per session, scanned A, original, MIT.

A Claude Code skill that adds quality gates for coding agents. It uses lifecycle checks, reference guidance, and a reproduction-script template; the repository itself has no runnable application or test suite.

In plain words
What is it for?
Guiding agents through repository discovery, configuration checks, testing, diagnostic work, and reproducible bug reports.
Why use it?
It prevents an agent from moving forward until required project checks have passed and provides a consistent way to investigate problems.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is adewale/guardrails-skill's own configuration. It tells Claude Code how to work on guardrails-skill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything guardrails-skill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to adewale/guardrails-skill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/adewale/guardrails-skill/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/adewale/guardrails-skill

Made for: Claude Code.

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-skill CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/adewale/guardrails-skill/claude-md/github.svg)](https://agentmods.dev/instructions/adewale/guardrails-skill/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/adewale/guardrails-skill/claude-md"><img src="https://agentmods.dev/badge/instructions/adewale/guardrails-skill/claude-md/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-skill CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/adewale/guardrails-skill/claude-md"><img src="https://agentmods.dev/badge/instructions/adewale/guardrails-skill/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 996 This file is loaded in full into every session.
When invoked 996 The same file — it is already loaded in full.
Security scan A 0 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.00996 $0.00996
Opus 5.5 $0.00398 $0.00398
Sonnet 5.5 $0.00199 $0.00199
Haiku 4.5 $0.00100 $0.00100

Measured 18d ago against content hash 5edb8bd46c41, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

guardrails-skill CLAUDE.md 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 18d 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.

CLAUDE.md · 55 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Is

A Claude Code skill and plugin, not an application. There is no build step and no runtime dependencies. The shipped content is markdown plus one bash template that together define quality gates for coding agents.

The skill lives in skills/guardrails/. SKILL.md is the core artifact (line budget below). Everything else supports it:

  • skills/guardrails/references/tool-building.md — diagnostic tool/notation catalog with worked examples (loaded on demand by the circuit breaker)
  • skills/guardrails/references/language-defaults.md — tool selection lookup table by ecosystem (JS/TS, Python, Rust, Go, Java)
  • skills/guardrails/assets/notation-templates/reproduction-script.sh — bash scaffold for repro scripts

The repo is also a Claude Code plugin: .claude-plugin/plugin.json (its hooks field points at .claude-plugin/hooks/hooks.json) and .claude-plugin/marketplace.json.

Repo-only files (never installed):

  • package.json — install metadata for skill installers (skill entry, supported harnesses). No dependencies or scripts.
  • evals/ — shared Skill Eval Harness manifest (shared-benchmark.json), fixtures, ablation patches and oracles. See evals/shared-harness.md.
  • scripts/ — the CI checks below.

Checks (run these before committing; CI runs the same commands)

Check Command Workflow
Install boundary (no repo-only files in skills/guardrails/) python3 scripts/check_install_boundary.py install-boundary.yml
SKILL.md line budget python3 scripts/check_skill_budget.py install-boundary.yml
Plugin + hooks schema (Claude Code's own validator) and hook registration python3 scripts/check_plugin.py (needs the claude CLI; no model or credentials) plugin.yml
Eval manifest, model-free uvx --from skill-eval-harness==0.6.0 skill-benchmark validate --strict-leakage --check-ablations evals/shared-benchmark.json and ... audit-manifest evals/shared-benchmark.json --fail-on-blockers install-boundary.yml
Lint uvx [email protected] check . ruff.yml
Unit tests (eval oracle, install boundary, plugin.json hooks pointer) python3 -m unittest discover -s tests install-boundary.yml

Read the full file on GitHub · 55 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. 18d ago Changed · +18 lines · +416 tokens per session 5edb8bd46c41
  2. 2mo ago First seen · 37 lines · 580 tokens per session scan A 3e2fc72ad92a

Subscribe to this mod's changes

guardrails-skill CLAUDE.md is an instructions file published in the GitHub repository adewale/guardrails-skill (2 stars, last pushed 19d ago), licensed MIT. It adds 996 tokens to every session, about $0.0040 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-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens