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. Theskillsnamespace is mandatory. - Only commands listed above may be executed.
- At most one target flag per command.
--allis only valid withinstall.- 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
kto select a skill. - Extract
skill_nameandrepositoryfrom the selected entry. - If invalid selection, ask for a valid number.
- If no target was specified, prompt with numbered target list:
--claude2.--cursor3.--codex4.--opencode5.--amp6.--antigravity7.--global
- Do NOT use
--allfor 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
skillsnamespace: 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.