Fetch the latest, docs-grounded API details and best practices for a library/framework using Context7 MCP tools `resolve-library-id` and `get-library-docs`. Use when a user asks for “最新用法/最新寫法/最佳實務/latest usage/current best practice/latest API” of a package, or asks how to implement a feature with a library and wants the newest docs-based guidance.
Scanned 2/12/2026
Install via CLI
openskills install majiayu000/claude-skill-registry---
name: context7-latest-usage
description: Fetch the latest, docs-grounded API details and best practices for a library/framework using Context7 MCP tools `resolve-library-id` and `get-library-docs`. Use when a user asks for “最新用法/最新寫法/最佳實務/latest usage/current best practice/latest API” of a package, or asks how to implement a feature with a library and wants the newest docs-based guidance.
---
# Context7 Latest Usage
## Workflow
### 1) Clarify the target library and environment
- Extract the library/framework name and ecosystem (npm/pip/cargo/go/etc).
- Extract language + runtime (e.g., Node.js 20, Python 3.12) and any required version constraints.
- Extract the user’s intent (which feature/task they want to build).
- If any of these are missing or ambiguous, ask a brief clarification question before calling Context7.
### 2) Resolve the library identifier (Context7)
- Call Context7 MCP tool `resolve-library-id` with the library name (and ecosystem if supported).
- If multiple candidates are plausible, pick the best match and confirm with the user.
### 3) Fetch the newest relevant docs (Context7)
- Call Context7 MCP tool `get-library-docs` for the resolved id, scoped to the user’s task.
- Prefer latest stable docs; include migration notes if the user is upgrading.
- If the docs are large, fetch only the sections needed (install, quickstart, the specific API symbols, config, and pitfalls).
### 4) Produce the response in a fixed format
Return exactly:
1. **Up-to-date API / best practices**: concise bullet summary grounded in the fetched docs
2. **Copy-paste snippet**: tailored to the user’s language/runtime/version, includes minimal setup
3. **Sources**: Context7-provided citations/links for every important claim (especially API signatures, defaults, and behavior)
### 5) Failure handling (no guessing)
- If Context7 MCP tools are unavailable or any call fails, say so clearly and ask the user to enable Context7 MCP or paste/link the docs.
- Do not provide “latest API” claims without sources from Context7 output.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.