On this page · 8 sections
The file shows a subcommand of a CLI, and that CLI’s own --help does not list it. The instructions use a command that was renamed or removed. An agent that follows them gets an error, and has to work out the new command on its own.
What it checks
You tell ax-check which program to check with --cli "<command>", for example --cli invoicekit. ax-check reads the files for code spans and fenced code blocks that start with that program, and takes the word after it as the claimed subcommand. It then runs <command> --help, reads the list of commands (and their aliases) from the output, and compares. The rule fires when the subcommand is not listed. If a listed command is within a small edit distance of the claim, the message adds “Did you mean …”.
Passing --cli is your explicit request to run that program, so it works without --online. Point it only at a program that is safe to run with --help.
Why it matters
Instruction files such as AGENTS.md and SKILL.md are a large part of the documentation coding agents work with. In one study of 557 agentic coding sessions, instruction files and working notes made up 60.5% of the documentation interactions, against 1.3% for API references (paper’s claim; arXiv preprint, not peer reviewed). The same study reports that the link between consulting documentation and editing code is unresolved. A second preprint found that the gain from adding a rule to a skill came mainly from rules that name a command or path the old skill did not mention (paper’s claim, four agents, arXiv preprint). Neither study tested stale commands. That a stale command in these files gets followed is this rule’s design rationale, drawn from the second study’s finding that named commands change what agents do.
How to fix
- Update the instructions to the current command.
- Or add an alias in the CLI for the old command, if other people rely on it.
- Check the full set of commands in the CLI’s
--helpand run the check again.
Example
Find it:
ax-check drift --cli invoicekit AGENTS.md
Before
# AGENTS.md
## Release
Run `invoicekit report --month 2026-09` to prepare the numbers.
The CLI’s --help lists summary and export, but no report. ax-check suggests export as the closest match.
After
# AGENTS.md
## Release
Run `invoicekit export --month 2026-09` to prepare the numbers.
How ax-check detects it
The extraction and the rule logic are deterministic, but the result depends on what the CLI’s help prints on the machine and version you run it against, so the same file can give different findings on another day. JSON and SARIF reports record when and where the check ran. It only runs for the program you name with --cli. It reads a code span or a fenced code line, splits it on &&, ||, ; and |, removes a leading $ , and tokenises it. The program must be at the start of the command (or after npx or bunx). The word that follows must look like a command (a lower-case word, which may contain -, _ or :). It then runs <command> --help and checks whether the word is among the commands parsed from that help text. Only the word directly after the program is read as a subcommand.
Known limits:
- A CLI that prints help on a different path, or needs a login to print help, may produce no usable output.
- A first argument that is a file or value rather than a subcommand (for example
invoicekit input.csv) can look like a subcommand. Silence the rule for that file. - Commands that appear only in prose are not read.
Without --cli, this rule does not run. Add --dry-run to list the claims and see what would be compared, without running the program. To silence it, use --disable <rule-id>.
Sources
- Paper: “From Agent Behaviour to Agent-Friendly Documentation”, Gao and Chen, arXiv 2608.20195, 20 Aug 2026. https://arxiv.org/abs/2608.20195 . Paper’s claim: in 557 agentic coding sessions, agent-facing artefacts were 60.5% of documentation interactions versus 1.3% for API references. Preprint, not peer reviewed.
- Paper: “Agent Skill Evolution: How Revisions Affect Coding Agents”, Wang et al., arXiv 2610.04832, 4 Oct 2026. https://arxiv.org/abs/2610.04832 . Paper’s claim: across four agents an added rule raised the rate of the required action by +0.23 on average, mainly from rules that name a command or path the old skill did not mention. Preprint, not peer reviewed.
Related evidence
Records in the AX evidence register about the same pattern as this rule. They don’t test the rule itself.
Vendor claim: agents never invoked a docs skill in 56% of eval cases
Vercel states that in its Next.js 16 evals the docs skill was never invoked in 56% of cases, so the skill matched the 53% pass rate of no docs, while an 8KB docs index in AGENTS.md reached 100%.
Vendor claim: a figure with no published method
Agent skills recommended a package that does not exist
Merged pull requests in Vercel's agent plugin repository corrected skill instructions that recommended an npm package that is not published, and plugin guidance that advertised deployment cards the production MCP server does not expose.
Vendor measurement: the vendor’s own, with its method
Coding agents mostly read instruction files, not docs sites
An observational study of 557 agentic coding sessions (preprint) found that instruction files and working notes made up 60.5% of agents' documentation interactions, against 10.6% for classical technical documentation and 1.3% for API references.
Preprint: not yet peer reviewed
Injected skills lowered pass rates and raised token cost on average
WebDev-Skills-Bench (preprint) found that injecting matched public skills reduced mean Pass@2 by 1.3% to 4.2% across four models and raised token cost by 72% to 394%, with gains in only 17% to 36% of skill-project pairs.
Preprint: not yet peer reviewed
Skill rules that name a command or path change what agents do
A study of 3,159 skills (preprint) found that adding a checkable rule raised the rate at which four coding agents took the required action by +0.23 on average, with the gain coming mainly from rules naming a command or path the old skill did not mention.
Preprint: not yet peer reviewed
Skill selection precision collapses as the skill pool grows
A preprint reports that as the pool of available skills grew from 5 to 100, the precision with which agents actually used the right skill fell from 29.6% to 3.3%.
Preprint: not yet peer reviewed
Related guides
Keep agent instructions true
Agent instructions in AGENTS.md, llms.txt, skills and MCP servers drift from production. How to check every package, tool, flag and URL they name in CI.
Guide
Write agent-readable documentation
Agent-readable documentation in practice: what documentation for AI agents must answer, how to shape a page around one decision, and how to keep it true.
Guide
The state of agent-web standards
A maintained, vendor-neutral comparison of agent-web standards: what each file or protocol is, who is behind it, who actually reads it, and what we recommend.
Guide
