context7
Installation
SKILL.md
Context7
Use this skill to fetch current documentation through the Context7 CLI.
Workflow
- Resolve the library name to a Context7 library ID with
bunx ctx7 library. - Pick the best match:
- Prefer official docs and higher benchmark scores.
- If the top result looks wrong, inspect the next few entries before choosing.
- Use
--jsonwhen you want to filter results withjq.
- Fetch focused documentation with
bunx ctx7 docs <query>. - Answer from the retrieved docs, not from stale memory.
Commands
Search for a library
Use readable output when browsing candidates: