Agent skill

Library Docs Lookup via Context7

by duckbugio in duckbugio/flock

Looks up a third-party library's current documentation through the context7 MCP server instead of relying on the agent's possibly outdated training data.

MITAuto-check passedDevelopment

Install Library Docs Lookup via Context7

skills CLI
$ npx skills add duckbugio/flock --skill library-docs-lookup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install duckbugio/flock library-docs-lookup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/duckbugio/flock.git skills-src && mkdir -p .claude/skills && cp -r skills-src/core/skills/library-docs-lookup .claude/skills/library-docs-lookup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
library-docs-lookup
GitHub stars
502
Token cost
~408 tokens
SKILL.md length
195 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Looks up a third-party library's current documentation through the context7 MCP server instead of relying on the agent's possibly outdated training data.

  • Works in 2 steps: resolve-library-id — resolve the library… → get-library-docs — fetch the up-to-date…
  • Calling a method or option that might not exist in the installed library version
  • SKILL.md covers How, When to use it and When NOT to bother
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Training data goes stale as library APIs, method signatures, config keys and best practices change between versions, so guessing them is called a top source of subtly wrong code. The skill resolves a library name to its context7 id, then fetches the up-to-date docs for that id scoped to the specific hook, method or config option needed, and pulls the version the project actually depends on by checking its manifest file rather than assuming the latest release when the two differ.

It applies when calling a method or option that may not exist in the installed version, wiring up a new dependency or framework feature, working with an unfamiliar or fast-moving library such as a cloud SDK or web framework, or chasing a compile or runtime error that looks like an API mismatch. It explicitly does not bother with the standard library or a small, stable utility already known cold, or with pure project-internal code, which should be read from the repo instead of looked up externally. The guiding rule is to prefer one focused docs lookup over a wrong guess that then has to be debugged.

When your agent uses it

  • Calling a method or option that might not exist in the installed library version
  • Wiring up a new SDK client or framework feature for the first time
  • Working with a fast-moving cloud SDK or web framework
  • Debugging an error that looks like an API mismatch with a dependency

Example prompts

  • “Look up the current docs for this library before I wire up the client.”
  • “Check whether this hook still exists in the version we depend on.”
  • “This error looks like an API mismatch with the SDK. Pull the current docs for this method.”

