Research Library Documentation
Use this skill when an agent is about to implement with a library, framework, or
tool it is not confident about, or when the API may have changed since the
agent's training.
When to consult Context7
Do query Context7 before:
- implementing with an unfamiliar library or SDK,
- using a fast-changing API (UI frameworks, cloud SDKs, build tools),
- guessing configuration options or setup steps,
- relying on API knowledge that might be outdated.
Do not make excessive calls for:
- stable, general programming questions (control flow, algorithms),
- well-known core language/stdlib behavior,
- when the user explicitly says not to.
Workflow
1. Identify the package
- Confirm the exact package/library name (npm, PyPI, crates.io, Maven, Go…).
- If unsure of the ecosystem, state it and let Context7 resolve the package
name.
2. Query the docs
- Use the Context7 tools to fetch documentation for the package and version in
question.
- Prefer version-pinned queries when the project pins a version; otherwise get
the current stable docs.
- Keep queries focused: the specific API/feature you need, not the whole doc.
3. Extract what you need
- Read the relevant sections: setup/installation, the API surface you will use,
configuration, and any version-specific notes (breaking changes, deprecations).
- Note the doc version/date so you can state how current the information is.
4. Apply and verify
- Implement against what the docs say.
- If the doc conflicts with existing code in the repo, prefer the repo's pinned
version and flag the discrepancy rather than silently changing behavior.
5. Report
State: the package and version you consulted, the key facts you applied, and any
uncertainties (e.g. "docs for v5, project pins v4 — checked both").
1---2name: research-library-docs3description: Look up current, authoritative documentation for a library or framework before implementing with it. Use when about to use an unfamiliar library, a fast-changing API, or when configuration behavior is uncertain.4---56# Research Library Documentation78Use this skill when an agent is about to implement with a library, framework, or9tool it is not confident about, or when the API may have changed since the10agent's training.1112## When to consult Context71314Do query Context7 **before**:1516- implementing with an unfamiliar library or SDK,17- using a fast-changing API (UI frameworks, cloud SDKs, build tools),18- guessing configuration options or setup steps,19- relying on API knowledge that might be outdated.2021Do **not** make excessive calls for:2223- stable, general programming questions (control flow, algorithms),24- well-known core language/stdlib behavior,25- when the user explicitly says not to.2627## Workflow2829### 1. Identify the package3031- Confirm the exact package/library name (npm, PyPI, crates.io, Maven, Go…).32- If unsure of the ecosystem, state it and let Context7 resolve the package33 name.3435### 2. Query the docs3637- Use the Context7 tools to fetch documentation for the package and version in38 question.39- Prefer version-pinned queries when the project pins a version; otherwise get40 the current stable docs.41- Keep queries focused: the specific API/feature you need, not the whole doc.4243### 3. Extract what you need4445- Read the relevant sections: setup/installation, the API surface you will use,46 configuration, and any version-specific notes (breaking changes, deprecations).47- Note the doc version/date so you can state how current the information is.4849### 4. Apply and verify5051- Implement against what the docs say.52- If the doc conflicts with existing code in the repo, prefer the repo's pinned53 version and flag the discrepancy rather than silently changing behavior.5455### 5. Report5657State: the package and version you consulted, the key facts you applied, and any58uncertainties (e.g. "docs for v5, project pins v4 — checked both").59