load-ai-docs

load-ai-docs is a command for Claude Code from jayminwest/kotadb. It costs 17 tokens per session (980 once invoked), scanned A, original, MIT.

A command that downloads selected online documentation and saves it as local Markdown files for coding agents to read.

In plain words
What is it for?
Use it to load documentation for tools such as OpenAI, Claude Code, Next.js, Stripe, Supabase, Zod, or uv, either all at once or by category.
Why use it?
It avoids repeatedly fetching the same documentation and gives agents a local reference while they work.

Command for Claude Code

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/jayminwest/kotadb/load-ai-docs
Clone the repo
git clone --depth 1 https://github.com/jayminwest/kotadb

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for load-ai-docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/jayminwest/kotadb/load-ai-docs.svg)](https://agentmods.dev/commands/jayminwest/kotadb/load-ai-docs)
Your own site
<a href="https://agentmods.dev/commands/jayminwest/kotadb/load-ai-docs"><img src="https://agentmods.dev/badge/commands/jayminwest/kotadb/load-ai-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 980 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.00017 $0.00980
Opus 5 $0.00009 $0.00490
Sonnet 5 $0.00003 $0.00196
Haiku 4.5 $0.00002 $0.00098

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

Security

Grade A, and why

load-ai-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 5d 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.

.claude/commands/docs/load-ai-docs.md · 94 lines

How it starts

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

Load AI Docs

Template Category: Action Prompt Level: 2 (Parameterized)

Load documentation from their respective websites into local markdown files our agents can use as context.

Variables

DELETE_OLD_AI_DOCS_AFTER_HOURS: 24 DEFAULT_CATEGORY: all

Usage

  • /docs:load-ai-docs - Load all documentation
  • /docs:load-ai-docs claude-code - Load only Claude Code docs
  • /docs:load-ai-docs anthropic - Load only Anthropic docs
  • /docs:load-ai-docs uv - Load only UV (development tools) docs
  • /docs:load-ai-docs zod - Load only Zod validation docs
  • /docs:load-ai-docs supabase - Load only Supabase docs
  • /docs:load-ai-docs stripe - Load only Stripe docs
  • /docs:load-ai-docs openai - Load only OpenAI docs
  • /docs:load-ai-docs google - Load only Google AI docs
  • /docs:load-ai-docs nextjs - Load only Next.js docs

Category URL Mappings

Claude Code

URL Output Path
https://code.claude.com/docs/en/mcp.md claude-code/mcp.md
https://code.claude.com/docs/en/slash-commands.md claude-code/slash-commands.md
https://code.claude.com/docs/en/sub-agents.md claude-code/sub-agents.md
https://code.claude.com/docs/en/sdk/sdk-python.md claude-code/sdk-python.md
https://code.claude.com/docs/en/sdk/sdk-typescript.md claude-code/sdk-typescript.md
https://code.claude.com/docs/en/hooks.md claude-code/hooks.md

Anthropic

URL Output Path
https://docs.anthropic.com/en/docs/about-claude/models/overview anthropic/models-overview.md

Validation (Zod)

URL Output Path
https://zod.dev/?id=introduction validation/zod/getting-started.md
https://zod.dev/?id=primitives validation/zod/primitives.md
https://zod.dev/?id=objects validation/zod/objects.md
https://zod.dev/?id=arrays validation/zod/arrays.md
https://zod.dev/?id=unions validation/zod/unions.md
https://zod.dev/?id=error-handling validation/zod/error-handling.md

Read the full file on GitHub · 94 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. 5d ago First seen · 94 lines · 0 tokens per session scan A 7317315f43b4

Subscribe to this mod's changes

load-ai-docs is a command published in the GitHub repository jayminwest/kotadb (102 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 980 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-30.