install-from-remote-library
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstall From Remote Library
从远程库安装
Goal
目标
Install from a shared library repo without guessing, over-installing, or skipping the preview step.
在不猜测、不超额安装、不跳过预览步骤的前提下,从共享库仓库完成安装。
Invariants
不变原则
- Always inspect the remote library first with .
install <source> --list - Prefer when the library clearly exposes a starter pack or focused bundle.
--collection - Always run before the real install.
--dry-run - Keep the install small. Do not pull a whole library when the user only needs a narrow slice.
- 始终先通过命令查看远程库内容。
install <source> --list - 当库明确提供入门包或聚焦的功能包时,优先使用参数。
--collection - 正式安装前务必执行预览。
--dry-run - 保持安装体量最小,当用户仅需要小部分功能时不要拉取整个库的内容。
Workflow
工作流程
- Inspect the source library.
bash
npx ai-agent-skills install <owner>/<repo> --list- Choose the smallest fitting target.
- Prefer or another named collection when it matches the user's need.
--collection starter-pack - Use only when the user needs one specific skill or the library has no useful collection.
--skill <name> - Do not combine and
--collection.--skill
- Preview the install plan before mutating anything.
bash
npx ai-agent-skills install <owner>/<repo> --collection starter-pack --dry-run -por
bash
npx ai-agent-skills install <owner>/<repo> --skill <skill-name> --dry-run -p- If the plan looks right, run the real install with the same scope.
bash
npx ai-agent-skills install <owner>/<repo> --collection starter-pack -p- 查看源库内容。
bash
npx ai-agent-skills install <owner>/<repo> --list- 选择最适配的最小安装目标。
- 当或其他命名集合匹配用户需求时优先选择。
--collection starter-pack - 仅当用户需要单个特定技能,或库没有可用集合时,才使用参数。
--skill <name> - 不要同时使用和
--collection参数。--skill
- 在改动任何内容前预览安装计划。
bash
npx ai-agent-skills install <owner>/<repo> --collection starter-pack --dry-run -p或
bash
npx ai-agent-skills install <owner>/<repo> --skill <skill-name> --dry-run -p- 如果预览计划符合预期,使用相同参数范围执行正式安装。
bash
npx ai-agent-skills install <owner>/<repo> --collection starter-pack -pDecision Rules
决策规则
- If the library has a curated collection that already matches the user's stack, use it.
- If the remote library is empty or the list output is unclear, stop and report that instead of guessing.
- If the install path throws an /
ERROR, surface that verbatim and follow the hint before retrying.HINT - If the user is exploring a large library, keep them in browse mode first rather than installing immediately.
- 如果库有和用户技术栈匹配的精选集合,直接使用。
- 如果远程库为空,或列表输出不清晰,停止操作并上报问题,不要猜测。
- 如果安装路径抛出/
ERROR,原样展示提示内容,遵循提示操作后再重试。HINT - 如果用户正在探索大型库,先让用户停留在浏览模式,不要立刻执行安装。
Done
完成后返回
Return:
- what source library you inspected
- which collection or skill you chose
- the dry-run result
- the exact final install command you used
返回以下内容:
- 你查看的源库信息
- 你选择的集合或技能名称
- 试运行的结果
- 你使用的最终安装命令的精确内容