context7-usage
Installation
SKILL.md
Retrieve before claiming. Any statement about an external library's API, configuration, or behavior comes from a fetch, never from training-data memory — the memory is confident, plausible, and dated.
Two tools: resolve-library-id turns a library name into a Context7 ID; query-docs fetches for a specific
topic. Skip the resolve step when the ID is already known.
When
- The question is about a library's API, config options, or recommended usage.
- Code references an external dependency whose current behavior needs confirming.
- A version upgrade is in scope — check the migration notes before writing the change.
- Debugging "why doesn't this API work": verify against current docs before concluding it is a bug.
- Writing a nixpkgs derivation with a language builder. Context7 against
/nixos/nixpkgsis the authoritative source forbuildGoModule,rustPlatform.buildRustPackage, and their hash attributes.
For project-local evidence, use Serena or Read instead — Context7 answers what the library does, not what this repository does.