Access up-to-date, version-specific documentation and code examples from Context7. Use this skill to verify library and framework details.
67
53%
Does it follow best practices?
Impact
83%
1.59xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./context7-skill/SKILL.mdThe Context7 skill connects you to accurate, version-specific documentation and code examples directly from the source. Use this skill to verify syntax, API details, and usage patterns for third-party libraries and frameworks, ensuring your code is based on the correct version.
Access Methods:
resolve_library_id and query_docs.scripts/context7_cli.py) using the FastMCP v2 client, intended for use when direct MCP tools are unavailable.CONTEXT7_API_KEY.uv): Required only if using the CLI fallback script.resolve-library-id)Resolves a package or library name to a Context7-compatible library ID and returns a list of matches.
resolve_library_id(query="...", libraryName="...")uv run --script scripts/context7_cli.py resolve-library-id <name>query-docs)Retrieves documentation and code examples using a specific library ID.
query_docs(libraryId="/org/project/version", query="...")uv run --script scripts/context7_cli.py query-docs <library_id> <query>IMPORTANT: Tool names may have prefixes (e.g.,
context7_resolve_library_id) depending on the runtime environment. Always check available tools first.
resolve_library_id before querying, unless the user provides a full ID (e.g., /org/project/version).Determine if the resolve_library_id and query_docs tools are directly available in your environment. If not, default to the CLI fallback commands.
Use resolve-library-id to identify the correct library.
Selection Criteria:
Action:
Use query-docs with the resolved libraryId.
Handling Results:
Source: https://github.com/context7/react_dev/blob/main/learn.md
... (content) ...| Variable | Description | Required |
|---|---|---|
CONTEXT7_API_KEY | API key for authenticating with Context7. | Yes |
scripts/context7_cli.py: Unified CLI entry point for fallback access.references/troubleshooting.md: Solutions for common integration issues.de14120
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.