Agent skill
context7-mcp
Retrieve official library documentation and API references. Use when the user asks for "docs", "API signature", "usage examples", or "how to use" a specific package.
Install this agent skill to your Project
npx add-skill https://github.com/lollipopkit/cc-skills/tree/main/context7-mcp
SKILL.md
Use Context7 MCP for library APIs
Instructions
- When asked about a library/package API, first resolve it: call
resolve-library-idwith the package name. - If a valid ID is returned, fetch docs with
get-library-docs(modecodefor API/reference;infofor conceptual) and a topic if relevant (e.g., hooks, routing). - Cite snippets from retrieved docs; avoid guessing. Prefer latest page unless user specifies version.
- If multiple matches, pick the closest and mention ambiguity briefly before proceeding.
- If no match, ask for clarification or alternate names instead of inventing APIs.
- Do not rely on memory for API shapes when Context7 docs are available; re-fetch as needed for accuracy.
Example prompts
- "查下某个 npm 包的 hook 签名,用 context7 搜"
- "给我 next.js app router 的官方用法,先用 context7 mcp"
- "mongodb driver 的插入示例,走 context7 的文档"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gh-cli
Interact with GitHub repositories, PRs, and issues using the `gh` CLI. Use when the user asks to "list PRs", "check out PR", "view issue", or "create release".
use-zfeats
Plan and execute complex features using markdown checklists. Use when the user asks to "plan a feature", "create a checklist", or "break down a task".
use-fllib
Use fl_lib stores, widgets, utils, and extensions in Flutter apps. Use when requests mention fl_lib APIs or integration.
supabase-rest
Inspect Supabase database schemas and data. Use when the user asks to "check table", "list columns", or "query data" in Supabase. READ-ONLY.
flutter-std
Build and debug Flutter/Dart apps with Riverpod (codegen), Freezed, and GoRouter. Use when implementing Flutter features, running apps, hot reload/restart, or debugging UI.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?