install-dependencies
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstall Dependencies
安装依赖项
These skills call into mattpocock/skills. does
not resolve dependencies, so nothing pulls them in on its own — install them explicitly.
npx skills add这些 skills 会调用 mattpocock/skills。 不会
解析依赖项,因此不会自动拉取它们——需要显式安装。
npx skills addRun Flow
执行流程
1. Check what is already there
1. 检查已有内容
List and . When , , ,
and are all present, say so and stop — there is nothing to install.
.claude/skills/~/.claude/skills/grillingdomain-modelingdiagnosing-bugstdd列出 和 。如果 、、
和 均已存在,说明情况并停止——无需安装任何内容。
.claude/skills/~/.claude/skills/grillingdomain-modelingdiagnosing-bugstdd2. Pick the scope
2. 选择安装范围
- This project only — the default. Writes ,
.agents/skills/,.claude/skills/skills-lock.json - Every project on this machine — add . Writes
-gand touches nothing in the repo~/.claude/skills/
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,不会修改 repo 中的任何内容~/.claude/skills/
如果用户未指定安装范围,则询问用户。安装到 repo 会新增受版本控制的文件,因此应由用户决定。
3. Install
3. 安装
bash
npx skills add mattpocock/skills -s '*' -a claude-code -yDo not use . It expands to , which creates a stray non-hidden directory
next to .
--all--agent '*'agent/.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 and picks new skills up in this session — no restart. The one
exception is a project where did not exist when the session started; if the skills
do not resolve, tell the user to restart Claude Code.
.claude/skills/.claude/skills/Claude Code 会监控 ,并在当前 session 中自动加载新 skills,无需重启。唯一的
例外是:session 启动时项目中不存在 。如果 skills 无法解析,请告知用户重启 Claude Code。
.claude/skills/.claude/skills/