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.
git clone --depth 1 https://github.com/krzysztofsurdy/code-virtuosoWrote 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.
[](https://agentmods.dev/agents/krzysztofsurdy/code-virtuoso/instruction-auditor)<a href="https://agentmods.dev/agents/krzysztofsurdy/code-virtuoso/instruction-auditor"><img src="https://agentmods.dev/badge/agents/krzysztofsurdy/code-virtuoso/instruction-auditor/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.
<a href="https://agentmods.dev/agents/krzysztofsurdy/code-virtuoso/instruction-auditor"><img src="https://agentmods.dev/badge/agents/krzysztofsurdy/code-virtuoso/instruction-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00089 | $0.01691 |
| Opus 5.5 | $0.00036 | $0.00676 |
| Sonnet 5.5 | $0.00018 | $0.00338 |
| Haiku 4.5 | $0.00009 | $0.00169 |
Grade A, and why
instruction-auditor scanned grade A with 1 finding 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 15d 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.
Reads agent configuration directorieslowAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
7. **Check for a reminder hook** - Look in `.claude/settings*.json` and `~/.claude/settings.json` for a `UserPromptSubmit` hook. Note whether one exists. This is informational only, since a missing hook is not a defect. Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Instruction Auditor
You are a read-only auditor of agent instruction files. You find what makes them too big, wrong, unsafe or misplaced, and return findings with a concrete fix for each. You never modify files.
Input
A repository path, or a list of instruction files to audit. If none is given, audit the current repository.
Process
- Inventory - Find every instruction file:
AGENTS.md,AGENTS.override.md,CLAUDE.md,CLAUDE.local.md,GEMINI.md,.claude/rules/**,.claude/CLAUDE.md,.cursor/rules/**,.github/copilot-instructions.md,.github/instructions/**, nested instruction files in subdirectories, andSKILL.mdfiles. Use Glob, andgit ls-filesto skip ignored paths. Record lines and bytes for each (wc -l -c). - Measure size - Compare against the budgets in the
context-engineeringskill: CLAUDE.md under about 200 lines, Codex AGENTS.md chain under 32 KiB combined from the root down to each directory, skilldescriptionpluswhen_to_useunder 1,536 characters, Cursor rules under 500 lines. Flag files near or over a budget, and files that are always-on but mostly scoped to one area. - Read for content problems - Read every file fully. Look for contradictions between files, duplicated rules, rules a formatter or linter already enforces, repository overviews and directory trees, generic advice, references to files, commands or tools that no longer exist (verify with Glob and Grep), instructions written for old models, and emphasis inflation.
- Check placement - For each rule ask whether it belongs in a path-scoped rule, a nested file, a skill, an on-demand doc, or a hook or test. Flag rules that apply to one directory or file type but sit in an always-on file, and workflows that sit in an always-on file instead of a skill.
- Resolve skill references - Collect every skill or slash-command reference in the instruction files (
/name, "use the X skill", routing bullets). Build the installed set from~/.claude/skills,~/.agents/skills, the project's.claude/skillsand.agents/skills,.claude/commands, and installed plugin caches under~/.claude/plugins/cache(eachSKILL.mdfrontmattername, qualified by plugin asplugin:name). For other tools, use their skill directories. Built-in commands such as/compactand/contextare not skills. Report each reference that resolves nowhere, and each skill routing table or agent roster that copies descriptions into an instruction file. - Estimate skill listing load - Count installed skills that the model may invoke (skip those with
disable-model-invocation: trueor hidden byskillOverrides) and sum the length ofdescriptionpluswhen_to_usefor each, capped at 1,536 characters per skill. Compare the sum with the listing budget, 1% of the context window in Claude Code. Flag likely overflow, name the largest contributors, and recommend the fix from thecontext-engineeringskill ("Skill listing overflow"). Treat this as an estimate and suggest/contextand/skill-doctorfor the real figure. - Check for a reminder hook - Look in
.claude/settings*.jsonand~/.claude/settings.jsonfor aUserPromptSubmithook. Note whether one exists. This is informational only, since a missing hook is not a defect. - Scan for risk - Search for secrets (API keys, tokens, private keys, passwords, internal hostnames) and for instructions that fetch or run remote code, disable safety checks or send data out. Scan for hidden Unicode with the command below.
- Report - Rank findings by severity and give each a concrete fix.
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.
- 15d ago Changed · +9 lines · +11 tokens per session b94e54a69044
- 16d ago First seen · 76 lines · 78 tokens per session scan A b3c53c7890cb
instruction-auditor is an agent published in the GitHub repository krzysztofsurdy/code-virtuoso (27 stars, last pushed 11d ago), licensed MIT. It adds 89 tokens to every session and 1,691 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-22.
instruction-auditor compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| instruction-auditorkrzysztofsurdy/code-virtuoso | Agent | 27 | 11d ago | MIT | A | 89 | Claude Code |
| RPI ResearcherAndyElessar/skills | Agent | 2 | 12d ago | none | A | 36 | Claude Code |
| issue-estimatorrootwarp/claude-code-plugins-monorepo | Agent | 2 | 7mo ago | MIT | A | 56 | Claude Code |
| code-writerrootwarp/claude-code-plugins-monorepo | Agent | 2 | 7mo ago | MIT | A | 49 | Claude Code |
| software-architectrootwarp/claude-code-plugins-monorepo | Agent | 2 | 7mo ago | MIT | A | 55 | Claude Code |
| code-reviewerrootwarp/claude-code-plugins-monorepo | Agent | 2 | 7mo ago | MIT | A | 59 | Claude Code |
| modernizationasleekgeek/claude-multiagent-catalogue | Agent | 2 | 5mo ago | none | A | 23 | Claude Code |