context7

Fetch version-specific library documentation for current code generation.

1|Updated Dec 17, 2016
One-click install
npx skills add https://github.com/vm-wylbur/pb-dotfiles --skill context7-vm-wylbur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/vm-wylbur/pb-dotfiles/tree/main/ai/claude-code/skills/context7
Command: npx skills add https://github.com/vm-wylbur/pb-dotfiles --skill context7-vm-wylbur

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Claude's training data has a cutoff, leading to outdated code generation for fast-moving libraries and frameworks. This skill ensures Claude always uses the most current, version-specific documentation, preventing broken or deprecated code and saving you debugging time.

Core Features & Use Cases

  • Intelligent Invocation: Automatically detects when library-specific documentation is needed and fetches it efficiently, bridging the gap between training data and current APIs.
  • Version Awareness: Checks project dependencies (e.g., requirements.txt) to fetch documentation specific to your installed library version, which is critical for libraries with breaking changes like pydantic v1 vs v2.
  • Token Optimization & Error Recovery: Uses lazy loading and specific queries to save tokens, and intelligently retries with alternate names if a library isn't found, ensuring reliable access to information.
  • Use Case: When asked to "create a pydantic model for validating user data", the skill will first check your project's pydantic version. If v2 is detected, it will fetch pydantic v2 documentation and generate code using @field_validator and ConfigDict, ensuring the code works correctly with your environment.

Quick Start

Create a Typer CLI with multi-commands and YAML config. The skill will fetch the latest Typer documentation and generate up-to-date code.