context7-cli

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

Updated Oct 2, 2025
One-click install
npx skills add https://github.com/YuriiYInno/Innogram --skill context7-cli-yuriiyinno
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context7-cli
Source: https://github.com/YuriiYInno/Innogram/tree/main/.codex/skills/context7-cli
Command: npx skills add https://github.com/YuriiYInno/Innogram --skill context7-cli-yuriiyinno

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 answering questions about libraries and frameworks. This Skill connects the agent to Context7 through the ctx7 CLI, so it can resolve library IDs, fetch up-to-date documentation and code examples, and manage AI coding skills from the Context7 registry. ## Core Features & Use Cases - Documentation retrieval: Resolve any library name to a Context7 ID with ctx7 library, then query current docs and code snippets with ctx7 docs, including version-specific IDs like /vercel/next.js/v14.3.0-canary.87. - Skills management: Install, search, suggest, list, remove, and AI-generate coding skills from GitHub repositories or the Context7 registry, targeting Claude Code, Cursor, or universal skill directories. - MCP setup: Configure Context7 MCP for Claude Code, Cursor, or OpenCode with a single ctx7 setup command, with API key or OAuth authentication options. - Use Case: While writing Next.js middleware, ask the agent how to add authentication to the app router; it resolves /vercel/next.js and returns current official docs instead of stale training-data answers. ## Quick Start Ask the agent to fetch the latest documentation for a library, for example: use ctx7 to show me how to clean up useEffect with async operations in React.

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 a Context7 ID, then run ctx7 docs with that ID and your question. The two-step workflow returns current code snippets and prose explanations.

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

Use ctx7 skills install with the 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.

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

ctx7 docs requires a resolved Context7 library ID with a leading slash, such as /facebook/react. Run ctx7 library first to obtain the exact ID before querying documentation.

Does ctx7 require authentication to fetch documentation?▼

Documentation commands work without login, but rate limits are lower. Run ctx7 login for OAuth or set the CONTEXT7_API_KEY environment variable to unlock higher limits; skills generate always requires login.

Can I get documentation for a specific library version?▼

Yes, append the version to the library ID in the format /org/project/version, such as /vercel/next.js/v14.3.0-canary.87. Available versions are listed in the ctx7 library output.

What are the limits of ctx7 skills generate?▼

Skill generation requires login and is capped at 6 generations per week for free accounts and 10 for Pro accounts. The interactive flow asks clarifying questions before producing the skill.