Context7 Cli
Manage Context7 via CLI - search libraries, get documentation context. Use when user mentions 'context7', 'library docs', 'documentation context', or wants t...
Melvyn
@melvynx
Install
$ openclaw skills install @melvynx/context7-clicontext7-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
- Search for the library:
context7-cli libs --name react --query "state management" --json - Use the
idfrom results to get docs:context7-cli context get --library /facebook/react --query "useState" --json
Global Flags
All commands support: --json, --format <text|json|csv|yaml>, --verbose, --no-color, --no-header
Top skills in this category
self-improving agent
@pskoettCaptures and maintains learnings, errors, and corrections. Use when a command fails, the user corrects an assumption, a capability is missing, knowledge is outdated, or a better approach is found. Review relevant saved guidance before major tasks, reuse, and promotion; revalidate it according to wha
Self-Improving + Proactive Agent
@ivangdavilaSelf-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...
ontology
@oswalpalashTyped knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linkin...
Humanizer
@biostartechnologyRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Obsidian
@steipeteWork with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.