When the user asks about libraries, frameworks, or needs code examples, use Context7 to fetch current documentation instead of relying on training data.
When to Use This Skill
Activate this skill when the user:
- Asks setup or configuration questions ("How do I configure Next.js middleware?")
- Requests code involving libraries ("Write a Prisma query for...")
- Needs API references ("What methods are available in the Backstage CatalogClient or CatalogApi?")
- Mentions specific frameworks (React, Angular, Express, Tailwind, etc.)
What this skill covers
- Documentation — Fetch current docs for any library. Use when writing code, verifying API signatures, or when training data may be outdated.
Quick Reference
ctx7 library <name> <query> # Step 1: resolve library ID
ctx7 docs <libraryId> <query> # Step 2: fetch docs
Common Mistakes
- Library IDs require a / prefix — /facebook/react not facebook/react
- Always run ctx7 library first — ctx7 docs react "hooks" will fail without a valid ID