context7
SKILL.md
Context7 (Library Documentation)
Use Context7 to query up-to-date documentation for any library before implementing code.
Tools
| Tool | Purpose |
|---|---|
context7_resolve_library_id |
Find the Context7 ID for a library |
context7_get_library_docs |
Query documentation for a specific topic |
Workflow
Always query docs before implementing:
1. resolve_library_id({ libraryName: "effect typescript" })
→ Returns: /effect-ts/effect
2. get_library_docs({
context7CompatibleLibraryID: "/effect-ts/effect",
topic: "schema validation"
})
→ Returns: Up-to-date documentation
Common Library IDs
| Library | Context7 ID |
|---|---|
| Effect | /effect-ts/effect |
| Better Auth | /better-auth/better-auth |
| Next.js | /vercel/next.js |
| React | /facebook/react |
| TanStack Query | /tanstack/query |
| Drizzle ORM | /drizzle-team/drizzle-orm |
| Elysia | elysiajs |
| Axum | /tokio-rs/axum |
Best Practices
- Always resolve first - Don't guess library IDs
- Be specific with topics - "schema validation" not just "validation"
- Query before coding - Get current patterns, not outdated knowledge
- Check multiple topics - Query auth, then session, then middleware separately
Example Queries
# React patterns
get_library_docs({ libraryId: "/facebook/react", topic: "useEffect cleanup" })
# Authentication
get_library_docs({ libraryId: "/better-auth/better-auth", topic: "next.js integration" })
# Type-safe APIs
get_library_docs({ libraryId: "/effect-ts/effect", topic: "tagged errors" })
Weekly Installs
4
Repository
5dlabs/ctoFirst Seen
Jan 21, 2026
Installed on
claude-code3
opencode2
codex2
gemini-cli2
windsurf1
trae1