119 lines
3.7 KiB
Markdown
119 lines
3.7 KiB
Markdown
# Skills Commands
|
|
|
|
Manage AI coding skills from the Context7 registry. Skills are Markdown files that teach AI coding agents best practices, patterns, and workflows for specific libraries or tasks.
|
|
|
|
## Install
|
|
|
|
Install skills from any GitHub repository. Repository format is always `/owner/repo`.
|
|
|
|
```bash
|
|
ctx7 skills install /anthropics/skills # Interactive — pick from a list
|
|
ctx7 skills install /anthropics/skills pdf # Install a specific skill by name
|
|
ctx7 skills install /anthropics/skills --all # Install everything without prompting
|
|
```
|
|
|
|
Target a specific IDE with a flag:
|
|
```bash
|
|
ctx7 skills install /anthropics/skills pdf --claude # Claude Code only
|
|
ctx7 skills install /anthropics/skills pdf --cursor # Cursor only
|
|
ctx7 skills install /anthropics/skills pdf --universal # Universal (.agents/skills/)
|
|
ctx7 skills install /anthropics/skills --all --global # All skills, global install
|
|
```
|
|
|
|
Alias: `ctx7 si /anthropics/skills pdf`
|
|
|
|
## Search
|
|
|
|
Find skills across the entire registry by keyword. Shows an interactive list with install counts and trust scores. Select to install.
|
|
|
|
```bash
|
|
ctx7 skills search pdf
|
|
ctx7 skills search typescript testing
|
|
ctx7 skills search react nextjs
|
|
```
|
|
|
|
Alias: `ctx7 ss pdf`
|
|
|
|
## Suggest
|
|
|
|
Auto-detects your project dependencies and recommends relevant skills from the registry.
|
|
|
|
```bash
|
|
ctx7 skills suggest # Scan current project, install to project
|
|
ctx7 skills suggest --global # Install suggestions globally
|
|
ctx7 skills suggest --claude # Target Claude Code only
|
|
```
|
|
|
|
Reads `package.json`, `requirements.txt`, `pyproject.toml`, `Cargo.toml`, `go.mod`, `Gemfile`. Falls back to suggesting `ctx7 skills search` if no dependencies are detected.
|
|
|
|
Alias: `ctx7 ssg`
|
|
|
|
## Generate (AI-powered)
|
|
|
|
Generate a custom skill tailored to your stack using AI. **Requires login.**
|
|
|
|
```bash
|
|
ctx7 skills generate
|
|
ctx7 skills generate --claude # Install directly to Claude Code
|
|
ctx7 skills generate --global # Install to global skills
|
|
```
|
|
|
|
Interactive flow:
|
|
1. Describe the expertise you want (e.g., "OAuth authentication with NextAuth.js")
|
|
2. Select relevant libraries from search results
|
|
3. Answer 3 clarifying questions to focus the skill
|
|
4. Review the generated skill, request changes if needed
|
|
5. Choose where to install it
|
|
|
|
**Limits:** Free accounts get 6 generations/week, Pro accounts get 10.
|
|
|
|
Aliases: `ctx7 skills gen`, `ctx7 skills g`
|
|
|
|
## List
|
|
|
|
Show all installed skills for the current project or globally.
|
|
|
|
```bash
|
|
ctx7 skills list # Current project (all detected IDEs)
|
|
ctx7 skills list --claude # Claude Code only
|
|
ctx7 skills list --global # Global skills
|
|
ctx7 skills list --global --claude # Global Claude Code skills
|
|
```
|
|
|
|
## Remove
|
|
|
|
Uninstall a skill by name.
|
|
|
|
```bash
|
|
ctx7 skills remove pdf
|
|
ctx7 skills remove pdf --claude # From Claude Code only
|
|
ctx7 skills remove pdf --global # From global skills
|
|
```
|
|
|
|
Aliases: `ctx7 skills rm`, `ctx7 skills delete`
|
|
|
|
## Info
|
|
|
|
Browse all skills in a repository without installing — useful for previewing what's available.
|
|
|
|
```bash
|
|
ctx7 skills info /anthropics/skills
|
|
```
|
|
|
|
Output shows each skill name, description, and URL, plus quick install commands.
|
|
|
|
## IDE Flags
|
|
|
|
All skills commands accept these flags to target a specific AI coding assistant:
|
|
|
|
| Flag | Directory | Used by |
|
|
|------|-----------|---------|
|
|
| `--universal` | `.agents/skills/` | Amp, Codex, Gemini CLI, OpenCode, GitHub Copilot |
|
|
| `--claude` | `.claude/skills/` | Claude Code |
|
|
| `--cursor` | `.cursor/skills/` | Cursor |
|
|
| `--antigravity` | `.agent/skills/` | Antigravity |
|
|
|
|
Without a flag, the CLI prompts you to select one or more targets interactively.
|
|
|
|
Add `--global` to any flag to install in your home directory instead of the current project.
|