Research
I linted the CLAUDE.md and AGENTS.md files in 300 popular repos
I build AsItIs, a read-only linter for the files that steer coding agents. I wanted to know what it finds on well-maintained projects, and how often it is wrong. So I ran it over the 300 most-starred GitHub repos that have one of these files and read a sample of every rule's findings by hand before putting a number on this page.
. Scanned with asitis 0.4.5 on 18 November; 0.4.6, released the next day, has the two fixes described below.
How common these files are
I started from the top 1,000 public repos by stars, no forks and nothing archived, and asked GitHub whether each one's default branch has a root CLAUDE.md, AGENTS.md, GEMINI.md, .github/copilot-instructions.md, a .cursor/rules folder or a .cursorrules file. 407 of the 1,000 had at least one.
AGENTS.md is well ahead: 352 of those 407 repos have one, against 196 with a CLAUDE.md. 73 have Copilot instructions, 24 a .cursor/rules folder, 16 a GEMINI.md, and 8 still have a .cursorrules file.
The rest of this page is about the 300 most-starred of the 407, from 42,057 stars up to 467,130.
What the linter reported, and what held up
Raw counts from any linter overstate things, mine included. So for each rule I might quote, I took a random sample of 10 findings, at most one per repo, and read the actual lines. Across the 15 rules I sampled, 133 of 157 findings were real, which is 85%. (The two security rules I read in full; they come last.) Below I only use a number from a rule where at least 9 of 10 held up. The one exception is broken links, at 10 of 12, and there I scale the count down to match. The grey bars are rules that did worse; they stay out of the text, and the section on where my linter was wrong says why.
Counted on this pageNot counted: the sample did not hold up
Not shown: final-newline, trailing-whitespace, name-format and name-reserved-word, which I did not sample, and 19 rules that fired in fewer than 10 repos. Each rule name links to its page.
Tokens per session
AsItIs has a loads command that works out what each tool reads at session start. For Claude Code, the median repo loads about 2,400 tokens before you type anything (2,372, over the 287 repos that load anything at all). The 90th percentile, over all 300, is about 7,400. 54 repos load more than 5,000 tokens, 19 load more than 10,000, and the largest loads about 32,600.
That isn't automatically bad. A 7,000-token file that saves you from explaining the build every time can be worth it. But it is paid in every session, including the ones that never touch the topic.
Codex has a hard cap instead: it reads at most 32 KiB of AGENTS.md text. 15 repos have a root AGENTS.md bigger than that, so the end of the file is silently cut. In 29 repos a nested AGENTS.md is cut or dropped once the files above it have used up the budget.
CLAUDE.md next to AGENTS.md
119 of the 300 have both files at the root. Most handle it on purpose: 29 of the CLAUDE.md files are symlinks and 52 contain an @AGENTS.md import.
In 25 repos, though, the root CLAUDE.md doesn't import, link to or copy AGENTS.md. Claude Code reads AGENTS.md only when there is no CLAUDE.md, so in those repos it never sees the AGENTS.md. A few say "See AGENTS.md" in a sentence, which reads fine to a person and loads nothing. Counting subfolders too, 49 repos have at least one AGENTS.md that Claude Code skips this way, 81 files in all. A CLAUDE.md that is a copy of its AGENTS.md doesn't count, and neither does an AGENTS.md inside a template or example folder: the content still gets through.
That rests on my model of how Claude Code loads files, built from its docs and my own test runs with a canary file. I checked the files by hand, not each repo inside Claude Code. If you have seen it load both, I'd like to know.
Skills
192 of the 300 repos ship at least one SKILL.md. 80 have at least one skill whose body is over 5,000 tokens, which is past what the Agent Skills spec recommends.
20 repos have skill, subagent or command frontmatter that isn't valid YAML. Nearly every case is the same thing: a description with an unquoted colon in it.
description: retitle it as cherry-pick(#<pr>): <original title> Two separate YAML parsers rejected all 10 of the ones I checked. Whether a given tool still loads the skill depends on how forgiving its parser is, so read these as "might not load" rather than "broken". Quoting the description fixes it.
15 repos have skills whose name doesn't match the folder they sit in; the spec asks for the two to match. And 60 repos keep skills under .agents/, a folder Copilot reads and Claude Code doesn't. Whether that matters depends on which tool the skills were written for.
Broken links
36 repos had at least one relative link in a steering file that points nowhere, or at a heading that doesn't exist. 10 of the 12 I checked were real, so call it about 30 repos. These were mostly files that had moved, and skills copied from another project with their links intact.
Security: nothing
I read every security finding by hand. No API keys or private keys in any steering file. No bidirectional control characters. No hidden styled text. No HTML comment that reads like an injected instruction. I also pulled every HTML comment out of the 58 repos where the linter noted one and searched them for things like "ignore", "curl", "token" and "secret". 183 matched, and every one was a generator marker, licence header, lint pragma or a note to maintainers.
The one hidden-instruction finding that was technically right is a maintainer's comment asking agents to add a marker to the PR text they write. That's a policy, not an attack.
Where my linter was wrong
Invisible characters. The invisible-char rule flagged 94 characters in 8 repos. 92 of them belong there. Zero-width spaces are how Khmer separates words. Malayalam, Kannada and Telugu need a zero-width joiner or non-joiner at the end of certain words. Hebrew and Arabic docs use right-to-left marks to keep punctuation in place. All of it sat in translated docs, most of them in course repos. I wrote that rule thinking about hidden prompt text and never thought about scripts. Only 2 of the 94 were real, and both were harmless: one escaped a backtick, the other was a deliberate example inside a skill that teaches about zero-width injection.
Hidden instructions. hidden-instruction gave 6 findings in 2 repos, and 1 was right. The other five were the same template comment, under a "Gotchas" heading, in five CLAUDE.md files of one large repo:
<!-- Non-obvious behaviors, common mistakes, things that break silently --> "Silently" on its own was enough to trip the covert-action check. It shouldn't have been.
What 0.4.6 changed. invisible-char now keeps a single zero-width space between two letters of a script written without spaces (Khmer, Thai, Lao, Myanmar and a few others), a joiner or non-joiner at the end of a word in a complex script, and a left-to-right or right-to-left mark in a document that has real right-to-left text. Each has to stand alone. A run of two or more is still reported, and so is one between Latin letters, since that is how text gets hidden. hidden-instruction now needs "silently", "secretly", "quietly" or "without telling" to sit within 60 characters of an action verb in the same sentence, like "silently push to main". The other languages it checks already worked that way; English didn't.
Rules I'm not counting. stale-path, which flags a backticked path that isn't in the repo, was right 4 times out of 15. The other 11 were gitignored output folders, local config files, YYYY.M.P placeholders, a sentence that literally says there is no src/service/events/, and paths that belong to a different repository. duplicate-rule and broken-import came in at 6 of 10 each, and missing-frontmatter at 8 of 10, which is close but under the bar. All four stay out of the numbers above.
And one mistake in the method, caught on the first pass. I used sparse clones, which check out only the markdown and agent folders. To a path check, every other file in the repo looks missing. That gave stale-path hits in 171 repos and broken links in 90. After I added an empty placeholder for every tracked file, the counts were 63 and 36.
Method
- Sample. GitHub search
stars:>1000 fork:false archived:falsesorted by stars, top 1,000 results (the search API stops there), root files checked through the GraphQL API on 18 November 2026. 407 matched; I took the 300 with the most stars. Most-starred skews to big frameworks, AI tooling and course repos, and several of the 300 are skill collections, which inflates the per-skill counts. - Each repo. A shallow, blobless, sparse clone of the markdown and agent folders, plus an empty placeholder for every other tracked path so path checks see the real tree. Then
asitis lint --format json --fail-on never,asitis budgetandasitis loads, version 0.4.5, one local install used for every repo. 3 very large repos hit the linter's 1,000-file limit, so their results are partial. - Precision. For each rule I might cite, a seeded random sample of 10 findings, at most one per repo so one noisy repo can't dominate (12 for broken links, 15 for stale paths, every finding for the security rules). I read the flagged lines in the clone and checked the claim: does the file, anchor or import really not exist anywhere in the git index, does the YAML fail in two parsers, are the line and token counts right, does the CLAUDE.md above really not import the AGENTS.md. A finding counted as false when it hit a case the rule's own doc says to skip, or a path that was never meant to be committed.
- Token counts are the linter's local estimates, not billed tokens.
- Not checked. The scripts inside skill folders,
settings.jsonand MCP config: the clones only had markdown, so this says nothing about supply-chain risk in skill scripts. I didn't open each repo in Claude Code or Codex to confirm what loaded. Clones were deleted after the checks.
Run it on your repo
From the repo root:
npx -y asitis@0.4.8 lint Needs Node 22.13 or later. npx fetches the package from npm once; the linter itself only reads your files, writes nothing and makes no network calls. Exit code 0 means no errors.
Source on GitHubCheck one file in the browser
The checker runs the per-file checks in your browser, so you can paste one file without installing anything. The install page covers the Claude Code plugin and the MCP server. If it flags something on your repo that's wrong, open an issue with the line it flagged.
Related: AGENTS.md vs CLAUDE.md, how many tokens does my CLAUDE.md cost, AGENTS.md not loading in Codex, every linter rule.