context7
Fetch up-to-date, version-specific library documentation and code examples from Context7. Use this skill whenever the user asks about a specific programming library, framework, or API, or when writing code that depends on a library. Replaces stale training-data knowledge with live docs.
- License 许可
- MIT
- 最近更新
- 2026-09-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- context7
- metadata
- { "author": "skeletorjs", "category": "Community" }
- description
- Fetch up-to-date, version-specific library documentation and code examples from Context7. Use this skill whenever the user asks about a specific programming library, framework, or API, or when writing code that depends on a library. Replaces stale training-data knowledge with live docs.
- compatibility
- Created for Zo Computer
02 资源文件 2
- 参考文档DISPLAY.json65 B
- 脚本scripts/context7.ts7.7 KB
03 SKILL.md 正文
Context7 -- Live Library Documentation
Pull current docs and code examples for any programming library directly into context. No more hallucinated APIs or outdated patterns.
When to Use
- The user asks how to use a library, framework, or SDK (e.g. "how do I do X with Hono?")
- The user asks about a specific API, method, or configuration for a library
- You are writing or reviewing code that depends on an external library and need accurate API details
- The user says "use context7" explicitly
- The user asks about setup, installation, or configuration of a library
How to Use
The script is at file Skills/context7/scripts/context7.ts. Run with bun.
Commands
Search for a library:
bun Skills/context7/scripts/context7.ts search "<library-name>"
Returns matching libraries with their Context7 IDs, descriptions, snippet counts, and quality scores. Pick the best match by name relevance, reputation, and benchmark score.
Fetch docs for a specific query:
bun Skills/context7/scripts/context7.ts docs <library-id> "<query>"
Returns documentation and code examples relevant to the query. Use the library ID from a search result.
One-shot lookup (search + fetch docs):
bun Skills/context7/scripts/context7.ts lookup "<library-name>" "<query>" --tokens 10000
Resolves the library and fetches relevant docs in one step. This is the most common workflow.
Options
--tokens <n>-- Max tokens of documentation to return (default: 10000). Use lower values (3000-5000) for focused questions, higher (10000-15000) for broad exploration.--api-key <key>-- Override the CONTEXT7_API_KEY environment variable.
Workflow
- User asks about a library -> run
lookupwith the library name and their question - Read the returned docs and code examples
- Use them to give an accurate, up-to-date answer or write correct code
- If
lookuppicks the wrong library, usesearchfirst to find the right ID, thendocs
Tips
- For well-known libraries,
lookupusually picks the right one automatically - If multiple versions exist, mention the version in your query:
lookup "next.js" "app router next.js 14" - Prefer library IDs from official sources (higher reputation/benchmark scores)
- Cache results mentally within a conversation; don't re-fetch the same docs repeatedly
04 同仓库更多 Skills
zopack
Export and import zo.space route setups as shareable .zopack.md files. Use when the user wants to package their zo.space routes for sharing, or when they receive a .zopack.md file to deploy. Triggers on "export my zo.space", "create a zopack", "import this zopack", or any mention of .zopack.md files.
zoho-mail-inbox
Full inbox management for Zoho Mail (info@justlegalsolutions.org) — list unread, mark all as read, delete by sender/keyword, search, send from aliases, list folders. Fully self-contained — zero setup needed.
weekly-meeting-reminder
Get an email every Sunday evening listing your meetings for the coming week.
Let Zo use your X (Twitter) account
zo-tools
Internal process tools for Zo and Hermes — local search, document processing, OCR, and embeddings. All services run on localhost, zero HTTP slots consumed.
ssh-setup
Sets up secure remote access to your Zo Computer so you can connect from anywhere