plugins/code-swiss-knife/skills/context7-docs/SKILL.md
Fetches authoritative, current, version-specific documentation and official code examples via Context7 for a named external library, framework, SDK, CLI, or cloud product. Use when the user needs exact API behavior, setup, configuration, integration, migration, or version-specific guidance rather than general web research or real-world repository patterns.
npx skillsauth add shillem/cc-marketplace context7-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Two-step process: resolve the library name to an ID, then query docs with that ID.
# Step 1: Resolve library ID
ctx7 library <name> <query>
# Step 2: Query documentation
ctx7 docs <libraryId> <query>
# Example flow
ctx7 library react "How to clean up useEffect with async operations"
ctx7 docs /facebook/react "How to clean up useEffect with async operations"
You MUST call ctx7 library first to obtain a valid library ID UNLESS the user explicitly provides one. Valid library IDs use a leading /, typically /org/project or /org/project/version.
Do not run these commands more than 3 times per question. If you cannot find what you need after 3 attempts, use the best result you have.
Never include sensitive information (API keys, passwords, credentials, personal data, proprietary code) in queries.
Resolves a package/product name to a Context7-compatible library ID and returns matching libraries.
Always pass a query argument — it is required and directly affects result ranking. Use the user's intent to form the query, which helps disambiguate when multiple libraries share a similar name.
Use Name and Description to disambiguate similar matches; if multiple plausible results remain, ask for clarification rather than guessing.
If the user mentions a specific version, use the closest matching version-specific library ID from the ctx7 library output.
# General (latest indexed)
ctx7 docs /vercel/next.js "How to set up app router"
# Version-specific
ctx7 docs /vercel/next.js/v14.3.0-canary.87 "How to set up app router"
Retrieves up-to-date documentation and code examples for the resolved library.
Use a specific, intent-rich query; prefer the user's full question over vague keywords.
| Quality | Example |
| ------- | ---------------------------------------------------------- |
| Good | "How to set up authentication with JWT in Express.js" |
| Bad | "auth" |
| Good | "React useEffect cleanup function with async operations" |
| Bad | "hooks" |
Cite the library ID and version you used so the user can verify.
Treat this skill as the primary source for official behavior, but not as proof of real-world adoption or common practice. If the user asks for both correctness and practical usage, combine documentation evidence with a code search source when available.
If the exact documentation you need is unavailable or ambiguous, state the limitation clearly and use the closest authoritative result rather than guessing.
If a command fails with a quota error ("Monthly quota reached" or "quota exceeded"):
ctx7 logintools
Create commits and pull requests for current git work. Use when the user wants to commit changes, open or refresh a pull request.
development
Review pull requests, diffs, and code changes across behavior, contracts, tests, maintainability, and documentation. Use when the user asks for review of a PR, patch, diff, commit, or code change.
content-media
Download videos, audio, and transcripts from YouTube and 1000+ sites with yt-dlp. Use when the user mentions "yt-dlp", "youtube-dl", wants to download a video, rip audio from a video, or extract a transcript from a URL.
tools
Manage stickies as markdown files — create new, read, list, or delete. Use when the user mentions "sticky", "stickies", or wants to take a quick note or save a reminder.