Access up-to-date, version-specific documentation and code examples from Context7. Use this skill to verify library and framework details.
67
58%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
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.DO NOT attempt to read or set the environment variable CONTEXT7_API_KEY. It is the user's responsibility to prepare this API key in their environment. Only check for its existence:
[ -n "$CONTEXT7_API_KEY" ] && echo "CONTEXT7_API_KEY is set" || echo "CONTEXT7_API_KEY not set"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 {path_to_this_skill}/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 {path_to_this_skill}/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.00eed16
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.