context7-cli

Fetch library documentation and manage AI coding skills with the ctx7 CLI.

Updated Aug 20, 2026
One-click install
npx skills add https://github.com/bittlinkm/claude-setup --skill context7-cli-bittlinkm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7-cli
Source: https://github.com/bittlinkm/claude-setup/tree/main/skills/context7-cli
Command: npx skills add https://github.com/bittlinkm/claude-setup --skill context7-cli-bittlinkm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ctx7, and includes references (resource) components.

What problem does it solve? AI coding agents often rely on outdated training data when writing code against libraries, leading to wrong API signatures and deprecated patterns. This Skill uses the ctx7 CLI to pull current documentation for any library, manage AI coding skills from the Context7 registry, and configure Context7 MCP for your editor. ## Core Features & Use Cases - Documentation lookup: Resolve a library name to its Context7 ID with ctx7 library, then fetch up-to-date docs and code examples with ctx7 docs. - Skills management: Install, search, suggest, list, remove, and AI-generate coding skills from GitHub repositories or the Context7 registry. - Editor setup: Configure Context7 MCP or CLI-based skills for Claude Code, Cursor, OpenCode, and other agents with ctx7 setup. - Use Case: While writing Next.js middleware, ask the agent to verify the current API — it runs ctx7 library nextjs to resolve the ID, then ctx7 docs /vercel/next.js to return current code examples instead of guessing from stale training data. ## Quick Start Ask the agent to fetch the latest documentation for a library you are using, for example by saying "use ctx7 to get current React docs on useEffect cleanup".

Frequently Asked Questions about context7-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch up-to-date library documentation with ctx7?

Run ctx7 library with the library name and a query to resolve its Context7 ID, then run ctx7 docs with that ID and your question. Library IDs use the /org/project format, such as /facebook/react.

How do I install AI coding skills from a GitHub repository?

Use ctx7 skills install followed by the repository in /owner/repo format, optionally with a skill name. Add flags like --claude, --cursor, or --universal to target a specific agent's skills directory.

Does ctx7 require authentication to fetch documentation?

No, documentation commands work without login. Authentication via ctx7 login or the CONTEXT7_API_KEY environment variable unlocks higher rate limits, and skills generate always requires login.

Why does ctx7 docs fail with a library name like react?

ctx7 docs requires a resolved Context7 library ID in /org/project format, not a plain package name. Run ctx7 library first to get the exact ID, and include the leading slash.

Which editors and agents does ctx7 setup support?

ctx7 setup configures Context7 for Claude Code, Cursor, and OpenCode in MCP mode, and additionally supports universal and Antigravity skill directories in CLI plus Skills mode. It can target global or project-level configuration.