rule-effectiveness

rule-effectiveness is a skill for Claude Code from luiseiman/dotforge. It costs 47 tokens per session (1,455 once invoked), scanned A, original, MIT.

A rule-analysis tool that checks which project rules are being used, which are inactive, and where file coverage is missing. It compares Claude Code rules with files changed in Git history.

In plain words
What is it for?
Use it to inventory rules, measure recent file activity, find coverage gaps, and identify rules that should be kept or pruned.
Why use it?
It helps remove rules that consume context without being relevant and reveals files or areas that lack matching guidance.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code.

Part of the dotforge plugin — 25 skills, 25 commands, 7 agents, 8 hooks shipped together

Good fit Use it to inventory rules, measure recent file activity, find coverage gaps, and identify rules that should be kept or pruned.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luiseiman/dotforge/rule-effectiveness
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 luiseiman/dotforge --skill rule-effectiveness
Clone the repo
git clone --depth 1 https://github.com/luiseiman/dotforge

Made for: Claude Code.

Or install dotforge, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 7 agents, 8 hooks.

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 rule-effectiveness

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/luiseiman/dotforge/rule-effectiveness"><img src="https://agentmods.dev/badge/skills/luiseiman/dotforge/rule-effectiveness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,455 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.00047 $0.01455
Opus 5.5 $0.00019 $0.00582
Sonnet 5.5 $0.00009 $0.00291
Haiku 4.5 $0.00005 $0.00145

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

Security

Grade A, and why

rule-effectiveness 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 9d 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.

skills/rule-effectiveness/SKILL.md · 129 lines

How it starts

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

Rule Effectiveness Analysis

Analyze the effectiveness of .claude/rules/ in the current project by cross-referencing rule globs against actual file activity from git history.

Scope (native-first boundary, v4.7.0): this skill owns the one measurement Claude Code has no native equivalent for — does each rule's glob match files the project actually touches. Everything else is native:

  • /doctor prompt-audit [path] (v2.1.283+) flags rules/CLAUDE.md written for older models, references to files or commands that no longer exist, and contradictions between files — run it for content quality.
  • /skill-doctor (v2.1.252+) and /doctor report per-skill/MCP context cost and unused skills — run them for token budget. Do not re-implement either here.

Step 1: Collect rules inventory

Read all .md files in .claude/rules/. For each:

  1. Extract globs: value from YAML frontmatter
  2. Count lines of content (excluding frontmatter)
  3. Record filename and glob pattern

If a rule has no globs: or paths: frontmatter, classify as always-loaded (loads every session regardless of files touched).

Rules with globs: load eagerly at session start. Rules with paths: + alwaysApply: false load lazily (only when a matching file is touched). Note: paths: must be unquoted CSV — YAML arrays and quoted strings fail silently.

Step 2: Collect file activity from git history

Run: git log --name-only --pretty=format:'' --since='3 months ago' (or configurable period).

Parse output to build:

  • session_files: group files by commit date (approximate 1 day = 1 session)
  • total_sessions: count distinct dates with commits
  • all_files_touched: unique set of all files modified

If fewer than 5 sessions available, warn that results may not be representative and extend to --since='6 months ago'.

Step 3: Cross-reference rules vs activity

For each rule with a glob pattern:

  1. Match glob against all_files_touched using bash glob expansion or fnmatch logic
  2. Calculate:
    • matched_files: count of unique files that match the glob
    • match_rate: % of sessions where at least 1 file matched the glob
    • token_cost: lines of rule content (proxy for context consumption)

Read the full file on GitHub · 129 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. 9d ago Changed · -4 lines · +23 tokens per session f0737144985f
  2. 1mo ago First seen · 133 lines · 24 tokens per session scan A 40e8e8a24174

Subscribe to this mod's changes

rule-effectiveness is a skill published in the GitHub repository luiseiman/dotforge (8 stars, last pushed 10d ago), licensed MIT. It adds 47 tokens to every session and 1,455 once invoked, about $0.0002 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 skills, from other repositories

zephermine

Creates a persisted, sectionized implementation artifact suite through research, stakeholder interviews, domain analysis, database and API design, and multi-LLM review. Use for feature or product plans consumed by downstream implementation and QA. Prefer lightweight native plan/interview workflows for small tasks; on…

Dannykkh/skill-olympus · 97 tokens

clio

A final-review and document-production workflow. It checks whether a process is ready to proceed, extracts source-based diagrams, and creates documents such as product requirements, technical documentation, and manuals.

Dannykkh/skill-olympus · 107 tokens

design-plan

A design-system planning and implementation guide for frontend projects. A design system is a shared set of visual rules, reusable components, and accessibility practices for building consistent user interfaces.

Dannykkh/skill-olympus · 108 tokens

frontend-design

A frontend design and implementation guide for turning a visual design plan into a working web interface. It also provides fallback guidance when an official design plugin is unavailable.

Dannykkh/skill-olympus · 92 tokens

agent-team

A guide for coordinating a team of coding agents working on one task. It covers when to split work into parallel assignments, how a lead agent coordinates them, and how to record shared knowledge.

Dannykkh/skill-olympus · 132 tokens

argos

A software inspection skill that checks an implementation against design documents such as API specifications, quality-assurance scenarios, flow diagrams, and other project specifications.

Dannykkh/skill-olympus · 89 tokens