context7-skills

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Context7 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 --help
):
  • npx ctx7 skills search|s
  • npx ctx7 skills install|i
  • npx ctx7 skills list|ls
  • npx ctx7 skills remove|rm
  • npx ctx7 skills info
Anything outside this list is out of scope and prohibited.
仅允许以下命令(参考
npx ctx7 skills --help
):
  • npx ctx7 skills search|s
  • npx ctx7 skills install|i
  • npx ctx7 skills list|ls
  • npx ctx7 skills remove|rm
  • npx ctx7 skills info
任何超出此列表的内容均超出范围且被禁止

Execution Rules (Non-Negotiable)

执行规则(不可协商)

Execution rules apply only after required permissions (if any) are granted.
  1. Commands MUST be executed using
    npx ctx7
    .
  2. The
    skills
    /
    skill
    namespace is mandatory.
  3. Only commands listed in Scope may be executed.
  4. Exactly one target flag may be present at most.
  5. install
    may include
    --all
    ; no other install options are allowed.
  6. Invalid, ambiguous, or incomplete input MUST be corrected before execution.
  7. No other shell commands may be executed under any circumstances.
执行规则仅在获得必要权限(若有)后适用。
  1. 命令必须使用
    npx ctx7
    执行
  2. skills
    /
    skill
    命名空间是必填项
  3. 仅允许执行范围中列出的命令。
  4. 最多只能存在一个目标标志。
  5. install
    命令可包含
    --all
    ;不允许使用其他安装选项。
  6. 无效、模糊或不完整的输入必须在执行前修正
  7. 在任何情况下都不得执行其他Shell命令。

Permission Requirements (Hard Gate)

权限要求(硬性限制)

Network-dependent commands (e.g.,
search
,
info
, remote
install
) MUST NOT be executed unless the execution environment explicitly grants outbound network permission.
Requesting environment permission is not a user confirmation step and not a request for additional user input.
依赖网络的命令(如
search
info
、远程
install
不得执行,除非执行环境明确授予出站网络权限。
请求环境权限不是用户确认步骤,也不是请求额外的用户输入。

Permission Flow

权限流程

If a command is network-dependent:
  1. Request outbound network permission from the execution environment / agent permission system.
  2. If permission is granted, execute the command.
  3. If permission is denied or unavailable, stop and report the limitation. Ask the user to run it locally or provide the output.
如果命令依赖网络:
  1. 向执行环境/代理权限系统请求出站网络权限。
  2. 若权限被授予,则执行命令。
  3. 若权限被拒绝或不可用,则停止操作并报告限制。请用户在本地运行该命令或提供输出结果。

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.,
fetch failed
, 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问题、超时),将其视为环境/权限限制,而非命令错误。除非环境明确授予权限,否则不得重试。

