context-coverage
context-coverage: audit agent-context coverage across repos
Shows where agent context lines up with the code across a set of repos, and where it is missing, thin, stale, or oversized.
Agent context means any of: CLAUDE.md (including .claude/CLAUDE.md), AGENTS.md, GEMINI.md, .github/copilot-instructions.md, Copilot *.instructions.md files, .cursorrules, .windsurfrules, files in a rules/ directory (including .cursor/rules/ and .claude/rules/), and skills (SKILL.md).
The report uses only directly measured numbers (LOC, commit dates, context line counts, LOC per context line, commits since context was last edited). It has four parts:
- Things to check: a short ranked list of specific, number-backed observations, each framed as worth a look rather than a verdict. Context that lags the code, thin coverage, an oversized context file, a large repo with no per-area context, skills with no root file to point at them, Copilot files in places Copilot may not read.
- The numbers: one table of everything measured. The Sources column names every kind of context file a repo has, and hovering it gives the lines per kind, so every context line is accounted for.
- Per-repo detail: for each repo, the raw metric strip, where its context files live, and a folder tree where every directory is sized by its LOC and colored by whether a context file governs it and how thinly.
- Since the last run (with
--compare): which repos gained or lost context lines, gained context, or changed freshness.
Only active repos are analyzed by default: a commit within the last 90 days (--active-days, 0 = all), matching the AI-SDLC maturity model's "active repos" denominator. Use --repos "a,b,c" to analyze exactly the repos you name. The skill folder is self-contained and portable.
When to use
Trigger on: "audit context coverage", "which repos are missing CLAUDE.md", "which repos have Copilot instructions", "how good is our context across the org", "where is our agent context thin/stale/missing", "track context coverage over time", "/context-coverage". Also good as a periodic org health check.