audit-agent-rules

audit-agent-rules is a skill for Claude Code from serejaris/personal-corp-os. It costs 86 tokens per session (2,804 once invoked), scanned A, original, MIT.

A skill that audits agent instruction files and the skills an agent sees when it starts, then reports what to remove, move, or rewrite. It edits files only after the user agrees.

In plain words
What is it for?
It is for reviewing AGENTS.md files, related Claude instruction files, and available skills in a project. It can explain findings in plain language and propose changes before editing.
Why use it?
It helps find conflicting, duplicated, or unclear instructions that can make an AI agent behave unexpectedly.

Skill for Claude Code

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

Part of the personal-corp-os plugin — 32 skills, 1 agent shipped together

Good fit It is for reviewing AGENTS.md files, related Claude instruction files, and available skills in a project. It can explain findings in plain language and propose changes before editing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/serejaris/personal-corp-os/audit-agent-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 serejaris/personal-corp-os --skill audit-agent-rules
Clone the repo
git clone --depth 1 https://github.com/serejaris/personal-corp-os

Made for: Claude Code.

Or install personal-corp-os, the plugin that ships this one along with the rest of its 32 skills, 1 agent.

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 audit-agent-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/serejaris/personal-corp-os/audit-agent-rules/github.svg)](https://agentmods.dev/skills/serejaris/personal-corp-os/audit-agent-rules)
Your own site
<a href="https://agentmods.dev/skills/serejaris/personal-corp-os/audit-agent-rules"><img src="https://agentmods.dev/badge/skills/serejaris/personal-corp-os/audit-agent-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 audit-agent-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/serejaris/personal-corp-os/audit-agent-rules"><img src="https://agentmods.dev/badge/skills/serejaris/personal-corp-os/audit-agent-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,804 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.00086 $0.02804
Opus 5.5 $0.00034 $0.01122
Sonnet 5.5 $0.00017 $0.00561
Haiku 4.5 $0.00009 $0.00280

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

Security

Grade A, and why

audit-agent-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 18d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scan.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/audit-agent-rules/SKILL.md · 90 lines

How it starts

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

Аудит правил агента

Скилл проверяет файлы правил агента в текущей папке и каталог скиллов, который агент видит на старте. Отдаёт отчёт таблицей: что не так и как сделать лучше. Файлы меняет только после «да» человека.

Скилл обычно зовёт человек без опыта в программировании: он ведёт папку с агентом для своей работы. Отчёт пиши простыми словами, на языке человека; термин объясняй один раз через то, что он меняет в работе агента.

Что проверяется

  • AGENTS.md в текущей папке и во всех её подпапках. Его читают Claude Code, Codex, Cursor и другие агенты, поэтому аудит строится вокруг него.
  • CLAUDE.md, CLAUDE.local.md и .claude/rules/ попадают в отчёт одной находкой, если в них свой текст: тогда Claude Code читает одни правила, остальные агенты другие. Разбирать их построчно не нужно.
  • Скиллы из .agents/skills и .claude/skills этой папки (и папок выше до корня git-репозитория), ~/.agents/skills, ~/.codex/skills, ~/.claude/skills.

Четыре мерила

  1. Каждая строка правил: маршрут, граница или постоянное поведение.

    Вид Что делает Пример
    Маршрут Ведёт к файлу или скиллу под задачу «Пост в канал пиши через скилл telegram-post»
    Граница Что можно и что нельзя «archive/ только читать»
    Постоянное поведение Действует на любой запрос «Отвечай по-русски, коротко»

    Строка другого вида уходит из файла: процедура с шагами в скилл или docs/, история решений в git, справка в docs/, правило одной подпапки во вложенный AGENTS.md. Проверка строки: если её удалить, агент ошибётся? Если нет, строка лишняя.

  2. Файл до 200 строк. Ориентир Anthropic: длинный файл занимает контекст, и агент хуже соблюдает правила. Codex читает все AGENTS.md от корня репозитория до папки, где его запустили, в общий бюджет 32 KiB (32 768 байт в UTF-8). Кириллическая буква весит 2 байта. Что не влезло, Codex обрезает и не читает.

  3. AGENTS.md работает навигатором. Детали лежат в своих файлах и скиллах, в правилах остаётся строка-маршрут: «Для X открой Y» или «X пиши через скилл Z». Вложенный AGENTS.md агент гарантированно читает только в сессии, начатой в его папке, поэтому у каждого вложенного файла есть маршрут из корневого.

Read the full file on GitHub · 90 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 18d ago First seen · 90 lines · 86 tokens per session scan A 0142b0a47439

Subscribe to this mod's changes

audit-agent-rules is a skill published in the GitHub repository serejaris/personal-corp-os (232 stars, last pushed yesterday), licensed MIT. It adds 86 tokens to every session and 2,804 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-10-05.

Related

Other skills, from other repositories

manuscript-review

Pre-publication manuscript audit producing a section-level refactoring report with citation hygiene and submission-readiness checks. Triggers on: "review my paper", "check before submission", "is this ready to submit", "pre-pub checklist", "refactor my paper", "check my references", "does the abstract work".

Mathews-Tom/armory · 70 tokens

figure-rhetoric

Evaluate whether figures and plots in a manuscript effectively communicate the claims they support. Audits chart-type fit, axis design, visual hierarchy, data density, caption interpretation, perceptual accuracy, and narrative arc across 8 dimensions. Triggers on: "do my figures work", "check my plots", "are my graphs…

Mathews-Tom/armory · 123 tokens

manuscript-provenance

Computational provenance audit verifying every number, table, and figure in a manuscript derives from code, not manual entry. Triggers on: "check provenance", "verify reproducibility", "audit my pipeline", "are my numbers from code", "provenance audit". Companion to manuscript-review (prose audit).

Mathews-Tom/armory · 70 tokens

pr-explainer

Use when a developer asks to explain a pushed PR, walk through a PR stack, understand one stack member, or explain what an AI agent just pushed so they can connect code changes to end-to-end functionality and update domain knowledge. Not for defect review, merge approval, PR-body authoring, or full-repository…

Mathews-Tom/armory · 70 tokens

code-refiner

Deep code simplification and refactoring preserving behavior across Python, Go, TypeScript, Rust. Targets complexity, anti-patterns, readability debt. Triggers on: "simplify this code", "refactor for clarity", "reduce complexity", "make this more readable", "tech debt cleanup", "too much nesting".

Mathews-Tom/armory · 69 tokens

competitive-analyzer

Competitive landscape analysis: Porter's Five Forces, competitor discovery, feature/pricing matrices, positioning maps, moat assessment via WebSearch. Triggers on: "competitive analysis", "competitor comparison", "competitive landscape", "Porter's Five Forces", "market positioning", "moat assessment", "defensibility…

Mathews-Tom/armory · 68 tokens