eval-rules

eval-rules is a skill for Claude Code from FlorianBruniaux/claude-code-plugins. It costs 84 tokens per session (2,197 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.

Part of the security-suite plugin — 2 skills, 5 commands, 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 2 skills, 5 commands, 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 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,197 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.00084 $0.02197
Opus 5.5 $0.00034 $0.00879
Sonnet 5.5 $0.00017 $0.00439
Haiku 4.5 $0.00008 $0.00220

Measured 1mo ago against content hash 0f13fe736dac, 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 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 1mo 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/security-suite/skills/eval-rules/SKILL.md · 226 lines

How it starts

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

Rules Evaluator

Discover all rule files, validate their structure and glob patterns against the real project, then run an interactive session to confirm (or improve) each rule with the user.

The goal is not just to score; it is to leave the rules directory in better shape than it was.

When to Use

  • First time writing .claude/rules/ files (validate before committing)
  • A rule seems to never trigger, or fires on every file
  • Migrating @ imports from CLAUDE.md to path-scoped rules
  • Periodic hygiene: "are these rules still relevant to how we work?"
  • After onboarding to a new codebase

Key Concepts

Mechanism When it loads Notes
@file in CLAUDE.md Session start, always Even inside a conditional sentence
No paths: in rule Session start, always Same cost as @import
paths: frontmatter When Claude reads a matching file Trigger = Read tool on a matched file
User-level rule (~/.claude/rules/) Session start, always Applies to all projects on the machine

The paths: field is the main lever for keeping rules contextual. An always-on rule with 80 lines loads on every session even if you're fixing a typo in README.md.

Glob patterns in paths: support brace expansion: "src/**/*.{ts,tsx}" matches both .ts and .tsx files with one entry.


Scoring Criteria (12 pts per rule)

# Criterion Max What is checked
1 frontmatter block 1 File has YAML frontmatter (--- delimited)
2 paths: field 2 Present (1pt) + at least one pattern listed (1pt)
3 pattern validity 3 Each pattern matches >= 1 file in project (up to 3 patterns checked)
4 scope 2 Not dead (>= 1 match) + not too broad (<30% of project source files)
5 content quality 3 Has clear header/title (1pt) + rules are specific/actionable (1pt) + under 150 lines (1pt)
Bonus focus +1 Under 15 rules in file

Thresholds:

  • Good: >= 10/12 (>= 83%)
  • Needs work: 7-9/12 (58-82%)
  • Fix: < 7/12 (< 58%)

Read the full file on GitHub · 226 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. 1mo 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 (42 stars, last pushed 1mo ago), licensed MIT. It adds 84 tokens to every session and 2,197 once invoked, about $0.0003 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-09-04.

Related

Other skills, from other repositories

pentest-forensics

Digital forensics — evidence acquisition, memory/disk imaging analysis, timeline reconstruction, IOC extraction advisory. Triggers on forensics, DFIR, Volatility, memory analysis, disk image, Autopsy, FTK, timeline, IOC extraction, evidence chain, log analysis.

fatihkan/badi · 60 tokens

pentest-malware

Malware analysis — triage, static analysis, dynamic sandbox, IOC extract, YARA signature writing advisory. Triggers on malware analiz, malware triage, sandbox, Cuckoo, IDA, Ghidra, dynamic analysis, IOC, YARA imza, packer, unpacker, reverse malware.

fatihkan/badi · 69 tokens

security-check

Comprehensive AI-powered security scanning suite with 48 skills covering OWASP Top 10, 7 language-specific deep scanners (Go, TypeScript, Python, PHP, Rust, Java, C#), supply chain analysis, infrastructure-as-code scanning, and 3000+ checklist items. Use when you need to run a security audit, find vulnerabilities…

fatihkan/badi · 91 tokens

expo-troubleshooting

Common Expo errors: Metro cache, version mismatch, expo-doctor, Pod install, Gradle daemon, native module conflicts, EAS Build logs, dependency hoisting. Triggers on expo error, metro cache, version mismatch, expo-doctor, expo install check, pod install error, gradle error, native module not found, build failed, eas…

fatihkan/badi · 0 tokens

skill-repair

Diagnose and fix failing or degraded skills automatically - systemic-first triage, per-category playbooks, and a verification plan.

aeonfun/aeon · 28 tokens

self-improve

Improve the agent itself, or audit its recent performance - better skills, prompts, workflows, and config, plus a quality/reliability/memory-hygiene review of what it did and what failed.

aeonfun/aeon · 44 tokens