install-dependencies

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Install Dependencies

安装依赖项

These skills call into mattpocock/skills.
npx skills add
does not resolve dependencies, so nothing pulls them in on its own — install them explicitly.
这些 skills 会调用 mattpocock/skills。
npx skills add
不会 解析依赖项,因此不会自动拉取它们——需要显式安装。

Run Flow

执行流程

1. Check what is already there

1. 检查已有内容

List
.claude/skills/
and
~/.claude/skills/
. When
grilling
,
domain-modeling
,
diagnosing-bugs
, and
tdd
are all present, say so and stop — there is nothing to install.
列出
.claude/skills/
和
~/.claude/skills/
。如果
grilling
、
domain-modeling
、
diagnosing-bugs
和
tdd
均已存在,说明情况并停止——无需安装任何内容。

2. Pick the scope

2. 选择安装范围

  • This project only — the default. Writes
    .agents/skills/
    ,
    .claude/skills/
    ,
    skills-lock.json
  • Every project on this machine — add
    -g
    . Writes
    ~/.claude/skills/
    and touches nothing in the repo
When the user has not said which, ask. Installing into their repo adds tracked files, so it is their call.
  • 仅当前项目——默认选项。写入
    .agents/skills/
    、
    .claude/skills/
    、
    skills-lock.json
  • 本机上的所有项目——添加
    -g
    。写入
    ~/.claude/skills/
    ,不会修改 repo 中的任何内容
如果用户未指定安装范围,则询问用户。安装到 repo 会新增受版本控制的文件,因此应由用户决定。

3. Install

3. 安装

bash
npx skills add mattpocock/skills -s '*' -a claude-code -y
Do not use
--all
. It expands to
--agent '*'
, which creates a stray non-hidden
agent/
directory next to
.agents/
.
Done when: 22 skills are listed as installed, and you have named the paths that were written.
bash
npx skills add mattpocock/skills -s '*' -a claude-code -y
不要使用
--all
。它会展开为
--agent '*'
,从而在
.agents/
旁边创建一个多余的非隐藏
agent/
目录。
完成条件:显示已安装 22 个 skills,并说明写入的路径。

4. Confirm they loaded

4. 确认加载

Claude Code watches
.claude/skills/
and picks new skills up in this session — no restart. The one exception is a project where
.claude/skills/
did not exist when the session started; if the skills do not resolve, tell the user to restart Claude Code.
Claude Code 会监控
.claude/skills/
,并在当前 session 中自动加载新 skills,无需重启。唯一的 例外是:session 启动时项目中不存在
.claude/skills/
。如果 skills 无法解析,请告知用户重启 Claude Code。