docs

A command that finds the version of a software library used by a project and fetches documentation for that exact version. An optional topic can narrow the documentation lookup.

In plain words
What is it for?
Use it to look up a library method, option, or concept in a project, including projects organized as a monorepo, where several packages share one repository.
Why use it?
Documentation for a newer or older release may describe different APIs, so version matching reduces incorrect coding advice.

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/localplugins/plugins/docs
Clone the repo
git clone --depth 1 https://github.com/localplugins/plugins
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 585 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.00026 $0.00585
Opus 5 $0.00013 $0.00293
Sonnet 5 $0.00005 $0.00117
Haiku 4.5 $0.00003 $0.00059

Measured yesterday against content hash 0884db11d2c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs 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 yesterday.

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.

docpin/commands/docs.md · 47 lines

How it starts

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

/docs

Explicit pull of version-matched documentation for $ARGUMENTS. The first token is the <library> name; anything after it is an optional [topic] that narrows the fetch (e.g. a specific method, option, or concept).

Run the same resolve → fetch → ground loop the docpin skill uses — see skills/docpin/SKILL.md for the overview and skills/docpin/references/resolver.md for the full algorithm. Do not restate the loop here; follow it:

  1. Detect ecosystem — find the lockfile/manifest nearest the current project (or workspace, in a monorepo) that references <library>. Consult the precedence table in references/resolver.md §1. If the library isn't found in any lockfile/manifest, it isn't installed in this project — skip to the "not installed" case below.
  2. Resolve the installed version — prefer the locked version from a lockfile; fall back to resolving a manifest range via the registry (label as inferred, per references/resolver.md §2).
  3. Registry lookup + fetch version-pinned docs — per the ecosystem's recipe (references/ecosystem-npm.md, ecosystem-pypi.md, ecosystem-crates.md, or ecosystem-go.md), fetch the doc source for that exact version. If [topic] was given, narrow the fetch/extraction to that topic; otherwise fetch the general docs entry point.
  4. Distill + ground — apply references/output-contract.md: extract only what's relevant to [topic] (or a general overview if no topic was given), never fabricate a symbol absent from the resolved version's docs, and end the answer with a Source: line naming the resolved <pkg>@<version> and the exact URL(s) fetched.

If the library isn't installed in this project

Resolve the latest published version from the registry instead, and label the version basis explicitly as latest (unpinned) (the canonical label from references/output-contract.md §4) — do not present it as if it were a version-pinned match for this project.

Read the full file on GitHub · 47 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. yesterday First seen · 47 lines · 26 tokens per session scan A 0884db11d2c9

Subscribe to this mod's changes

docs is a command published in the GitHub repository localplugins/plugins (5 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 585 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.