SkillsReviewed · serejaris

Audit Agent Rules

Audit Agent Rules is a skill for people maintaining coding-assistant instructions, but its scanner needs human review to distinguish real problems from hints. It combines Russian-language audit instructions, a local Python scanner and a guide for reorganizing AGENTS.md files and skill descriptions.

Researched 16 Nov 2026

In short.

Audit Agent Rules is an assistant skill for folder owners and developers who need clearer agent instructions, but it relies on human judgment and fixed assumptions about how assistants load rules. Its Python scanner measures instruction files, flags possible routing problems and surveys local skill descriptions. The skill then directs an assistant to confirm findings, propose changes, wait for approval and preserve originals before rewriting. Runtime behavior, diagnostic accuracy, current assistant compatibility and improvements in rule-following have not been assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes all three files in skills/audit-agent-rules at commit 6862cdf66b74a4b2df40a6673a69c90ef6646f2f: SKILL.md, references/where-lines-go.md and scripts/scan.py, together with the repository-level LICENSE. Other repository resources and the external documentation linked by the skill are outside this assessment. No commands, scanner runs, rewrites or assistant sessions were executed. Runtime behavior, diagnostic accuracy, operating costs and improvements in instruction-following remain unassessed.

The overview

Identity

audit-agent-rules is a skill in the serejaris/personal-corp-os repository. It contains SKILL.md, scripts/scan.py and references/where-lines-go.md. AGENTS.md is a text file used to tell coding assistants how to work in a folder; this skill audits those instructions and the descriptions used to choose other skills.

