← 返回 Skills 市场
melvynx

Context7 Cli

作者 Melvyn · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
304
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install context7-cli
功能描述
Manage Context7 via CLI - search libraries, get documentation context. Use when user mentions 'context7', 'library docs', 'documentation context', or wants t...
使用说明 (SKILL.md)

context7-cli

Setup

If context7-cli is not installed, install it from GitHub:

npx api2cli install Melvynx/context7-cli

If context7-cli is not found, install and build it:

bun --version || curl -fsSL https://bun.sh/install | bash
npx api2cli bundle context7
npx api2cli link context7

api2cli link adds ~/.local/bin to PATH automatically. The CLI is available in the next command.

Always use --json flag when calling commands programmatically.

Authentication

context7-cli auth set "your-ctx7sk-api-key"
context7-cli auth test

Get your API key at https://context7.com/dashboard (keys start with ctx7sk).

Resources

libs

Command Description
context7-cli libs --name react --query "hooks" --json Search for libraries by name

context

Command Description
context7-cli context get --library /facebook/react --query "useEffect" --json Get documentation snippets (JSON)
context7-cli context get --library /vercel/next.js --query "app router" --type txt --raw Get docs as raw text
context7-cli context get --library /vercel/next.js/v15.1.8 --query "middleware" --json Pin to specific version

Typical workflow

  1. Search for the library: context7-cli libs --name react --query "state management" --json
  2. Use the id from results to get docs: context7-cli context get --library /facebook/react --query "useState" --json

Global Flags

All commands support: --json, --format \x3Ctext|json|csv|yaml>, --verbose, --no-color, --no-header

安全使用建议
This skill appears to be what it says: a wrapper around the Context7 CLI. Before installing, verify you trust the Context7 project and the GitHub repo named (Melvynx/context7-cli). Be cautious about running 'curl ... | bash' (installs bun) and about npx pulling packages — these execute remote code on your machine. Prefer checking the repo contents manually (review source or releases), run installs in a sandbox or VM if unsure, and create/revoke API keys from your Context7 dashboard if you need to rotate access. If you prefer, ask the skill author for a signed release or a package manager distribution instead of running remote install scripts.
功能分析
Type: OpenClaw Skill Name: context7-cli Version: 0.1.0 The SKILL.md file contains instructions for the agent to perform high-risk operations, including executing a remote script via 'curl | bash' to install Bun and installing a third-party CLI tool directly from a GitHub repository ('Melvynx/context7-cli') using 'npx api2cli'. While these actions are consistent with the stated purpose of setting up a documentation tool, the use of unverified remote execution and third-party installers represents a significant security risk. No evidence of intentional malice or data exfiltration was found.
能力评估
Purpose & Capability
The skill claims to manage Context7 docs via a CLI and the SKILL.md only instructs installing/using a context7-cli and setting a Context7 API key (ctx7sk...). Requested capabilities (API key, CLI install) match the stated purpose.
Instruction Scope
Runtime instructions stay on-topic (search libs, get docs, use --json). They do not instruct reading unrelated files or exfiltrating data. Note: the README includes installation steps (curl | bash and npx api2cli) which run networked installers — that alters system state and is outside pure runtime doc lookups, but is still within installing a CLI.
Install Mechanism
There is no packaged install in the registry; the SKILL.md tells users to run 'npx api2cli install Melvynx/context7-cli' or to install bun via 'curl -fsSL https://bun.sh/install | bash' and then run npx bundle/link. Piping a script from the network to bash and pulling packages with npx are common but higher-risk supply-chain actions — verify the source and repository before running.
Credentials
The skill does not declare or require environment variables or unrelated credentials. It expects the user to obtain a Context7 API key and set it in the CLI, which is appropriate for this purpose.
Persistence & Privilege
always is false and there is no install spec that forces persistent system-wide changes beyond installing a CLI into the user's environment. The skill does not request special privileges or modify other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install context7-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /context7-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of context7-cli. - Introduces a CLI tool to search libraries and retrieve up-to-date documentation snippets from Context7. - Includes authentication setup with API key management. - Supports searching for libraries and querying documentation by library, version, and search term. - Provides output format options including JSON, text, CSV, and YAML. - Setup instructions and typical workflow examples included.
元数据
Slug context7-cli
版本 0.1.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Context7 Cli 是什么?

Manage Context7 via CLI - search libraries, get documentation context. Use when user mentions 'context7', 'library docs', 'documentation context', or wants t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 304 次。

如何安装 Context7 Cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install context7-cli」即可一键安装,无需额外配置。

Context7 Cli 是免费的吗?

是的,Context7 Cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Context7 Cli 支持哪些平台?

Context7 Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Context7 Cli?

由 Melvyn(@melvynx)开发并维护,当前版本 v0.1.0。

💬 留言讨论