docs-lookup

docs-lookup is a skill for Claude Code from fellipeutaka/leon. It costs 61 tokens per session (981 once invoked), scanned A, original, MIT.

A reference-checking workflow for using current documentation for a library, framework, software development kit, command-line tool, or cloud API. It checks the project's actual version before consulting source code, documentation, types, tests, or examples.

In plain words
What is it for?
Use it before writing or fixing code that depends on a package, API, configuration option, version migration, or library-specific behaviour.
Why use it?
Training data can describe old or incorrect programming interfaces, so relying on it can lead to broken code. This workflow reduces version mistakes and helps verify how an API or setting really works.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the tooling plugin — 12 skills shipped together

Good fit Use it before writing or fixing code that depends on a package, API, configuration option, version migration, or library-specific behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fellipeutaka/leon/docs-lookup
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.

Any agent
npx skills add fellipeutaka/leon --skill docs-lookup
Clone the repo
git clone --depth 1 https://github.com/fellipeutaka/leon

Made for: Claude Code.

Or install tooling, the plugin that ships this one along with the rest of its 12 skills.

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 docs-lookup

README.md
[![agentmods](https://agentmods.dev/badge/skills/fellipeutaka/leon/docs-lookup/github.svg)](https://agentmods.dev/skills/fellipeutaka/leon/docs-lookup)
Your own site
<a href="https://agentmods.dev/skills/fellipeutaka/leon/docs-lookup"><img src="https://agentmods.dev/badge/skills/fellipeutaka/leon/docs-lookup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-lookup

Your own site · 80×15
<a href="https://agentmods.dev/skills/fellipeutaka/leon/docs-lookup"><img src="https://agentmods.dev/badge/skills/fellipeutaka/leon/docs-lookup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 981 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00061 $0.00981
Opus 5.5 $0.00024 $0.00392
Sonnet 5.5 $0.00012 $0.00196
Haiku 4.5 $0.00006 $0.00098

Measured 24d ago against content hash 9f8fc7f7c025, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-lookup 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 24d 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.

skills/docs-lookup/SKILL.md · 45 lines

How it starts

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

Docs lookup

Training data is a stale cache of library APIs. Verify against a primary source pinned to the version the project uses, climbing the ladder in order. Context7 is metered on a shared monthly quota; it sits near the top.

1. Pin the version

Read it from the manifest + lockfile (package.json + lockfile, pyproject.toml/uv.lock, Cargo.lock, go.mod). Outside a project, use latest. Done when you hold name@version (or "latest").

2. Climb the ladder

Stop at the first rung that answers the question for that version.

  1. Source repo. opensrc path <pkg> returns the repo cloned at the lockfile version (pypi:, crates:, owner/repo for other registries; @version to pin). Search its docs folder (docs/, website/, apps/docs/), README, CHANGELOG / migration guides, type definitions, tests and examples:

    P=$(opensrc path zod)
    rg -l "superRefine" "$P" --glob '*.{md,mdx}'
    rg -n "superRefine" "$P" --glob '*.d.ts'
    

    Types and tests are ground truth for signatures; docs folders for usage. When opensrc cannot resolve the package (private, no repo URL), go straight to rung 6.

  2. Docs repo. When the source repo has no docs folder, the docs often live in a sibling repo (nestjs/nest → nestjs/docs.nestjs.com). Find it, then open it with opensrc path <owner>/<docs-repo>:

    • List the owner's repos and match docs names:
      gh repo list <owner> --limit 200 --no-archived --json name,description \
        -q '.[] | select((.name|test("doc";"i")) or ((.description//"")|test("documentation|docs";"i"))) | .name'
      
      Several hits: pick the one named after the docs host or the current major version.
    • No hit (docs under another owner, e.g. facebook/react → reactjs/react.dev): fetch any page of the docs site and follow its "Edit this page on GitHub" link.

    A docs repo tracks its default branch, so look for versioned folders when the pinned version is not the latest.

  3. Docs site as markdown. Find the official host (registry homepage, repo README). Fetch <host>/llms.txt: it indexes the markdown pages and shows the URL format the site uses. Without llms.txt, try the page URL with .md, .mdx, then /index.md appended, then plain HTML. llms-full.txt is the whole site in one file; fetch it only through a tool that indexes it.

  4. WebSearch. Use when the host, page or docs repo is unknown, or the topic is newer than the cloned source (release posts, breaking changes). Restrict allowed_domains to official domains, then fetch the hit as in rung 3.

  5. Context7. One resolve-library-id + one query-docs per question (MCP, or npx ctx7@latest library / docs). On a quota error, tell the user and move on.

  6. Installed package. The published artifact at the exact installed version: node_modules/<pkg> (README, .d.ts, dist), the virtualenv site-packages/<pkg>, ~/.cargo/registry/src/*/<crate>-<ver>, $(go env GOMODCACHE)/<module>@<ver>.

Read the full file on GitHub · 45 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. 24d ago First seen · 45 lines · 61 tokens per session scan A 9f8fc7f7c025

Subscribe to this mod's changes

docs-lookup is a skill published in the GitHub repository fellipeutaka/leon (5 stars, last pushed 4d ago), licensed MIT. It adds 61 tokens to every session and 981 once invoked, about $0.0002 per session on Opus 5.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-11-07.

Related

docs-lookup compared with skills from other repositories

docs-lookup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-lookupfellipeutaka/leonSkill54d agoMITA61Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code