The source folder is [https://github.com/serejaris/personal-corp-os/tree/main/skills/audit-agent-rules]. The resource supplies instructions and a helper script for an existing assistant; it does not supply its own model or standalone application.

Assessment

The skill is useful for organizing crowded or conflicting instructions: it asks whether each rule directs the assistant somewhere, sets a boundary or defines persistent behavior. Procedures and reference material receive concrete destinations, such as a separate skill, a documentation file or a nested AGENTS.md.

Its strongest feature is the connection between measurement and manual interpretation. Every scanner finding must be confirmed by reading, conflicts are referred to the user, and editing requires approval. The files provide no measured evidence that this process improves an assistant's compliance or task success.

Who it is for

The instructions explicitly target people without programming experience who maintain a folder with an assistant for their work. They ask for plain explanations, terms explained through their practical effect, and a report in the user's language. The supplied instructions, examples and scanner output are predominantly Russian.

Developers maintaining several instruction files or skill directories may also find the measurements and relocation guidance useful. The material discusses Codex, Claude Code and Cursor, but compatibility with particular versions and automatic skill invocation are unassessed.

Capabilities

The scanner's code measures rule-file lines and bytes, calculates ancestor AGENTS.md chains and estimates where a chain would exceed its configured byte ceiling. It flags possible missing routes to nested files, separate Claude-specific instructions, procedural steps, historical notes, code blocks, long lines and references to missing paths or skills.

For skills, it inventories project and optional home-directory locations, totals catalog characters, identifies repeated names and broken links, and compares descriptions for shared vocabulary. The assistant is instructed to turn confirmed findings into a prioritized report with concrete proposed changes. The scanner itself does not rewrite files.

Using it

Requirements

Automated measurement requires Python 3. The script imports only Python standard-library modules; no third-party Python dependencies are declared. It uses Git commands to locate the repository and list files when available, with filesystem traversal when Git file listing is unavailable. The skill allows manual measurement if Python is absent.

The host assistant needs access to the target folder and relevant skill directories, command execution for automated scanning, and file-editing access for approved changes. Home-level skill folders are included by default. A minimum Python version, supported operating-system list and exact assistant-version requirements are not specified.

How it works

The process separates mechanical hints from decisions about meaning. The scanner uses filename discovery, text patterns, simple frontmatter parsing and path checks. Description similarity uses shared sets of words at least four characters long, with candidate pairs reported at a similarity score of 0.25 or higher. Shared vocabulary therefore needs interpretation before it becomes a finding about overlapping tasks.

The assistant then reads active rule files line by line and assigns each line a purpose or a destination. The relocation guide moves repeatable procedures into skills, reference material into documentation and folder-specific rules into nested AGENTS.md files. Before approved edits, the procedure calls for preserving originals; text must reach its new location before removal from the old one.

Setup

Keep the complete skill folder together so SKILL.md can resolve scripts/scan.py and references/where-lines-go.md. The companion guide describes .agents/skills/<name>/ for compatible agents and .claude/skills/<name>/, or a link there, for Claude Code. Exact discovery behavior should be confirmed for the chosen assistant.

From the folder being audited, the documented command is python3 /path/to/audit-agent-rules/scripts/scan.py . . Replace the example path with the actual skill location. Appending --project-only excludes home-level skill folders; repository-ancestor skill locations remain eligible. The skill's documented trigger phrases include «проверь AGENTS.md», meaning “check AGENTS.md.”

Example

An illustrative case from the supplied guidance is a root AGENTS.md containing a multi-step publishing procedure and a naming rule that applies only to clients/. The proposed reorganization puts the procedure in a publishing skill, moves the naming rule to clients/AGENTS.md and leaves short directions in the root file pointing to both.

The assistant would first present those changes for approval. The documented follow-up preserves originals, transfers content, repeats measurements and asks the user to check rule recall or skill invocation in a fresh assistant session. This is a source-based example; no such audit or rewrite was executed.

Assessment & evidence

Limitations

The scanner hard-codes a 200-line guideline, a 32,768-byte rule-chain ceiling, an 8,000-character skill-catalog reference and a 1,536-character Claude description limit. It does not discover those settings from installed assistants. Their current applicability is unknown, and route warnings use the skill's own assumptions about instruction discovery.

Coverage excludes plugin and built-in skills, several named directories, and untracked files ignored by Git when Git listing is used. The scanner skips symlinked rule files during its initial rule-file pass, but can still read symlinked ancestor AGENTS.md files for chain measurements and symlinked sibling AGENTS.md files during Claude-rule comparisons. Skill discovery examines immediate child folders of its configured locations. Some output lists are capped, including eight rule chains, fifteen similar-description pairs and forty suspect references.

Simple frontmatter parsing and text matching can miss valid formats or produce false alarms. The instructions require manual confirmation, but detection accuracy is unassessed. A successful fresh-session recall check would establish only that particular response; dependable rule-following during real tasks remains unknown.

Why the approach may help

The approach addresses two practical causes of instruction trouble: whether guidance reaches the assistant and whether its purpose is clear. Byte measurements and path checks can identify places to investigate; line classification provides a consistent way to separate lasting rules from procedures and reference material.

Its preservation rules also address editing mistakes. Existing content must be relocated before deletion, conflicting instructions require a user decision, shared home-directory skills require explicit approval naming them, and plugin skills are left untouched. These are documented safeguards whose effectiveness depends on the host assistant following them.

Alternatives and complements

For a small instruction set, manual review using the supplied relocation guide is an alternative to automated measurement. The skill explicitly permits manual measurement when Python is unavailable. No comparison with competing audit tools or evidence of superior results is provided.

For restrictions such as preventing pushes or deletions, the guide recommends agent permissions or hooks. Those controls complement instruction cleanup by enforcing boundaries outside ordinary rule text. Their availability and configuration depend on the chosen assistant and are not demonstrated here.

Evidence

The audit and editing procedure is documented in the original SKILL.md at [https://raw.githubusercontent.com/serejaris/personal-corp-os/6862cdf66b74a4b2df40a6673a69c90ef6646f2f/skills/audit-agent-rules/SKILL.md].

The scanner implementation is preserved at [https://raw.githubusercontent.com/serejaris/personal-corp-os/6862cdf66b74a4b2df40a6673a69c90ef6646f2f/skills/audit-agent-rules/scripts/scan.py]. The relocation rules and examples are preserved at [https://raw.githubusercontent.com/serejaris/personal-corp-os/6862cdf66b74a4b2df40a6673a69c90ef6646f2f/skills/audit-agent-rules/references/where-lines-go.md].

These files establish the intended procedure and implementation details. They provide no recorded scanner output, runtime test results or measured assistant-behavior outcomes. The vendor documentation linked by the skill has not been independently assessed.

Access & freshness

Costs

No purchase price, subscription price or usage tariff is stated for the skill. The MIT license grants usage and redistribution rights, but total operating cost remains unknown.

Any subscription or API charges for the chosen assistant are separate and unspecified. The material provides no token-consumption, runtime or cost measurements. Review effort also depends on the number of files and descriptions, because the procedure requires reading and confirming findings.

Rights

The repository-level MIT license permits use, copying, modification, distribution, sublicensing and sale of the software and associated documentation. Copies or substantial portions must retain the copyright and permission notices. The license disclaims warranties and liability.

No separate license notice appears in the three captured skill files. The applicable captured notice is available at [https://raw.githubusercontent.com/serejaris/personal-corp-os/6862cdf66b74a4b2df40a6673a69c90ef6646f2f/LICENSE].

Freshness

The source snapshot is pinned to commit 6862cdf66b74a4b2df40a6673a69c90ef6646f2f and was captured on 16 November 2026 at 04:43:16.612 UTC. The main-branch folder may change independently of this snapshot.

A release number, the skill's last-change date and changes after the captured revision are unknown. Current compatibility of the fixed limits and discovery assumptions with assistant versions is also unknown.

Suggested next steps

Obtain the complete three-file skill folder and retain the MIT notice. Confirm how the chosen assistant discovers skills and instruction files, and check its configured limits before acting on threshold warnings. Decide whether the audit should include shared home-directory skills; --project-only excludes those locations.

Ask for the proposed report first and confirm findings against the actual files. Approve the intended edits, preserve originals and compare measurements afterward. The documented fresh-session rule-recall and skill-trigger checks can then provide limited evidence that the revised instructions are being discovered.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/audit-agent-rules/SKILL.mdselected · checked 2026-11-16
skills/audit-agent-rules/scripts/scan.pyselected · checked 2026-11-16