plugins/dev-tools/skills-codex/context7-cli/SKILL.md
Current library documentation via the ctx7 CLI. Use when the user mentions "ctx7" or "context7", asks for API docs, syntax, code examples, versioned library behavior, or needs docs lookup without provider-specific tools.
npx skillsauth add alexei-led/claude-code-config context7-cliInstall 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.
Use ctx7 for narrow library/framework/API documentation. This skill is the
portable docs lookup path for Claude, Codex, Gemini, Pi, and AGENTS.md-style
agents.
Use this skill for:
Do not use this skill as the primary workflow for:
Route broad research to the repo's web research skill. Use docs lookup later for chosen-library syntax.
You MUST follow these steps and SHOW the exact ctx7 commands you ran in the
response. Claims like "I used Context7" without an emitted command do not
satisfy this skill.
Identify the library and version from project files (package.json,
go.mod, pyproject.toml, requirements.txt, lockfiles). State the
identified version, or say version is unknown.
Build a query from the user's real topic. Do not use one-word placeholders.
If the user provided /org/project or /org/project/version, skip step 4
and call ctx7 docs directly with that ID.
Otherwise resolve the library ID first by running and showing:
ctx7 library <name> "<specific query>"
Select the best library ID from the results and explain why.
Fetch docs by running and showing:
ctx7 docs /org/project "<specific query>"
Ground the answer in the returned docs. Quote only the relevant parts.
If ctx7 is missing on PATH, retry with the npx (or bunx) fallback
and say so:
npx ctx7@latest library <name> "<specific query>"
npx ctx7@latest docs /org/project "<specific query>"
# or, if you use Bun:
bunx ctx7@latest library <name> "<specific query>"
bunx ctx7@latest docs /org/project "<specific query>"
If Context7 has no useful match, use available web tools such as
web_search or web_answer for official docs, release notes, or focused
factual fallback. Say that a fallback was used.
ctx7 library more than 3 times for one user question.ctx7 docs more than 3 times for one user question.ctx7 docs --json when structured output will reduce ambiguity.For docs lookup results, return:
tools
Use when planning, executing, checkpointing, finishing, or inspecting lightweight spec-driven work. Runs one task at a time using `.spec/` markdown files and the bundled `specctl` helper. NOT for broad product discovery beyond a short requirement interview. NOT for generic implementation planning that does not read or write `.spec/` files.
development
Simple web development with HTML, CSS, JS, and HTMX. Use when working with .html, .css, or .htmx files, web templates, stylesheets, or vanilla JS scripts. NOT for React/Vue/Angular (use writing-typescript) or Node.js backends.
tools
Idiomatic TypeScript development. Use when writing TypeScript code, Node.js services, React apps, or TypeScript design advice. Emphasizes strict typing, boundary validation, composition, fast feedback, behavior tests, and project-configured tooling. NOT for Go, Python, Rust, plain HTML/CSS/JS, or server-rendered templates (use writing-web).
tools
Idiomatic shell development for POSIX sh, Bash, Zsh, Fish, hooks, CI shell steps, and scriptable CLI glue. Use when writing or changing `.sh`, `.bash`, `.zsh`, `.fish`, `.bats`, shell functions, shell pipelines, CI `run:` shell bodies, or command-runner recipes. Emphasizes portability, quoting, safe filesystem/process handling, non-TUI CLI tools, ShellCheck, shfmt, Bats, and ShellSpec. NOT for Python, Rust, TypeScript, Go, web code, or GitHub Actions workflow/job/permissions semantics; use operating-infra.