← Back to Skills Marketplace
melvynx

Context7 Cli

by Melvyn · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
304
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install context7-cli
Description
Manage Context7 via CLI - search libraries, get documentation context. Use when user mentions 'context7', 'library docs', 'documentation context', or wants t...
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install context7-cli
  3. After installation, invoke the skill by name or use /context7-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug context7-cli
Version 0.1.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Context7 Cli?

Manage Context7 via CLI - search libraries, get documentation context. Use when user mentions 'context7', 'library docs', 'documentation context', or wants t... It is an AI Agent Skill for Claude Code / OpenClaw, with 304 downloads so far.

How do I install Context7 Cli?

Run "/install context7-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Context7 Cli free?

Yes, Context7 Cli is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Context7 Cli support?

Context7 Cli is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Context7 Cli?

It is built and maintained by Melvyn (@melvynx); the current version is v0.1.0.

💬 Comments