context7-cli

Fetches current library documentation and manages AI coding skills via the ctx7 CLI.

1|Updated Oct 11, 2025
One-click install
npx skills add https://github.com/ibytechaos/claude --skill context7-cli-ibytechaos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7-cli
Source: https://github.com/ibytechaos/claude/tree/main/plugins/context7/skills/context7-cli
Command: npx skills add https://github.com/ibytechaos/claude --skill context7-cli-ibytechaos

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? AI coding agents rely on training data that quickly becomes outdated, leading to wrong API signatures and deprecated patterns. This Skill connects your agent to Context7 so it can pull current documentation for any library, install curated coding skills, 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 the Context7 registry for Claude Code, Cursor, and other agents. - MCP Setup: Configure Context7 MCP or CLI+Skills mode for Claude Code, Cursor, and OpenCode with a single ctx7 setup command. - Use Case: While writing Next.js middleware, ask the agent to verify the current App Router API; it resolves /vercel/next.js and returns fresh docs instead of stale training-data guesses. ## Quick Start Ask the agent to fetch the latest React documentation about cleaning up useEffect with async operations using ctx7.

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 the Context7 registry?

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

Does ctx7 require authentication to query documentation?

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

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

ctx7 docs requires an exact Context7 library ID with a leading slash, such as /facebook/react, not a plain package name. Always run ctx7 library first to resolve the correct ID.

Which AI coding agents does ctx7 setup support?

ctx7 setup supports Claude Code, Cursor, and OpenCode in MCP mode, plus universal and Antigravity targets in CLI + Skills mode. Use flags like --claude or --cursor to target a specific agent.