context7
Installation
SKILL.md
Context7
Workflow
- Identify the library/framework involved (and the language/ecosystem).
- Determine the installed version from the repo when possible.
- Resolve the Context7 library ID.
- Query Context7 docs for the user's exact question (narrow, API-surface specific).
- Answer using doc-backed facts and note any version-specific caveats.
Version Detection (Repo-Local)
- JavaScript/Node: check
package.json,package-lock.json,pnpm-lock.yaml,yarn.lock. - Python: check
pyproject.toml,requirements*.txt,poetry.lock,Pipfile.lock. - Go: check
go.mod. - Rust: check
Cargo.toml/Cargo.lock. - Ruby: check
Gemfile.lock. - .NET: check
*.csproj/packages.lock.json.
If the version cannot be determined, assume the user means the latest docs and phrase the answer as such.