instruction-auditor
Skill195 starsChanged 8 days agoApache-2.0View on GitHub
Audits a system prompt or an instruction artifact (AGENTS.md, CLAUDE.md, GEMINI.md, .cursor/rules, copilot-instructions.md) and reports contradictions, vague or unenforceable rules, excessive size, and procedures that belong in a skill or a tool. Use when the user asks to review, audit, shorten, or improve agent instructions or a system prompt. Do not use for SKILL.md files (use skill-reviewer) or for user prompt templates (use prompt-reviewer).
In this repository9 other files it gives its agents.
- skills/instruction-auditor/examples/AGENTS.mdAGENTS.md
- eval-builderSkill
- governance-checkSkill
- memory-designerSkill
- prompt-reviewerSkill
- retrieval-advisorSkill
- skill-reviewerSkill
- token-budget-auditorSkill
- tool-reviewerSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
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 …
- Very specific: line 20
Read references/checklist.md and check the instructions against every rule in it.
- Distinctive: line 22
Write the report described below.
- Distinctive: line 26
Write the report in Markdown, in this order:
- Distinctive: line 53
Use the book section given in the checklist for each rule.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- 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.
- Estimate the size: count lines, and estimate tokens as characters divided by four. Record both in the
sizefield. - Read
references/checklist.mdand check the instructions against every rule in it. - For each contradiction, quote both rules and their locations. For each vague rule, propose a concrete, checkable replacement.
- 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:
## Summary: two to four sentences on the overall state and the most important change.## Findings: one bullet per finding, most severe first, in the form- [severity] location: problem. Fix: suggested fix. (book section). Severity ishighwhen the problem causes wrong or unsafe behavior,mediumwhen it makes results unreliable or costly, andlowfor clarity or maintenance issues. If there are no problems, writeNo findings.- Any skill-specific section named in the procedure.
- A final fenced
jsonblock 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.
Learn more: Chapter 2 of Context Engineering (Manning), https://hubs.la/Q04ksQ8J0
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

