context7-cli
Context7 CLI
This skill provides guidance for using the Context7 CLI (ctx7) to manage AI coding skills across different AI assistants.
Installation
The Context7 CLI can be installed globally or run directly with npx:
# Install globally
npm install -g ctx7
# Or run directly (no installation needed)
npx ctx7
Authentication
Before using authenticated features like skill generation, you need to log in:
# Log in (opens browser for OAuth)
ctx7 login
# Check login status
ctx7 whoami
# Log out
ctx7 logout
Core Workflows
Searching for Skills
Search the Context7 registry for skills by topic or technology:
# Search for skills
ctx7 skills search pdf
ctx7 skills search typescript
ctx7 skills search "react testing"
Installing Skills
Install skills from the registry to your AI assistant:
# Install a specific skill
ctx7 skills install /anthropics/skills pdf
# Install multiple skills
ctx7 skills install /anthropics/skills pdf commit
# Install to specific AI assistant
ctx7 skills install /anthropics/skills pdf --claude
ctx7 skills install /anthropics/skills pdf --cursor
# Install globally (home directory)
ctx7 skills install /anthropics/skills pdf --global
Generating Custom Skills
Create new skills tailored to your needs using AI:
# Generate a skill (requires login)
ctx7 skills generate
# Generate for specific assistant
ctx7 skills generate --claude
ctx7 skills generate --cursor
# Short aliases
ctx7 skills gen
ctx7 skills g
The generation process:
- Describe the expertise you want (e.g., "OAuth authentication with NextAuth.js")
- Select relevant libraries from search results
- Answer clarifying questions
- Review and install the generated skill
Managing Installed Skills
# List installed skills
ctx7 skills list
ctx7 skills list --claude
ctx7 skills list --global
# Get info about available skills in a project
ctx7 skills info /anthropics/skills
# Remove a skill
ctx7 skills remove pdf
ctx7 skills remove pdf --claude
Supported AI Assistants
The CLI automatically detects and supports:
- Claude Code (
.claude/skills/) - Cursor (
.cursor/skills/) - Codex (
.codex/skills/) - OpenCode (
.opencode/skills/) - Amp (
.agents/skills/) - Antigravity (
.agent/skills/)
Common Use Cases
Finding Skills for Specific Tasks
When a user needs skills for a particular technology or framework:
- Search the registry:
ctx7 skills search <topic> - Review results and install relevant skills
- Verify installation with
ctx7 skills list
Setting Up a New Project
For new projects, install commonly needed skills:
# Install essential skills for web development
ctx7 skills install /anthropics/skills typescript react testing --claude
Creating Custom Skills
When existing skills don't cover specific needs:
- Use
ctx7 skills generatefor AI-assisted creation - Provide detailed description of required expertise
- Review and refine the generated skill
- Install to your preferred AI assistant
Tips
- Use short aliases for faster workflow:
ctx7 si(install),ctx7 ss(search) - Skills are installed to project-specific directories by default
- Use
--globalflag for skills available across all projects - Generation has weekly limits (6 free, 10 pro accounts)
- Visit context7.com to browse the registry manually
More from arisng/github-copilot-fc
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
20vn-payroll
Calculates Net Income, Personal Income Tax (PIT), and Social Insurance (BHXH) based on Vietnam's progressive tax brackets.
1instruction-creator
Create and manage high-quality custom instruction files for GitHub Copilot. Use when you need to define new project-specific guidelines, workflows, or coding standards in the instructions/ directory.
1copilot-vscode-docs
Comprehensive research and grounding of answers using official VS Code and GitHub Copilot documentation. Use before conducting web searches for VS Code features, Copilot capabilities, configuration, debugging, extensions, remote development, or any official Microsoft documentation queries.
1vscode-terminal-autoapprove
Guidance on configuring VS Code's terminal auto-approve settings for commands with dynamic arguments.
1