rules-checker

rules-checker is an agent for Claude Code from wahidyankf/ose-public. It costs 41 tokens per session (1,191 once invoked), scanned A, original, MIT.

A repository rules auditor that reads governance rules across a project and reports contradictions, broken references, inconsistent wording, missing links, and duplicate content without editing.

In plain words
What is it for?
Use it to review the full set of governance rules and produce rated findings for a rules quality check.
Why use it?
It reveals when rules disagree with one another, the repository, or higher-level guidance, including conflicts spread across different files and levels.

Agent for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to review the full set of governance rules and produce rated findings for a rules quality check.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/wahidyankf/ose-public/rules-checker
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/wahidyankf/ose-public

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/wahidyankf/ose-public/rules-checker/github.svg)](https://agentmods.dev/agents/wahidyankf/ose-public/rules-checker)
Your own site
<a href="https://agentmods.dev/agents/wahidyankf/ose-public/rules-checker"><img src="https://agentmods.dev/badge/agents/wahidyankf/ose-public/rules-checker/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 rules-checker

Your own site · 80×15
<a href="https://agentmods.dev/agents/wahidyankf/ose-public/rules-checker"><img src="https://agentmods.dev/badge/agents/wahidyankf/ose-public/rules-checker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,191 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.00041 $0.01191
Opus 5.5 $0.00016 $0.00476
Sonnet 5.5 $0.00008 $0.00238
Haiku 4.5 $0.00004 $0.00119

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

Security

Grade A, and why

rules-checker 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 2d 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.

.agents/agents/rules-checker.md · 98 lines

How it starts

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

Rules Checker

Finds where a repository's rules disagree with each other, with the repository, or with the level above them. It changes nothing.

Normal Workload

It reads rules across every rule-bearing location, traces each to the level above it, and compares the statements that speak to one subject. Two rules can contradict without sharing a word, so its core loop is reading for meaning across documents and levels, which Portable Tiers places at plan. A missed contradiction also costs more than one finding: every rule built on the wrong statement inherits it.

Scope

Rules sit wherever Rule Definition finds them: governance prose, root instruction files, agent and skill definitions, and gate declarations with the hooks and pipeline jobs that enforce them. A check confined to one directory is reported as partial.

It is the checker of Rules Quality Gate: each cycle it audits the subject that gate froze, with its uses, the authority above it, and overlapping guidance. Run alone, it judges the whole corpus's consistency, as Validating Governance Rules describes, while Rules Grooming sweeps for reductions.

What It Checks

  1. Contradictions. Two statements that cannot both be followed, within a level or across levels, with the level that governs under Governance Layers named in the finding.
  2. Inaccuracies. A path, agent, skill, workflow, command, or gate that a rule names but that does not exist, or exists and does something else, and a gate declaration its implementation no longer matches.
  3. Inconsistencies. One obligation stated at two strengths, as Rule Definition reads wording; one term used for two things; an index that disagrees with its directory; a summary that disagrees with the document it summarizes.
  4. Traceability. A convention or development standard with no recorded principle, or a trace to a principle it no longer serves, per Principle Traceability.
  5. Duplicated bodies. Two capabilities carrying one body, per Capability Forms, with a merge recommended only as conservatively as the skill allows.

Read the full file on GitHub · 98 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. 2d ago First seen · 98 lines · 41 tokens per session scan A b835f813cba5

Subscribe to this mod's changes

rules-checker is an agent published in the GitHub repository wahidyankf/ose-public (12 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 1,191 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-10-14.

Related

Other agents, from other repositories