Automated summary
Fetches up-to-date documentation for libraries and frameworks using the Context7 MCP server, enabling code generation and troubleshooting with current API information.
Strengths
- Automatically resolves library IDs from package names
- Provides version-specific, official documentation
- Maintains a local registry for cross-session consistency
- Works proactively without explicit user request
Limitations
- Requires Context7 plugin to be installed and enabled
- May fail for obscure, private, or renamed packages
- Relies on network access to the Context7 service
When writing code using any third-party library, framework, or SDK to ensure correctness against current docs.
For standard language built-ins, basic programming concepts, or when offline without cached docs.
Security analysis
SafeThe skill only reads and writes a local registry file and makes calls to a documentation lookup MCP server. It does not execute arbitrary commands, download external payloads, or manipulate sensitive data.
No concerns found
How this analysis is madeExamples
Use Context7 to fetch the latest React hooks documentation for the useEffect hook.Resolve the Context7 library ID for @tauri-apps/api and then fetch setup docs.I need to use the morgan HTTP logger with Express. Check the latest docs for morgan usage.name: context7 description: Fetch up-to-date library documentation using Context7 MCP. Use proactively whenever working with libraries, APIs, frameworks, or SDKs — for documentation lookup, code generation, setup, configuration, or troubleshooting. Also use when the user says "check docs", "look up API", "how does X work", or references any library/framework.
Context7 Documentation Skill
Fetch version-specific, up-to-date documentation for any library or framework using the Context7 MCP server. This skill is used proactively — you do not need to wait for the user to ask for docs.
When to use this skill
Use Context7 automatically whenever you:
- Need to write code using a library's API
- Are generating setup or configuration steps
- Need to verify correct function signatures, options, or patterns
- Are troubleshooting library-related errors
- Are unsure about current API conventions (your training data may be outdated)
- Are working with any dependency listed in the project's package manager files
Do NOT use for general programming concepts, language builtins, or topics unrelated to specific libraries.
Instructions
Step 1: Check the registry
Before calling Context7, read .claude/context7-registry.md to see if the library already has a known Context7 identifier.
If the library is listed with a context7_id, skip to Step 3.
Step 2: Resolve the library ID
If the library is not in the registry, use the Context7 MCP tool to resolve it:
Tool: mcp__context7__resolve-library-id
Input: { "libraryName": "<library-name>" }
Tips for resolving:
- Use the npm/PyPI/crates.io package name (e.g.,
react,express,tauri) - If the first attempt fails, try the full name (e.g.,
@tauri-apps/apiinstead oftauri) - For monorepo packages, try both the scope and the individual package
Once resolved, immediately register the library — see Step 5.
Step 3: Fetch documentation
Use the Context7 MCP tool to get documentation:
Tool: mcp__context7__get-library-docs
Input: {
"context7CompatibleLibraryID": "<context7_id from registry>",
"topic": "<specific topic you need>"
}
Topic tips:
- Be specific:
"useEffect hook"not"hooks" - Include the operation:
"file upload configuration"not"files" - For setup:
"getting started"or"installation"
Step 4: Apply the documentation
- Use the fetched docs to write correct, up-to-date code
- Prefer patterns shown in the official docs over patterns from training data
- If the docs show a different API than expected, trust the docs
Step 5: Update the registry
After resolving a new library or fetching docs, update .claude/context7-registry.md:
- Read the current registry file
- Add or update the entry with:
- Library name (package manager name)
- Context7 ID (from resolve step)
- Version currently in use (from package.json, Cargo.toml, etc.)
- Date last verified
- Write the updated registry
Registry entry format:
| library-name | /org/repo | 1.2.3 | 2025-01-15 |
Step 6: Version checking (periodic)
At the start of each session and whenever you read a package manager file (package.json, Cargo.toml, etc.):
- Read the registry at
.claude/context7-registry.md - Read the project's dependency file(s)
- Compare versions for all registered libraries
- For any mismatch:
- Warn the user: "Library X version changed: registry says 1.2.3, project uses 2.0.0"
- Auto-update the registry with the new version and today's date
- Re-fetch docs if the major version changed (API may have breaking changes)
Error handling
- Context7 MCP not available: Inform the user that the Context7 plugin needs to be enabled. They can enable it via
/install-plugin context7or by adding"context7@context7": truetoenabledPluginsin~/.claude/settings.json. - Library not found: Try alternative names (scoped, unscoped, org name). If still not found, note it in the registry as
NOT_FOUNDso we don't retry every time. - Rate limited or timeout: Fall back to your training data but note that the docs may be outdated.
Registry file location
The registry lives at: .claude/context7-registry.md
This file is committed to the repo so all team members share the same library mappings.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/fetch-documentation-with-context7-mcp-mm5t8bht/download' --output '.skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht/SKILL.md.part' && mv '.skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht/SKILL.md.part' '.skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht/SKILL.md' && test -s '.skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/context7' && cp -R '.skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht' '.claude/skills/context7'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht'openskills read 'fetch-documentation-with-context7-mcp-mm5t8bht'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/fetch-documentation-with-context7-mcp-mm5t8bht/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.