AgentSkillsCN

context7

通过 Context7 API 搜索并查询任意编程库的最新文档。当您需要获取各库与框架的最新文档、代码示例或 API 参考时,此技能将助您一臂之力。

SKILL.md
--- frontmatter
name: context7
description: Search and query up-to-date documentation for any programming library via Context7 API. Use when you need current docs, code examples, or API references for libraries and frameworks.

Context7

Search for libraries and query their documentation via the Context7 API.

Search Libraries

bash
{baseDir}/search.js "library name" "what you need help with"

Example:

bash
{baseDir}/search.js "react" "hooks for state management"

Returns matching libraries with Context7-compatible IDs for use with the docs tool.

Query Documentation

bash
{baseDir}/docs.js "/org/project" "your question"

Example:

bash
{baseDir}/docs.js "/websites/react_dev" "useEffect cleanup"

Use the library ID from search results. Returns relevant documentation and code examples.