context7listed
Install: claude install-skill mishahanin/heading-os
# Context7 - Library Documentation
Fetch live, version-specific documentation for any library or framework via the Context7 REST API. Returns authoritative docs formatted for LLM consumption.
> **Naming note.** A user-level Claude Code plugin also exposes a skill called `context7:context7` (namespaced form). When the user types `/context7` without the namespace, the local skill in this file wins per Claude Code's bare-name lookup precedence (local > plugin). To force the plugin variant, type the namespaced form explicitly. Both skills do similar things; the local one uses the workspace's own CONTEXT7_API_KEY and `scripts/context7.py`, the plugin uses its own MCP-style backend.
## Prerequisites
`CONTEXT7_API_KEY` should be set in the workspace `.env` file. The script auto-loads it via `python-dotenv`.
```
# In the workspace root .env file:
CONTEXT7_API_KEY=ctx7sk-your-key-here
```
Get a free key at: https://context7.com/dashboard
The API works without a key but with lower rate limits.
## Workflow
1. Parse the user input: first word is the library name, remainder is the query. If only a library name is given, use "documentation" as the default query.
2. Run the script:
```bash
python scripts/context7.py "<library_name>" "<query>"
```
Examples:
- `/context7 react hooks` -> `python scripts/context7.py "react" "hooks"`
- `/context7 nextjs app router middleware` -> `python scripts/context7.py "nextjs" "app router middleware"`
- `/context7 python-pptx` -> `python scripts