audit-rules

audit-rules is a skill for Claude Code from Eigenwise/eigenwise-toolshed. It costs 36 tokens per session (626 once invoked), scanned A, original, MIT.

A read-only checker for Claude Code rules, which are instructions that control how the coding agent works in selected files or projects. It finds rules that cannot load, match no files, are too large, overlap, or use old settings.

In plain words
What is it for?
Use it to inspect the rules in a project or home folder and identify the specific fix for each finding.
Why use it?
It exposes rules that are ignored or loaded too broadly, which can make the agent behave unexpectedly or consume extra context.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the live-rules plugin — 2 skills shipped together

Good fit Use it to inspect the rules in a project or home folder and identify the specific fix for each finding.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Eigenwise/eigenwise-toolshed
Claude Code
/plugin install live-rules

Made for: Claude Code.

Or install live-rules, the plugin that ships this one along with the rest of its 2 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 audit-rules

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/eigenwise/eigenwise-toolshed/audit-rules"><img src="https://agentmods.dev/badge/skills/eigenwise/eigenwise-toolshed/audit-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 626 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.00036 $0.00626
Opus 5.5 $0.00014 $0.00250
Sonnet 5.5 $0.00007 $0.00125
Haiku 4.5 $0.00004 $0.00063

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

Security

Grade A, and why

audit-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 4d 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.

plugins/live-rules/skills/audit-rules/SKILL.md · 37 lines

How it starts

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

Audit the rules

Run the script from the project root and read the result:

node "${CLAUDE_PLUGIN_ROOT}/scripts/audit-rules.mjs" --rules .claude/rules --table

It needs Node 22.5 or later. If Node is missing or older, say the audit cannot run here and stop. Drop --table for JSON. Add --file <path> to look at one rule. For user scope use --rules ~/.claude/rules.

The script reads files only. It exits 0 unless a file cannot be parsed, so a clean exit does not mean no findings. Read the table.

Findings and their one fix

Code Meaning Fix
parse-error The frontmatter cannot be read. The rule is not loading. Open the file, fix the line it names. Each frontmatter line is key: value or - item.
ignored-field A v1 key (globs, dirs, prompt, include, priority, enabled) sits in a native rule. Claude Code ignores it, so the rule may be loading everywhere. Apply the fix in the finding.
no-match A paths glob matches no file in the project. Correct the glob. Delete the rule if that code is gone.
over-budget The body is over 1.5 KB for an always-loaded rule, or 2 KB for a path-scoped one. Trim it. For an always-loaded rule, adding a paths glob is usually better. Otherwise split it by concern.
possible-duplicate Two rules have the same paths and a shared heading. Merge them or delete one. It is a hint, so read both first.

The audit skips the codebase map (codebase-map.md and map/), which has its own limits and status check, and says so in one line. Files under guides/ are audited like any rule.

The last line of the table is the total always-loaded bytes. Every byte there is paid for in every session. If the number is large, point at the biggest always-loaded rules and ask whether each really applies everywhere.

How to report

Lead with what is wrong and how bad it is. One line per finding: file, problem, fix. Do not apply the fixes without being asked, since rules are the user's standing instructions. When asked, edit the file and run the audit again to show it is clean.

Read the full file on GitHub · 37 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. 4d ago First seen · 37 lines · 36 tokens per session scan A 35c417baedd8

Subscribe to this mod's changes

audit-rules is a skill published in the GitHub repository Eigenwise/eigenwise-toolshed (290 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 626 once invoked, about $0.0001 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-11-26.

Related

audit-rules compared with skills from other repositories

audit-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
audit-rulesEigenwise/eigenwise-toolshedSkill290todayMITA36Claude Code
code-reviewphuryn/pm-skillsSkill28k21d agoMITA58Claude Code
health-checkbitwize-music-studio/claude-ai-music-skillsSkill7233d agoCC0-1.0A38Claude Code
triageboshu2/agentopsSkill464yesterdayApache-2.0A46Claude Code
cybersecuritysecondsky/claude-skillsSkill2578d agoMITA79Claude Code
multi-ai-consultantsecondsky/claude-skillsSkill2578d agoMITA48Claude Code
cloudflare-workers-observabilitysecondsky/claude-skillsSkill2578d agoMITA47Claude Code