context7-tools
Queries Context7 library documentation via unified Python CLI. Use when resolving library IDs, fetching API references, code examples, or conceptual guides for any programming library or framework.
When & Why to Use This Skill
The Context7-tools Claude skill is a specialized developer utility designed to streamline the retrieval of programming library documentation. By providing a unified Python CLI interface, it allows users to resolve library IDs, fetch detailed API references, and access conceptual guides or code examples directly within their workflow. This tool significantly enhances developer productivity by reducing context switching and providing instant access to technical knowledge bases.
Use Cases
- Rapid API Reference Lookup: Instantly fetch function signatures, parameter details, and return types for specific libraries like React or Effect-TS without leaving the chat interface.
- Library Disambiguation: Use the 'resolve' command to find the exact documentation ID for libraries with similar names, ensuring you are referencing the correct version and source.
- On-the-fly Learning and Implementation: Retrieve conceptual guides and verified code examples for unfamiliar frameworks to quickly understand best practices and architectural patterns.
- Unified Documentation Search: Use the 'lookup' command to combine library resolution and documentation fetching in a single step for faster information retrieval.
| name | context7-tools |
|---|---|
| type | complex |
| depth | base |
| user-invocable | false |
| description | >- |
[H1][CONTEXT7-TOOLS]
Dictum: Three commands mirror MCP capabilities plus unified convenience.
Query Context7 library documentation. Matches MCP tool structure.
[1][COMMANDS]
| [CMD] | [ARGS] | [RETURNS] |
|---|---|---|
| resolve | <library> [query] |
Top 5 matching IDs with scores |
| docs | <library-id> <query> |
Documentation filtered by query |
| lookup | <library> <query> |
Resolve + docs in one call |
[2][USAGE]
# Resolve library → see options
uv run .claude/skills/context7-tools/scripts/context7.py resolve effect
# Fetch docs for specific ID
uv run .claude/skills/context7-tools/scripts/context7.py docs /effect-ts/effect "Services"
# Unified: resolve + docs
uv run .claude/skills/context7-tools/scripts/context7.py lookup react "hooks"
Slash command: /lib-docs react "hooks and state"
[3][SELECTION_LOGIC]
lookup auto-selects library by: VIP status → highest benchmark score.
Use resolve first when disambiguation needed.