44 lines
1.4 KiB
Markdown
44 lines
1.4 KiB
Markdown
# Context7 Lookup Skill
|
|
|
|
Fetches up-to-date, version-specific library documentation via Context7 MCP server (68,000+ libraries). **Fully language-agnostic** - works with Node.js, Python, Java, Rust, Go, Ruby, PHP, C#, Swift, and more.
|
|
|
|
## Purpose
|
|
|
|
Prevent hallucinated APIs and outdated code examples by fetching current documentation from official sources.
|
|
|
|
## Auto-detects Versions From
|
|
|
|
Node.js • Python • Java • Rust • Ruby • Go • PHP • C#/.NET • Swift
|
|
|
|
(package.json, requirements.txt, Cargo.toml, pom.xml, Gemfile, go.mod, composer.json, *.csproj, Podfile)
|
|
|
|
## Integration
|
|
|
|
- **Planner**: Research phase (Step 4) for library investigation
|
|
- **Developer**: Pre-implementation (Step 2.5) to verify APIs
|
|
- **Reviewer**: Optional verification during code review
|
|
|
|
## How It Works
|
|
|
|
1. **Detect Version**: `grep_search` dependency files
|
|
2. **Resolve Library**: `mcp_context7_resolve-library-id`
|
|
3. **Fetch Docs**: `mcp_context7_query-docs`
|
|
4. **Apply**: Use verified API patterns
|
|
|
|
## Examples
|
|
|
|
**Python**: Django ORM • Flask routes • SQLAlchemy
|
|
**Rust**: Tokio async • Serde serialization
|
|
**Java**: Spring Boot • Hibernate
|
|
**JS/TS**: Next.js • React • Express
|
|
**Go**: Gin router • GORM
|
|
|
|
## Benefits
|
|
|
|
✅ Current, version-specific docs
|
|
✅ No hallucinated APIs
|
|
✅ Official examples
|
|
✅ Prevents "method not found" errors
|
|
|
|
See [SKILL.md](SKILL.md) for complete documentation.
|