context7-skills
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseContext7 Skills
Context7技能
Purpose
用途
This skill must directly execute Context7 CLI commands for managing skills.
Printing commands without execution is forbidden.
本技能必须直接执行Context7 CLI命令来管理技能。
禁止仅打印命令而不执行。
Scope (Authoritative & Closed)
范围(权威且封闭)
Only the following commands are permitted (per ):
npx ctx7 skills --helpnpx ctx7 skills search|snpx ctx7 skills install|inpx ctx7 skills list|lsnpx ctx7 skills remove|rmnpx ctx7 skills info
Anything outside this list is out of scope and prohibited.
仅允许以下命令(参考):
npx ctx7 skills --helpnpx ctx7 skills search|snpx ctx7 skills install|inpx ctx7 skills list|lsnpx ctx7 skills remove|rmnpx ctx7 skills info
任何超出此列表的内容均超出范围且被禁止。
Execution Rules (Non-Negotiable)
执行规则(不可协商)
Execution rules apply only after required permissions (if any) are granted.
- Commands MUST be executed using .
npx ctx7 - The /
skillsnamespace is mandatory.skill - Only commands listed in Scope may be executed.
- Exactly one target flag may be present at most.
- may include
install; no other install options are allowed.--all - Invalid, ambiguous, or incomplete input MUST be corrected before execution.
- No other shell commands may be executed under any circumstances.
执行规则仅在获得必要权限(若有)后适用。
- 命令必须使用执行。
npx ctx7 - /
skills命名空间是必填项。skill - 仅允许执行范围中列出的命令。
- 最多只能存在一个目标标志。
- 命令可包含
install;不允许使用其他安装选项。--all - 无效、模糊或不完整的输入必须在执行前修正。
- 在任何情况下都不得执行其他Shell命令。
Permission Requirements (Hard Gate)
权限要求(硬性限制)
Network-dependent commands (e.g., , , remote ) MUST NOT be executed unless the execution environment explicitly grants outbound network permission.
searchinfoinstallRequesting environment permission is not a user confirmation step and not a request for additional user input.
依赖网络的命令(如、、远程)不得执行,除非执行环境明确授予出站网络权限。
searchinfoinstall请求环境权限不是用户确认步骤,也不是请求额外的用户输入。
Permission Flow
权限流程
If a command is network-dependent:
- Request outbound network permission from the execution environment / agent permission system.
- If permission is granted, execute the command.
- If permission is denied or unavailable, stop and report the limitation. Ask the user to run it locally or provide the output.
如果命令依赖网络:
- 向执行环境/代理权限系统请求出站网络权限。
- 若权限被授予,则执行命令。
- 若权限被拒绝或不可用,则停止操作并报告限制。请用户在本地运行该命令或提供输出结果。
No Redundant Confirmation
无需冗余确认
If the user explicitly requested a network-dependent command and no extra input is needed, proceed to the permission request immediately without asking for additional confirmation.
如果用户明确请求了依赖网络的命令,且无需额外输入,请立即进行权限请求,无需询问额外确认。
Network Failures
网络故障
If execution fails with a network error (e.g., , DNS, timeout), treat it as an environment/permission limitation, not a command error. Do not retry unless the environment explicitly grants permission.
fetch failed若执行因网络错误失败(如、DNS问题、超时),将其视为环境/权限限制,而非命令错误。除非环境明确授予权限,否则不得重试。
fetch failedTargets (Canonical)
目标(标准)
Valid target flags (apply only where supported by the command):
--global- —
--claude.claude/skills/ - —
--cursor.cursor/skills/ - —
--codex.codex/skills/ - —
--opencode.opencode/skills/ - —
--amp.agents/skills/ - —
--antigravity.agent/skills/
If more than one target is requested, STOP and request clarification.
有效目标标志(仅适用于命令支持的场景):
--global- —
--claude.claude/skills/ - —
--cursor.cursor/skills/ - —
--codex.codex/skills/ - —
--opencode.opencode/skills/ - —
--amp.agents/skills/ - —
--antigravity.agent/skills/
若请求了多个目标,请停止操作并请求澄清。
Search Result Output (Mandatory)
搜索结果输出(强制要求)
After executing successfully:
npx ctx7 skills search|s ...- MUST display the result entries as a numbered list starting at 1.
- Each numbered item MUST preserve the entry text as-is (no paraphrase, no deduplication).
成功执行后:
npx ctx7 skills search|s ...- 必须将结果条目显示为从1开始的编号列表。
- 每个编号项必须原样保留条目文本(不得改写、不得去重)。
One-Run Default
单次运行默认规则
- If the first run already contains any visible result entries, do not rerun. Output the visible entries immediately.
- 如果第一次运行已包含任何可见的结果条目,不得重新运行。立即输出可见条目。
Truncation Handling (Conditional Rerun)
截断处理(条件性重新运行)
- Rerun the same search command up to 1 additional time only when:
- the first run shows no visible result entries, or
- the tool output is truncated () and the output contains only summary lines (e.g.,
… +N lines) without entries.Found N
- MUST NOT ask the user for confirmation to rerun if the user already requested .
search
- 仅在以下情况下,最多额外重新运行一次相同的搜索命令:
- 第一次运行未显示任何可见结果条目,或
- 工具输出被截断()且输出仅包含摘要行(如
… +N lines)而无具体条目。Found N
- 若用户已请求,不得询问用户是否确认重新运行。
search
Interactive / Anomaly Claims (Evidence Rule)
交互式/异常声明(证据规则)
- MUST NOT claim the command became int
- 不得声称命令变为交互式
Install Flow From Search Selection (Mandatory)
从搜索选择到安装的流程(强制要求)
After showing numbered search results:
- The user may reply with a number to select a skill to install.
k - On receiving a valid selection , extract from the selected entry:
kskill_name- (as shown in the entry)
repository
- If the selection is invalid (not a number or out of range), ask the user to pick a valid number.
显示编号搜索结果后:
- 用户可回复一个数字来选择要安装的技能。
k - 收到有效选择后,从所选条目中提取:
kskill_name- (如条目中所示)
repository
- 若选择无效(非数字或超出范围),请用户选择有效的数字。
Install Options Prompt (Numbered)
安装选项提示(编号形式)
-
After a valid selection and if the user did not already specify install options, prompt the user to choose exactly one install target as a numbered list:
- (.claude/skills/)
--claude - (.cursor/skills/)
--cursor - (.codex/skills/)
--codex - (.opencode/skills/)
--opencode - (.agents/skills/)
--amp - (.agent/skills/)
--antigravity - (global)
--global
-
The user responds with a number. Map
tto the corresponding target flag.t -
MUST NOT be used when installing a single selected skill.
--all
-
若用户已做出有效选择且未指定安装选项,请提示用户从编号列表中选择恰好一个安装目标:
- (.claude/skills/)
--claude - (.cursor/skills/)
--cursor - (.codex/skills/)
--codex - (.opencode/skills/)
--opencode - (.agents/skills/)
--amp - (.agent/skills/)
--antigravity - (全局)
--global
-
用户回复数字,将
t映射到对应的目标标志。t -
安装单个选定技能时,不得使用。
--all
Permission Gate
权限检查
- If the install requires network access (remote repository), request outbound network permission before running install.
- 若安装需要网络访问(远程仓库),请在运行安装命令前请求出站网络权限。
Execute Install
执行安装
- Execute exactly:
npx ctx7 skills install|i <repository> <skill_name> <target_flag>
- After execution, display the raw CLI output as-is.
- 严格执行以下命令:
npx ctx7 skills install|i <repository> <skill_name> <target_flag>
- 执行完成后,原样显示原始CLI输出。
Quick Reference
快速参考
| Intent | Executed Command |
|---|---|
| Search | `npx ctx7 skills search |
| Install | `npx ctx7 skills install |
| List | `npx ctx7 skills list |
| Remove | `npx ctx7 skills remove |
| Repo info | |
| 意图 | 执行的命令 |
|---|---|
| 搜索 | `npx ctx7 skills search |
| 安装 | `npx ctx7 skills install |
| 列出 | `npx ctx7 skills list |
| 移除 | `npx ctx7 skills remove |
| 仓库信息 | |
Examples (Executed)
示例(已执行)
bash
npx ctx7 skills search pytorch vision
npx ctx7 skills install /anthropics/skills uv --claude
npx ctx7 skills install /anthropics/skills --all --codex
npx ctx7 skills list --cursor
npx ctx7 skills info /anthropics/skillsbash
npx ctx7 skills search pytorch vision
npx ctx7 skills install /anthropics/skills uv --claude
npx ctx7 skills install /anthropics/skills --all --codex
npx ctx7 skills list --cursor
npx ctx7 skills info /anthropics/skillsHard Errors (Block Execution)
严重错误(阻止执行)
- Missing /
skillsskill - Using commands outside Scope
- Emitting commands without execution
- More than one target flag
- Mixing targets with unrelated flags
- Attempting to run non-Context7 shell commands
- Executing network-dependent commands without explicit permission
- 缺少/
skillsskill - 使用范围之外的命令
- 仅输出命令而不执行
- 多个目标标志
- 将目标与无关标志混合使用
- 尝试运行非Context7的Shell命令
- 在未获得明确权限的情况下执行依赖网络的命令
Notes (Behavioral)
注意事项(行为规范)
- is mandatory for
<repository>andinstall.info - is optional; omission triggers interactive selection unless
[skill]is used.--all - does not support filtering.
list - Network failures (e.g., ) indicate environment/permission limits, not a command syntax issue.
fetch failed
- 是
<repository>和install命令的必填项。info - 为可选;若省略,除非使用
[skill],否则将触发交互式选择。--all - 命令不支持过滤。
list - 网络故障(如)表明环境/权限限制,而非命令语法问题。
fetch failed