plugins/dev-tools/skills-pi/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
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, or command-runner recipes. Emphasizes portability, quoting, safe filesystem/process handling, non-TUI CLI tools, ShellCheck, shfmt, Bats, and ShellSpec. NOT for Python, TypeScript, Go, web code, or infrastructure operations.
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.
testing
Author, inspect, troubleshoot, and review infrastructure across IaC, Kubernetes, cloud resources, containers, CI/CD, and Linux hosts. Use when changing Terraform/OpenTofu, Kubernetes, Helm, Kustomize, Dockerfiles, GitHub Actions, AWS, GCP, Cloud Run, BigQuery, IAM, logs, instances, or service health. NOT for deploy/apply/rollback workflows (see deploying-infra). NOT for shell scripts or generic command pipelines (see writing-shell).
development
Configure safe git workflow hygiene: pre-commit/pre-push hooks, Gitleaks secret scanning, .gitignore rules, local git config, and guardrails. Use when setting up git hooks, gitleaks/git leaks, staged pre-commit checks, pre-push validation, core.hooksPath, .gitignore, or git config best practices. NOT for creating commits (use committing-code), cleaning branches/worktrees (use cleanup-git), or creating worktrees (use using-git-worktrees).