Requirements

  • The context7 MCP server

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. resolve-library-id — resolve the library name (e.g. "tauri",
  2. get-library-docs — fetch the up-to-date docs for that id, scoped to the

What it can do on your machine

Read from SKILL.md and the folder at commit 19c82dd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Library Docs Lookup via Context7 loads about 408 tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 195 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~408

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from duckbugio/flock at commit 19c82dd, republished under its MIT licence (© duckbugio). 195 words, ~408 tokens.

Download SKILL.mdSave it as .claude/skills/library-docs-lookup/SKILL.md (or your agent's skills folder).
name
library-docs-lookup
description
When writing code against an external library, framework, SDK, or API, look up its CURRENT documentation with the context7 MCP tools instead of relying on memory. Use whenever you import/call a third-party package or hit an unfamiliar or fast-moving API.

Look up real library docs (don't guess the API)

Training data goes stale: library APIs, method signatures, config keys, and best practices change between versions. Guessing them is a top source of subtly-wrong code. When you touch an external library/framework/SDK/API, get the CURRENT docs.

How

The context7 MCP server is available. Use its tools:

  1. resolve-library-id — resolve the library name (e.g. "tauri", "centrifuge-go", "react-query") to its context7 id.
  2. get-library-docs — fetch the up-to-date docs for that id, scoped to the topic/symbol you need (the specific hook, method, or config option).

Pull the version the project actually depends on — check go.mod / package.json / Cargo.toml / requirements.txt — not "latest", when they differ.

When to use it

  • Calling a method/option you're not 100% sure exists in the version in use.
  • Wiring up a new dependency, an SDK client, or a framework feature.
  • An unfamiliar or fast-moving library (cloud SDKs, web frameworks, build tools).
  • A compile/runtime error that looks like an API mismatch.

When NOT to bother

  • The standard library or a tiny, stable utility you know cold.
  • Pure project-internal code — read the repo, not external docs.

Prefer one focused docs lookup over a wrong guess you then have to debug.

© duckbugio, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in core/skills/library-docs-lookup of duckbugio/flock.

Open the folder on GitHubat commit 19c82dd

Compare with similar skills

Library Docs Lookup via Context7 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Library Docs Lookup via Context7 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Library Docs Lookup via Context7 this skillduckbugio/flock502—~408Automated safety check: PassMIT
Triage Dependabot Alertsactivepieces/activepieces25k—~2.9kAutomated safety check: PassCustom licence
Self Healingpskoett/pskoett-ai-skills314—~5.3kAutomated safety check: NotesNone
Dependabotgithub/awesome-copilot40k1 repos~3.4kAutomated safety check: PassMIT
Maintenancecyanheads/pubmed-mcp-server156—~5.9kAutomated safety check: PassApache-2.0
OpenStoryline Install HelperFireRedTeam/FireRed-OpenStoryline3.5k—~1.5kAutomated safety check: NotesApache-2.0

Similar skills

  • Triage Dependabot Alerts

    activepieces/activepieces

    Triage Dependabot dependency vulnerability alerts for the Activepieces repo — pull open alerts, dedupe to distinct (package, advisory), confirm the vulnerable package + API is actually used, and…

    25k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Self Healing

    pskoett/pskoett-ai-skills

    Active runtime recovery for coding agents: when something breaks mid-task, diagnose the root cause, write a fix, VERIFY by re-running the broken thing, then file a HEAL- entry to .learnings/HEALS.md…

    314 GitHub stars~5.3k tokensUpdated 3 days ago
    DevelopmentAuto-check: notes
  • Dependabot

    github/awesome-copilot

    Official

    Comprehensive guide for configuring and managing GitHub Dependabot.

    40k GitHub starsUsed in 1 repo~3.4k tokens
    DevelopmentAuto-check passed
  • Maintenance

    cyanheads/pubmed-mcp-server

    Investigate, adopt, and verify dependency updates — with special handling for @cyanheads/mcp-ts-core.

    156 GitHub stars~5.9k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • OpenStoryline Install Helper

    FireRedTeam/FireRed-OpenStoryline

    Installs, repairs and starts a local source checkout of FireRed-OpenStoryline, from prerequisites and a venv to resources, config and the MCP and web servers.

    3.5k GitHub stars~1.5k tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Triage Security Advisories

    activepieces/activepieces

    Triage the GitHub privately-reported vulnerability backlog for Activepieces — pull repository security advisories from the Security tab, scope-check against SECURITY.md, deeply validate each…

    25k GitHub stars~3.9k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from duckbugio/flock

  • Has the agent build, test and lint a change, re-read the request and check for regressions before it says a coding task is done, then report exactly what it ran.

    502 GitHub stars~432 tokensUpdated today
    Auto-check passed
  • Duckbug Knowledge

    duckbugio/flock

    Answer questions about the owner's services and domain using the approved DuckBug knowledge base through configured MCP tools.

    502 GitHub stars~588 tokensUpdated today
    Auto-check passed

Categories

Questions about Library Docs Lookup via Context7

What does Library Docs Lookup via Context7 do?

Looks up a third-party library's current documentation through the context7 MCP server instead of relying on the agent's possibly outdated training data. Training data goes stale as library APIs, method signatures, config keys and best practices change between versions, so guessing them is called a top source of subtly wrong code. The skill resolves a library name to its context7 id, then fetches the up-to-date docs for that id scoped to the specific hook, method or config option needed, and pulls the version the project actually depends on by checking its manifest file rather than assuming the latest release when the two differ.

When should I use Library Docs Lookup via Context7?

Library Docs Lookup via Context7 fits situations like: calling a method or option that might not exist in the installed library version; wiring up a new SDK client or framework feature for the first time; working with a fast-moving cloud SDK or web framework; debugging an error that looks like an API mismatch with a dependency.

How do I install Library Docs Lookup via Context7 in Claude Code?

Run `npx skills add duckbugio/flock --skill library-docs-lookup -a claude-code`. Or copy the skill folder (core/skills/library-docs-lookup in duckbugio/flock) into .claude/skills/library-docs-lookup in your project. Claude Code loads it when a task matches its description.

How do I install Library Docs Lookup via Context7 in Codex?

Run `npx skills add duckbugio/flock --skill library-docs-lookup -a codex`. Or copy the skill folder (core/skills/library-docs-lookup in duckbugio/flock) into .agents/skills/library-docs-lookup in your project. Codex loads it when a task matches its description.

Can I use Library Docs Lookup via Context7 in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add duckbugio/flock --skill library-docs-lookup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/library-docs-lookup, .gemini/skills/library-docs-lookup, .github/skills/library-docs-lookup and .opencode/skills/library-docs-lookup in your project.

What does Library Docs Lookup via Context7 need to run?

SKILL.md names no scripts, command-line tools or credentials: Library Docs Lookup via Context7 is instructions for the agent only. Our summary lists: The context7 MCP server.

Does Library Docs Lookup via Context7 access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Library Docs Lookup via Context7 safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Library Docs Lookup via Context7 use?

Library Docs Lookup via Context7 is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Library Docs Lookup via Context7 use?

About 408 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Library Docs Lookup via Context7?

Skills that share tags, products or a category with Library Docs Lookup via Context7: Triage Dependabot Alerts (activepieces/activepieces, 25k stars), Self Healing (pskoett/pskoett-ai-skills, 314 stars), Dependabot (github/awesome-copilot, 40k stars) and Maintenance (cyanheads/pubmed-mcp-server, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Library Docs Lookup via Context7?

duckbugio (a GitHub organization) maintains it in duckbugio/flock, which has 502 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 8, 2026.

Source: duckbugio/flock on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.