eval-rules

eval-rules is a skill for Claude Code from FlorianBruniaux/claude-code-plugins. It costs 82 tokens per session (3,773 once invoked), scanned A, original, MIT.

A review tool for Claude Code rule files that checks their structure and file-matching patterns against the actual project.

In plain words
What is it for?
Use it when creating, migrating, or maintaining .claude/rules files and their path-based conditions.
Why use it?
It helps find rules that are invalid, never apply, or load too broadly, and can guide updates based on whether they are still useful.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the security-suite plugin — 7 skills, 2 agents shipped together

Good fit Use it when creating, migrating, or maintaining .claude/rules files and their path-based conditions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/florianbruniaux/claude-code-plugins/eval-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.

Any agent
npx skills add FlorianBruniaux/claude-code-plugins --skill eval-rules
Clone the repo
git clone --depth 1 https://github.com/FlorianBruniaux/claude-code-plugins

Made for: Claude Code.

Or install security-suite, the plugin that ships this one along with the rest of its 7 skills, 2 agents.

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 eval-rules

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/florianbruniaux/claude-code-plugins/eval-rules"><img src="https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/eval-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,773 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00082 $0.03773
Opus 5.5 $0.00033 $0.01509
Sonnet 5.5 $0.00016 $0.00755
Haiku 4.5 $0.00008 $0.00377

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

Security

Grade A, and why

eval-rules scanned grade A 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 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

git = subprocess.run(["git", "-C", root, "ls-files", "-co", "--exclude-standard"], capture_output=True, text=True)
plugins/security-suite/skills/eval-rules/SKILL.md · 233 lines

How it starts

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

Rules evaluator

Discover every Claude Code rule file, validate its structure and paths globs against the real project, then review each rule with the user so the rules directory ends in better shape than it started.

This skill covers Claude Code instruction rules in .claude/rules/ and ~/.claude/rules/. It does not cover Codex .rules files, which are Starlark command-approval policies, not instructions. See "Codex" below.

When to use

  • Writing .claude/rules/ files for the first time
  • A rule never seems to apply, or applies to everything
  • Moving @ imports from CLAUDE.md into path-scoped rules
  • Periodic hygiene: are these rules still accurate and useful?
  • After onboarding to a new codebase

Modes

Request Run
Default Steps 1-5, with the interactive review
audit-only, or the user asks for no changes Steps 1-3 and 5: list each proposed change instead of asking or editing, and omit the user-answer rows from the report

When a ctxharness doctor --format json report generated during this task is available, every rules-layer finding it reports must appear in the audit. The doctor checks structure only; dead patterns, breadth and content are this skill's job.

Key concepts

Mechanism When it loads
@file import in CLAUDE.md Session start
Project rule without paths Session start, same priority as .claude/CLAUDE.md
Project rule with paths When Claude reads a file matching a pattern, not on every tool use
User rule in ~/.claude/rules/ Applies to every project; loaded before project rules. Whether paths scoping applies to user rules is not documented: report it as unverified instead of assuming
  • All .md files under .claude/rules/ are discovered recursively.
  • paths is the only frontmatter field Claude Code reads from a rule; other fields are ignored without an error. It accepts a YAML list or a comma-separated string. Fields from other tools' rule formats, such as Cursor's globs, alwaysApply or description, are therefore ignored too: a rule scoped with globs: silently loads always-on.
  • If the frontmatter YAML does not parse, Claude Code ignores the frontmatter and loads the rule as if it had no paths, so a broken scoped rule silently becomes always-on.
  • Brace expansion works ("src/**/*.{ts,tsx}"). A rule's whole paths list shares a budget of 1,000 expanded patterns and 4 MiB; a pattern over budget is used unexpanded and its literal braces match nothing.
  • A [ that cannot be read as a bracket expression (for example photos [2024/**) makes that pattern invalid: it matches nothing, the other patterns still work. Escape a literal bracket as \[.
  • Project rules are skipped when project is excluded from --setting-sources.
  • User rules load before project rules; neither overrides the other, so a conflict between them is a defect to resolve.

Read the full file on GitHub · 233 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 Changed · +8 lines 632cd5fe307d
  2. 1mo ago Changed · -1 lines · -2 tokens per session 4e4ce502f34f
  3. 3mo ago First seen · 226 lines · 84 tokens per session scan A 0f13fe736dac

Subscribe to this mod's changes

eval-rules is a skill published in the GitHub repository FlorianBruniaux/claude-code-plugins (48 stars, last pushed 4d ago), licensed MIT. It adds 82 tokens to every session and 3,773 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

eval-rules compared with skills from other repositories

eval-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
eval-rulesFlorianBruniaux/claude-code-pluginsSkill484d agoMITA82Claude Code
pentest-forensicsfatihkan/badiSkill82mo agoMITA60Claude Code
pentest-malwarefatihkan/badiSkill82mo agoMITA69Claude Code
security-checkfatihkan/badiSkill82mo agoMITA91Claude Code
expo-troubleshootingfatihkan/badiSkill82mo agoMITC0Claude Code
skill-repairaeonfun/aeonSkill803todayMITA28Claude Code, Codex
self-improveaeonfun/aeonSkill803todayMITA44Claude Code, Codex