| name | context7-skills |
| description | Manage Context7 CLI skills: search, install, list, remove, info via ctx7. Use when the user wants to find, install, list, remove, or inspect Context7 skills. Triggers: 'search skills', 'install skill', 'list my skills', 'remove skill', 'ctx7', 'context7'. Do NOT use for general package management (npm, pip), non-Context7 CLI commands, or skill authoring. |
| allowed-tools | ["Bash","WebFetch"] |
Context7 Skills
Execute Context7 CLI commands directly. Printing commands without execution is forbidden.
Permitted Commands (Exhaustive)
| Intent | Command |
|---|
| Search | ctx7 skills search <keywords...> |
| Install | ctx7 skills install <repository> [skill] [--all] [target] |
| List | ctx7 skills list [target] |
| Remove | ctx7 skills remove <name> [target] |
| Info | ctx7 skills info <repository> |
No other commands may be executed.
Target Flags (exactly one allowed)
--global -- global
--claude -- .claude/skills/
--cursor -- .cursor/skills/
--codex -- .codex/skills/
--opencode -- .opencode/skills/
--amp -- .agents/skills/
--antigravity -- .agent/skills/
If multiple targets are requested, stop and ask the user to pick one.
Execution Rules
- Always execute via
ctx7. The skills namespace is mandatory.
- Only commands listed above may be executed.
- At most one target flag per command.
--all is only valid with install.
- Fix invalid, ambiguous, or incomplete input before execution.
Network Permission Gate
Commands requiring network access (search, info, remote install):
- Request outbound network permission from the execution environment.
- If granted, execute immediately (no redundant user confirmation).
- If denied, stop and tell the user to run locally or provide output.
- If execution fails with a network error (
fetch failed, DNS, timeout), treat as environment limitation. Do not retry without explicit permission.
Search Output Rules
- Display results as a numbered list starting at 1. Preserve entry text as-is.
- If the first run contains visible entries, do not rerun.
- Rerun once only if: no visible entries appeared, or output is truncated with only summary lines.
Install Flow (from search)
- User replies with a number
k to select a skill.
- Extract
skill_name and repository from the selected entry.
- If invalid selection, ask for a valid number.
- If no target was specified, prompt with numbered target list:
--claude 2. --cursor 3. --codex 4. --opencode 5. --amp 6. --antigravity 7. --global
- Do NOT use
--all for single skill install.
- Request network permission if remote, then execute:
ctx7 skills install <repository> <skill_name> <target_flag>
- Display raw CLI output as-is.
Error Handling
- Missing
skills namespace: add it automatically and proceed.
- Command outside permitted scope: reject and list permitted commands.
- More than one target flag: stop and ask user to pick one.
- Network failure: report as environment limitation, do not retry.
- Empty search results: suggest broadening keywords.