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.
npx agentmods add commands/localplugins/plugins/docs-setupgit clone --depth 1 https://github.com/localplugins/pluginsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00020 | $0.00616 |
| Opus 5 | $0.00010 | $0.00308 |
| Sonnet 5 | $0.00004 | $0.00123 |
| Haiku 4.5 | $0.00002 | $0.00062 |
Grade A, and why
docs-setup 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.
What it actually says
/docs-setup
One-time (or re-runnable) setup — no $ARGUMENTS. Detects this project's
ecosystems and writes the docpin config file.
-
Detect ecosystems — scan for the lockfiles/manifests listed in
skills/docpin/references/resolver.md§1 (npm, PyPI, crates, Go) and report which were found. -
Create or update
.docpin/config.jsonwith this exact default schema (per the design spec §8) if the file doesn't already exist; if it already exists, preserve the user's existing values and only fill in any fields that are missing:{ "cache": { "enabled": true, "dir": ".docpin/cache" }, "hook": { "enabled": true, "maxDeps": 40 }, "defaultEcosystem": null } -
Explain each field to the user:
cache.enabled— defaulttrue; whenfalse, docpin skips the on-disk cache entirely and always fetches fresh (seeskills/docpin/references/caching.md).cache.dir— default.docpin/cache; where cached, distilled doc entries are written, keyed<ecosystem>/<pkg>@<version>[/topic].hook.enabled— defaulttrue; controls whether the SessionStart hook (hooks/session-start.sh) injects a version map at session start. Setfalseto disable it.hook.maxDeps— default40; the maximum number of dependencies the SessionStart hook lists per ecosystem before truncating (it always notes when truncation happened).defaultEcosystem— defaultnull; set to one of"npm","pypi","crates", or"go"to resolve ambiguity when a bare library name exists in more than one ecosystem detected in this project.- If the user asks to change a value now (e.g. disable the hook, change
maxDeps, or set adefaultEcosystem), update the corresponding field(s) in.docpin/config.jsonaccordingly.
-
Confirm
.docpin/is git-ignored — check the project's.gitignorefor a.docpin/(or equivalent) entry; if missing, append one..docpin/config.jsonand.docpin/cache/are project-local derived/config state and should never be committed.
Defaults apply even without running this command — /docs-setup just makes
the config explicit and gives the user a place to change it.
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.
- yesterday First seen · 51 lines · 20 tokens per session scan A 71399d9a8c19
docs-setup is a command published in the GitHub repository localplugins/plugins (5 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 616 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.
Other commands, from other repositories
security-audit-static
Static security audit of AI-built code — map trust boundaries, cross-reference documented intent, self-refute every finding, and report only evidence-backed risks.
performance-audit-static
Static performance audit of AI-built code — find N+1 queries and request waterfalls, over-fetching, missing indexes, and caching opportunities, ranked by effort and impact.
sprint
Sprint lifecycle — plan a sprint, run a retrospective, or generate release notes.
analyze-test
Analyze A/B test results — statistical significance, sample size validation, and ship/extend/stop recommendations.
plan-okrs
Brainstorm team-level OKRs aligned with company objectives — qualitative objectives with measurable key results.
write-stories
Break a feature into backlog items — user stories, job stories, or WWA format with acceptance criteria.