verify-custom-rules

verify-custom-rules is a command for Claude Code from waleedkhanbaloch/claude-code-safety-net. It costs 6 tokens per session (136 once invoked), scanned A, original, MIT.

A command for checking whether a Safety Net custom-rules configuration file follows its required format. Safety Net is a tool that validates custom rules used to check coding-agent behavior or project changes.

In plain words
What is it for?
Use it to verify custom rules, inspect validation errors, read the configuration format, and confirm that fixes pass validation.
Why use it?
It identifies configuration errors and shows the relevant schema documentation so the rules can be corrected and checked again.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the safety-net plugin — 2 commands, 1 hook shipped together

Good fit Use it to verify custom rules, inspect validation errors, read the configuration format, and confirm that fixes pass validation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/waleedkhanbaloch/claude-code-safety-net/verify-custom-rules
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.

Clone the repo
git clone --depth 1 https://github.com/waleedkhanbaloch/claude-code-safety-net

Made for: Claude Code.

Or install safety-net, the plugin that ships this one along with the rest of its 2 commands, 1 hook.

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 verify-custom-rules

README.md
[![agentmods](https://agentmods.dev/badge/commands/waleedkhanbaloch/claude-code-safety-net/verify-custom-rules.svg)](https://agentmods.dev/commands/waleedkhanbaloch/claude-code-safety-net/verify-custom-rules)
Your own site
<a href="https://agentmods.dev/commands/waleedkhanbaloch/claude-code-safety-net/verify-custom-rules"><img src="https://agentmods.dev/badge/commands/waleedkhanbaloch/claude-code-safety-net/verify-custom-rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 136 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.
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.00006 $0.00136
Opus 5 $0.00003 $0.00068
Sonnet 5 $0.00001 $0.00027
Haiku 4.5 $0.00001 $0.00014

Measured 8d ago against content hash e64062b90be3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

verify-custom-rules 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 8d 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.

commands/verify-custom-rules.md · 16 lines

What it actually says

You are helping the user verify the custom rules config file.

Your Task

Run npx -y cc-safety-net --verify-config to check current validation status

If the config has validation errors:

  1. Show the specific validation errors
  2. Run npx -y cc-safety-net --custom-rules-doc to read the schema documentation
  3. Use AskUserQuestion tool to offer fixes with your best suggestions
  4. After fixing, run npx -y cc-safety-net --verify-config to verify again
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. 8d ago First seen · 16 lines · 6 tokens per session scan A e64062b90be3

Subscribe to this mod's changes

verify-custom-rules is a command published in the GitHub repository waleedkhanbaloch/claude-code-safety-net (2 stars, last pushed today), licensed MIT. It adds 6 tokens to every session and 136 once invoked, about $0.0000 per session on Opus 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.