Agent skill
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.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/context7-usage-motoki317-dotfiles-2
SKILL.md
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
- Use Serena to find current library usage
- Query Context7 for latest documentation
- 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 (causes lookup failures)
- Using incorrect/outdated library names
- Ignoring trust scores (low scores = unreliable docs)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?