context7

Fetch current version-specific library documentation for coding packages.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Nerfherder16/BrickLayer --skill context7-nerfherder16
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/Nerfherder16/BrickLayer/tree/main/.claude/skills/context7
Command: npx skills add https://github.com/Nerfherder16/BrickLayer --skill context7-nerfherder16

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pulls current, version-specific documentation directly into prompts to prevent outdated API references.

Core Features & Use Cases

  • Resolve library IDs with resolve-library-id to map package names to official IDs.
  • Retrieve up-to-date documentation with get-library-docs for the resolved ID.
  • Use within prompts to ensure accurate APIs, examples, and usage instructions when coding with unfamiliar packages.

Quick Start

Ask Context7 to fetch the docs for a package and include them in your prompt.

Frequently Asked Questions about context7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get current library documentation for a specific package version to avoid outdated API references?

Retrieve current library documentation by resolving a package name to an official ID, then fetching version-specific API docs to integrate directly into your prompts, preventing outdated API references during development.

How do I find the official library ID for a package before fetching its docs?

Use the resolve-library-id function to map a package name to its official library ID, which is required to retrieve accurate, version-specific documentation for your development ecosystem.

Does this documentation fetcher work with Python, Java, Go, and Rust packages?

Yes, it fetches current library documentation across JavaScript, Python, Java, Go, Rust, and other ecosystems, providing accurate API references when coding with unfamiliar packages in these languages.

What is the best way to include version-specific API usage instructions in my code prompts?

The best way to include version-specific API instructions is to fetch the official library docs using the resolved package ID and integrate them directly into your prompts for accurate examples and usage.

When should I use an automated documentation fetcher instead of manually searching package docs?

Use an automated documentation fetcher when coding with unfamiliar packages or APIs, ensuring your prompts contain accurate, version-specific references rather than potentially outdated manual search results.

Why does my AI assistant suggest deprecated functions from a library?

AI assistants suggest deprecated functions because they rely on outdated training data; fetching current, version-specific library documentation directly into your prompt provides accurate, up-to-date API references.