Targets (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
npx ctx7 skills search|s ...
successfully:
  1. MUST display the result entries as a numbered list starting at 1.
  2. Each numbered item MUST preserve the entry text as-is (no paraphrase, no deduplication).
成功执行
npx ctx7 skills search|s ...
后:
  1. 必须将结果条目显示为从1开始的编号列表
  2. 每个编号项必须原样保留条目文本(不得改写、不得去重)。

One-Run Default

单次运行默认规则

  1. If the first run already contains any visible result entries, do not rerun. Output the visible entries immediately.
  1. 如果第一次运行已包含任何可见的结果条目,不得重新运行。立即输出可见条目。

Truncation Handling (Conditional Rerun)

截断处理(条件性重新运行)

  1. 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 (
      … +N lines
      ) and the output contains only summary lines (e.g.,
      Found N
      ) without entries.
  2. MUST NOT ask the user for confirmation to rerun if the user already requested
    search
    .
  1. 仅在以下情况下,最多额外重新运行一次相同的搜索命令:
    • 第一次运行未显示任何可见结果条目,或
    • 工具输出被截断(
      … +N lines
      输出仅包含摘要行(如
      Found N
      )而无具体条目。
  2. 若用户已请求
    search
    ,不得询问用户是否确认重新运行。

Interactive / Anomaly Claims (Evidence Rule)

交互式/异常声明(证据规则)

  1. MUST NOT claim the command became int
  1. 不得声称命令变为交互式

Install Flow From Search Selection (Mandatory)

从搜索选择到安装的流程(强制要求)

After showing numbered search results:
  1. The user may reply with a number
    k
    to select a skill to install.
  2. On receiving a valid selection
    k
    , extract from the selected entry:
    • skill_name
    • repository
      (as shown in the entry)
  3. If the selection is invalid (not a number or out of range), ask the user to pick a valid number.
显示编号搜索结果后:
  1. 用户可回复一个数字
    k
    来选择要安装的技能。
  2. 收到有效选择
    k
    后,从所选条目中提取:
    • skill_name
    • repository
      (如条目中所示)
  3. 若选择无效(非数字或超出范围),请用户选择有效的数字。

Install Options Prompt (Numbered)

安装选项提示(编号形式)

  1. 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:
    1. --claude
      (.claude/skills/)
    2. --cursor
      (.cursor/skills/)
    3. --codex
      (.codex/skills/)
    4. --opencode
      (.opencode/skills/)
    5. --amp
      (.agents/skills/)
    6. --antigravity
      (.agent/skills/)
    7. --global
      (global)
  2. The user responds with a number
    t
    . Map
    t
    to the corresponding target flag.
  3. --all
    MUST NOT be used when installing a single selected skill.
  1. 若用户已做出有效选择且未指定安装选项,请提示用户从编号列表中选择恰好一个安装目标:
    1. --claude
      (.claude/skills/)
    2. --cursor
      (.cursor/skills/)
    3. --codex
      (.codex/skills/)
    4. --opencode
      (.opencode/skills/)
    5. --amp
      (.agents/skills/)
    6. --antigravity
      (.agent/skills/)
    7. --global
      (全局)
  2. 用户回复数字
    t
    ,将
    t
    映射到对应的目标标志。
  3. 安装单个选定技能时,不得使用
    --all

Permission Gate

权限检查

  1. If the install requires network access (remote repository), request outbound network permission before running install.
  1. 若安装需要网络访问(远程仓库),请在运行安装命令前请求出站网络权限。

Execute Install

执行安装

  1. Execute exactly:
    • npx ctx7 skills install|i <repository> <skill_name> <target_flag>
  2. After execution, display the raw CLI output as-is.
  1. 严格执行以下命令:
    • npx ctx7 skills install|i <repository> <skill_name> <target_flag>
  2. 执行完成后,原样显示原始CLI输出。

Quick Reference

快速参考

IntentExecuted 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 info <repository>
意图执行的命令
搜索`npx ctx7 skills search
安装`npx ctx7 skills install
列出`npx ctx7 skills list
移除`npx ctx7 skills remove
仓库信息
npx ctx7 skills info <repository>

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/skills
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/skills

Hard Errors (Block Execution)

严重错误(阻止执行)

  • Missing
    skills
    /
    skill
  • 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
  • 缺少
    skills
    /
    skill
  • 使用范围之外的命令
  • 仅输出命令而不执行
  • 多个目标标志
  • 将目标与无关标志混合使用
  • 尝试运行非Context7的Shell命令
  • 在未获得明确权限的情况下执行依赖网络的命令

Notes (Behavioral)

注意事项(行为规范)

  • <repository>
    is mandatory for
    install
    and
    info
    .
  • [skill]
    is optional; omission triggers interactive selection unless
    --all
    is used.
  • list
    does not support filtering.
  • Network failures (e.g.,
    fetch failed
    ) indicate environment/permission limits, not a command syntax issue.
  • <repository>
    install
    info
    命令的必填项。
  • [skill]
    为可选;若省略,除非使用
    --all
    ,否则将触发交互式选择。
  • list
    命令支持过滤。
  • 网络故障(如
    fetch failed
    )表明环境/权限限制,而非命令语法问题。