health

A quick check of a project's documentation for coverage, freshness, consistency, and how easily readers can find information.

In plain words
What is it for?
Use it as an initial or recurring whole-project check before running a deeper documentation audit.
Why use it?
It gives a fast picture of documentation problems and identifies the single most useful place to start fixing them.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/edwardangert/docs-agent-plugin/health
Clone the repo
git clone --depth 1 https://github.com/EdwardAngert/docs-agent-plugin
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,513 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.01513
Opus 5 $0.00014 $0.00757
Sonnet 5 $0.00005 $0.00303
Haiku 4.5 $0.00003 $0.00151

Measured 2d ago against content hash 77f874614674, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

health scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/health.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Check Documentation Health

Give the contributor a fast, honest read on the state of their documentation, and one clear place to start.

This is the orientation command: the first thing to run after installing the plugin, and the periodic pulse check afterward. It is not the deep audit. Health is fast and whole-repo, ends in a scorecard and a single recommendation, and should feel like a knowledgeable colleague skimming the docs and telling you what they'd fix first. /docs-assist:audit is the follow-up when someone wants the full findings list.

The optional argument ($ARGUMENTS) is the docs directory. Detect it if not given.

Process

1. Establish What the Project Is

Speed matters more than completeness here. Sample; do not read everything.

  • Read the README and manifest to learn what the project does and who uses it.
  • For a large repo, fan out the doc-recon subagent and work from its project map instead of reading inline.
  • Resolve .docs-assist/ config if present (${CLAUDE_PLUGIN_ROOT}/skills/docs-assist/reference/config-resolution.md).

2. Score Four Dimensions

Assess each dimension from samples and cheap signals, not an exhaustive pass. Rate each solid, needs work, or missing, with one line of evidence.

  • Coverage: does a doc exist for each thing users need? Compare the project's main features and entry points against the docs that exist. A missing README, quickstart, or install doc outweighs any number of polish issues.
  • Freshness: are the docs still true? In a git repo, run the decay detector (node ${CLAUDE_PLUGIN_ROOT}/assets/ci/docs-decay.mjs) and read its ranked queue: it scores every doc on related-source churn since the doc last changed, last-verified age, doc age, and open sme-attested claims, deterministically and with the reasons shown. It costs about two git calls per doc; for a docs set large enough that a full scan would break the fast-scorecard promise (hundreds of files), pass it the highest-traffic subdirectory instead of the whole tree, and say that's what you scanned. Outside a git repo, fall back to comparing doc modification dates and last-verified frontmatter against the code by hand. Either way, a doc describing a heavily changed area, untouched since, is the signal. The decay detector ranks which docs are worth a real trace; it does not perform one. It scores churn, not correctness, so a "solid" rating here means "nothing looks stale," not "every claim was checked against the code" (see ${CLAUDE_PLUGIN_ROOT}/skills/docs-assist/reference/claim-verification.md); if the ranking surfaces genuinely high-risk docs, that is itself a "needs work" finding pointing at the full audit, not something health resolves on its own.
  • Consistency: do the docs agree with each other? If .docs-assist/config.yml lists lint.tools, run them against the docs directory first and fold real findings (heading-level skips, missing blank lines, untagged fences, prose issues) straight into the rating; don't approximate what a configured linter would catch by reading files instead. Then spot-check what linters can't see: example values against each other and .docs-assist/reference.yml's example-variable entries, terms against its term entries (see ${CLAUDE_PLUGIN_ROOT}/skills/docs-assist/reference/terminology.md), and heading and frontmatter conventions across sibling docs. If lint.tools isn't set, note that as part of the rating rather than silently doing everything by hand.
  • Findability: can a reader (or an AI tool) get to the right doc? Check for an llms.txt and whether it matches the docs, cross-references between related docs, and orphan docs nothing links to.

Read the full file on GitHub · 79 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 79 lines · 27 tokens per session scan A 77f874614674

Subscribe to this mod's changes

health is a command published in the GitHub repository EdwardAngert/docs-agent-plugin (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 27 tokens to every session and 1,513 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.