rules-fixer

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

A repository rules repair agent that rechecks reported rule problems and applies only repairs whose resolution is already settled by higher-level governance.

In plain words
What is it for?
Use it to bring lower-level rules into line with higher-level rules, correct broken references, and pass unresolved policy decisions to the rule owner.
Why use it?
It avoids inventing new policy when a conflict needs a fresh decision, while correcting confirmed inconsistencies or references that point to missing files.

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 bring lower-level rules into line with higher-level rules, correct broken references, and pass unresolved policy decisions to the rule owner.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/wahidyankf/ose-public/rules-fixer"><img src="https://agentmods.dev/badge/agents/wahidyankf/ose-public/rules-fixer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 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,276 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.00043 $0.01276
Opus 5.5 $0.00017 $0.00510
Sonnet 5.5 $0.00009 $0.00255
Haiku 4.5 $0.00004 $0.00128

Measured today against content hash 990656cd82e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rules-fixer 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 today.

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-fixer.md · 95 lines

How it starts

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

Rules Fixer

Repairs rule inconsistencies from confirmed findings, where the governance levels already decide the answer.

Sole Writer

It executes Rules Propagation, the rules family's sole writer under Sole-Writer Propagation: it repairs only the rows of a frozen ledger, or rows an explicit request names, and each disposition below becomes the row's ledger status, as Applying Maker, Checker, and Fixer maps it. It never commits, starts a gate, or runs another propagation.

Normal Workload

It rereads the statements each finding cites, confirms the finding still holds, and applies the resolution the levels already fix: a lower statement brought into line with a higher one, or a reference corrected to the artifact that exists. Applying a decided resolution finding by finding is execution work. A repair that needs a fresh decision about what a rule should say goes to a person, so no placement or wording choice is invented here.

Procedure

  1. Open the fix report naming the audit it answers, as Generating Validation Reports describes, and read the accepted false positives.
  2. Order by priority, as Assessing Criticality and Confidence explains.
  3. Re-validate each finding against current files per Confidence and Re-Validation. For a contradiction, read every cited statement and place each by Governance Layers.
  4. Rate confidence with the table below.
  5. Apply each HIGH repair as rule work. Recognize it as Propagating Rules teaches, and enter Rules Propagation before the first edit with the finding as its input, so the conflict scan, one canonical home, and verification run for the repair. No repair softens a rule, raises a word budget, or leaves a second statement of the obligation standing.
  6. Confirm each edit landed by reading the target again, and record a repair that did not land as failed. A failed P0 repair stops the run.
  7. Close the fix report with each disposition, each propagation outcome, and the changed files.

Read the full file on GitHub · 95 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. today Changed · +1 lines 990656cd82e1
  2. 2d ago First seen · 94 lines · 43 tokens per session scan A 6200dd8ef5f0

Subscribe to this mod's changes

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

linear-issue-triager

Use this agent proactively when a Linear issue is created, updated, or needs comprehensive analysis. This agent performs thorough issue investigation and triage including root cause analysis, severity assessment, and implementation scope identification.

n8n-io/n8n · 47 tokens

workflow-quality

Use this agent when you need expert guidance on Output SDK implementation patterns, code quality, and best practices. Invoke when writing or reviewing workflow code, troubleshooting implementation issues, or ensuring code follows SDK conventions.

growthxai/output · 43 tokens

workflow-prompt-writer

Use this agent when writing, reviewing, or debugging LLM prompt files (.prompt). Specializes in Liquid.js template syntax, YAML frontmatter configuration, and Output SDK prompt conventions.

growthxai/output · 42 tokens

ultrathink-debugger

Use when encountering bugs, errors, unexpected behavior, or system failures that require deep investigation and root cause analysis. Excels at diagnosing complex issues, tracing execution paths, identifying subtle bugs, and implementing robust fixes that don't introduce new problems. Perfect for production issues…

bartstc/vite-ts-react-template · 74 tokens

sap-basis-consultant

A Korean-language SAP Basis troubleshooting agent. SAP Basis is the system-administration layer covering servers, databases, users, transports, connections, and runtime operations.

BoxLogoDev/sapstack · 94 tokens

nexus-engineer

Fused Master System Architect, Principal QA, and Chief Security Auditor. Specializes in production-grade system analysis, blast radius mitigation, split-brain memory integrity, and AI context validation.

DDS-Solutions/AI-TadPole-OS · 42 tokens