On this page · 8 sections
A relative link in a Markdown file, or a path in a manifest that starts with ./ or ../, points at a file that is not on disk. An agent that follows it finds nothing. This is the only drift rule that runs without --online, because it needs no network.
What it checks
ax-check looks for two kinds of local reference:
- Markdown links whose target is a relative path, such as
[checklist](./references/checklist.md)or[notes](docs/notes.md). - Strings in JSON manifests that start with
./or../, such as thesourceof a plugin inmarketplace.json.
It checks whether each path exists on disk, resolved against the folder of the file that contains it. Percent-encoded characters such as %20 are decoded first. The message shows the path it resolved.
Why it matters
The Agent Skills specification asks authors to keep the main SKILL.md short and to move detail into scripts/, references/ and assets/, referenced by relative paths from the skill root (Agent Skills specification). Those files are loaded only when needed. If a link points to a file that is not there, the agent only finds out at the moment it tries to use it. This is easy to cause: a file is renamed, or a skill is installed without its shared files. One public issue in a skills repository reports that per-skill installs dropped shared files that lived outside the skill folder, so links that worked in the source repository broke after install (addyosmani/agent-skills issue 361).
How to fix
- Correct the path if it has a typo or the file moved.
- Add the missing file, if it should exist.
- Keep everything a skill needs inside the skill’s folder, so it survives being copied on its own.
- Remove the link, if the file is gone for good.
Example
Find it:
ax-check drift SKILL.md
Before
---
name: invoice-export
description: Exports invoices to CSV. Use when the user asks for a spreadsheet of invoices.
---
# Invoice export
Follow the steps in [the export checklist](./references/export-checklist.md).
Column names are in [the column guide](../shared/columns.md).
The skill folder has references/checklist.md, and there is no shared/ folder after install.
After
---
name: invoice-export
description: Exports invoices to CSV. Use when the user asks for a spreadsheet of invoices.
---
# Invoice export
Follow the steps in [the export checklist](./references/checklist.md).
Column names are in [the column guide](./references/columns.md).
How ax-check detects it
The check is deterministic and reads the local disk only. In Markdown it reads inline links of the form [text](target), outside fenced code blocks. It skips images, anchors (#section), links with a scheme (https:, mailto: and similar) and links that start with /, such as /docs/guide, because a site-root path depends on where the file is served. It removes any #fragment or ?query from the target. An empty path is ignored. In JSON it reads string values that start with ./ or ../ and contain no wildcard characters (*, {, }, <, >) and no ${ variable.
Known limits:
- Links written as bare paths in prose, or inside code spans, are not read.
- A path that exists on your machine but is git-ignored will pass here and fail for someone else.
- Site-root links that start with
/are not checked at all. Use a full URL if you want Claimed URL is broken to check them.
To silence it, use --disable <rule-id> for a run where the missing file is expected, for example when you check a single file out of its repository.
Sources
- Specification: Agent Skills specification. https://agentskills.io/specification . Files in
scripts/,references/andassets/are loaded only when required; other files are referenced with relative paths from the skill root. - Vendor issue: addyosmani/agent-skills issue 361, “npx packs only skills/”. https://github.com/addyosmani/agent-skills/issues/361 . Reports that per-skill installs dropped shared files outside the skill folder.
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
