instruction-auditor

instruction-auditor is a skill for Claude Code from bonigarcia/context-engineering. It costs 110 tokens per session (680 once invoked), scanned A, original, Apache-2.0.

An auditor for the instruction files that guide coding agents, such as AGENTS.md, CLAUDE.md, or editor rule files. It checks for contradictions, unclear rules, excess length, and procedures that belong in a separate skill or tool.

In plain words
What is it for?
Use it to review one or more agent instruction artifacts, measure their size, and identify rules that cannot be checked or followed reliably.
Why use it?
Unclear or conflicting instructions make agents behave inconsistently and use more context than necessary. The audit points to specific rules and proposes concrete replacements.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Gemini CLI.

Part of the context-engineering-skills plugin — 12 skills shipped together

Good fit Use it to review one or more agent instruction artifacts, measure their size, and identify rules that cannot be checked or followed reliably.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bonigarcia/context-engineering/instruction-auditor
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 bonigarcia/context-engineering --skill instruction-auditor
Clone the repo
git clone --depth 1 https://github.com/bonigarcia/context-engineering

Made for: Claude Code.

Or install context-engineering-skills, the plugin that ships this one along with the rest of its 12 skills.

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 instruction-auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/bonigarcia/context-engineering/instruction-auditor/github.svg)](https://agentmods.dev/skills/bonigarcia/context-engineering/instruction-auditor)
Your own site
<a href="https://agentmods.dev/skills/bonigarcia/context-engineering/instruction-auditor"><img src="https://agentmods.dev/badge/skills/bonigarcia/context-engineering/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.

agentmods 80×15 button for instruction-auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/bonigarcia/context-engineering/instruction-auditor"><img src="https://agentmods.dev/badge/skills/bonigarcia/context-engineering/instruction-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 680 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.00110 $0.00680
Opus 5.5 $0.00044 $0.00272
Sonnet 5.5 $0.00022 $0.00136
Haiku 4.5 $0.00011 $0.00068

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

Security

Grade A, and why

instruction-auditor 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 11d 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.

skills/instruction-auditor/SKILL.md · 56 lines

How it starts

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

Instruction auditor

Audit one set of agent instructions and tell the user what to change so that the agent follows them consistently and spends fewer tokens on them.

Procedure

  1. Read the whole artifact. If several instruction files apply to the same agent (for example a root AGENTS.md and a nested one), read all of them and treat them as one set, noting which file each rule comes from.
  2. Estimate the size: count lines, and estimate tokens as characters divided by four. Record both in the size field.
  3. Read references/checklist.md and check the instructions against every rule in it.
  4. For each contradiction, quote both rules and their locations. For each vague rule, propose a concrete, checkable replacement.
  5. Write the report described below. Report only problems you can point to. Do not report sections that are already concrete and correct.

Report format

Write the report in Markdown, in this order:

  1. ## Summary: two to four sentences on the overall state and the most important change.
  2. ## Findings: one bullet per finding, most severe first, in the form - [severity] location: problem. Fix: suggested fix. (book section). Severity is high when the problem causes wrong or unsafe behavior, medium when it makes results unreliable or costly, and low for clarity or maintenance issues. If there are no problems, write No findings.
  3. Any skill-specific section named in the procedure.
  4. A final fenced json block with the same content, as in this example.
{
  "skill": "instruction-auditor",
  "summary": "...",
  "size": {
    "lines": 0,
    "tokens_estimate": 0
  },
  "findings": [
    {
      "severity": "high",
      "location": "AGENTS.md, Code style",
      "problem": "...",
      "fix": "...",
      "book_section": "Chapter 2, Best practices for designing instruction artifacts"
    }
  ]
}

Use the book section given in the checklist for each rule. If the input is missing or out of scope for this skill, say so in one sentence and stop.

Read the full file on GitHub · 56 lines

Files

What ships with it

3 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. 11d ago First seen · 56 lines · 110 tokens per session scan A 67444def02eb

Subscribe to this mod's changes

instruction-auditor is a skill published in the GitHub repository bonigarcia/context-engineering (196 stars, last pushed 2d ago), licensed Apache-2.0. It adds 110 tokens to every session and 680 once invoked, about $0.0004 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-11-19.

Related

instruction-auditor compared with skills from other repositories

instruction-auditor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
instruction-auditorbonigarcia/context-engineeringSkill1962d agoApache-2.0A110Claude Code
Braintree Automationopenteams-lab/openteamsSkill5995d agoApache-2.0A25Claude Code, Codex
asin-data-api-automationopenteams-lab/openteamsSkill5995d agoApache-2.0A30Claude Code, Codex
Coinbase Automationopenteams-lab/openteamsSkill5995d agoApache-2.0A24Claude Code, Codex
college-football-data-automationopenteams-lab/openteamsSkill5995d agoApache-2.0A30Claude Code, Codex
incident-postmortem-reportcaipe-io/ai-platform-engineeringSkill453todayApache-2.0A76Claude Code, Codex
connect-appsopenteams-lab/openteamsSkill5995d agoApache-2.0A41Claude Code