What problem does it solve?
This skill provides token-efficient access to library documentation by routing queries through a Context7 MCP server and filtering the resulting text to minimize token usage. It enables developers to quickly retrieve code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries, without overwhelming AI models with full docs.
Core Features & Use Cases
- Token-efficient fetch: uses a shell-driven pipeline to minimize tokens while preserving essential content.
- Multi-language support: fetches examples, references, and usage patterns across popular languages and frameworks.
- Use cases: learning a new library, looking up API usage, finding code examples, troubleshooting library-specific questions.
Quick Start
Use the Context7 MCP-based workflow to fetch documentation with reduced tokens. Examples:
- bash scripts/fetch-docs.sh --library react --topic hooks --mode code
- python3 scripts/mcp-client.py call -t get-library-docs --context7CompatibleLibraryID /reactjs/react.dev --topic hooks --mode code