Optimize AGENTS.md and rules for token efficiency. Auto-invoked when user asks about improving agent instructions, compressing AGENTS.md, or making rules more effective.
SkillScore82Maintained
Automatic
◆AI Engineer pack
Last verified 9/2/2026
What it changes
Passed 15 of 18 test cases with the skill, and 7 of 18 without it.
Without skill36%
With skill82%
Checks it passed that the model alone missed
Formats the anti-patterns into a markdown table.
Includes a *Verify:* line with a grep check command.
Places the entry under a ## Learnings section header.
and 14 more in the full report
10 fixed8 passed either way4 still failing0 broke
Pass-rate lift
+45 pp
Tokens
+25%
Agent turns
0%
Response time
-35%
Model gemini-3.6-flashMeasured 9/2/2026v118 of 22 cases passed with skill · 18 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 9
Prompt
We have a wordy coding guideline explaining that our team prefers TypeScript type aliases rather than interface definitions for better consistency with union types. Convert this prose rule into a compressed entry for an AGENTS.md rule list.
What was checked, without and with the skill
Checked
Without skill
With skill
Formats the rule with an italicized *Verify:* line containing a grep check command.
Missed
Passed
Formats the rule with an italicized *Fix:* line specifying the code transformation.
Missed
Passed
case-04 · gemini-3.6-flash · 9/2/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md181 linessingle file
Optimize AGENTS.md
Apply Boris Cherny's compression principles to AGENTS.md and rules files.
Target: ~2.5k tokens (most are 10k+ unnecessarily)
When to Use
User wants to improve their AGENTS.md or CLAUDE.md
Step 1 of the PaperOrchestra pipeline (arXiv:2604.05018). Convert (idea.md, experimental_log.md, template.tex, conference_guidelines.md) into a strict JSON outline containing a plotting plan, literature search plan (Intro + Related Work), and section-level writing plan with citation hints. TRIGGER when the orchestrator delegates Step 1 or when the user asks to "outline a paper from raw materials" or "generate the paper structure".