OpenParable
Skip to content
← Back to skills

Library Docs Lookup

Research
library-docs-lookup

Library Docs Lookup is an Agent Skill for research published in the duckbugio/flock repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/duckbugio/flock/blob/HEAD/core/skills/library-docs-lookup/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/library-docs-lookup, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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.