Context7 Usage
This skill should be used when the user asks to "check documentation", "latest API", "library docs", "context7", or needs up-to-date library documentation. Provides Context7 MCP usage patterns.
npx skills add majiayu000/claude-skill-registry --skill context7-usage-motoki317-dotfiles-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Context7 MCP Documentation Retrieval ## Tools ### resolve-library-id Resolve package name to Context7-compatible library ID. **Must call before query-docs** unless ID is known. ### query-docs Fetch documentation with parameters: - `libraryId` - From resolve-library-id (e.g., `/facebook/react`) - `query` - Specific question or topic ## Common Library IDs - React: `/facebook/react` - Next.js: `/vercel/next.js` - TypeScript: `/microsoft/typescript` - NixOS: `/nixos/nixpkgs` - Home Manager: `/nix-community/home-manager` ## Usage Patterns ### Specific Feature Lookup ``` query-docs libraryId="/facebook/react" query="useState hook usage" ``` ### General Overview ``` query-docs libraryId="/vercel/next.js" query="getting started app router" ``` ### Verify Codebase Usage 1. Use Serena to find current library usage 2. Query Context7 for latest documentation 3. Compare usage with documented best practices ## Critical Rules - Always resolve library ID before fetching documentation - Prefer libraries with trust score 7+ (quality indicator) - Use specific queries to get relevant results - Combine with Serena for codebase verification workflows ## Anti-Patterns to Avoid - Skipping ID resolution
- Tools
- resolve-library-id
- query-docs
- Common Library IDs
- Usage Patterns
- Specific Feature Lookup
- General Overview
- Verify Codebase Usage
- Critical Rules
- Anti-Patterns to Avoid
What does the Context7 Usage skill do?
This skill should be used when the user asks to "check documentation", "latest API", "library docs", "context7", or needs up-to-date library documentation. Provides Context7 MCP usage patterns.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill context7-usage-motoki317-dotfiles-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
