manage-skills
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBefore doing anything
操作前准备
-
Resolve the CLI first, then use the path it prints. Run this once (POSIX shell):bash
D="$HOME/.skills-manager/bin" B="$D/skills-manager-cli"; [ -e "$B" ] || B="$B.exe" # .exe on Windows if [ -s "$D/.version" ] && [ -x "$B" ]; then echo "$B" elif [ -s "$D/.version" ] || [ -e "$B" ]; then echo BRIDGE_BROKEN else P="$(command -v skills-manager-cli 2>/dev/null || true)" [ -x "$P" ] && echo "$P" fiSubstitute the printed path into every command below, wherever the examples write. Do not carry$SMas a shell variable: each command you run is a new shell, so an assignment made here is gone by the next one.$SMThe three outcomes:- A path under — the desktop app published this copy, and the
~/.skills-manager/binstamp appears only after it has been verified, so it always matches the app the user is running. Use it..version - — something the app left behind is here but does not add up: an unstamped binary, or a stamp with no binary beside it. Either is what a copy that failed half-way leaves. Stop. Do not go looking for another CLI: that binary may predate a safety fix, and the machine has a desktop app whose version nothing here can match. Ask the user to open the Skills Manager app once, which republishes it.
BRIDGE_BROKEN - A path from PATH — nothing was ever published here, so there is no stale copy to worry about: this is a CLI-only machine (a server install, a standalone download, a hand-built binary). Use it, but note it can be older than a desktop app if one is also installed.
If nothing is printed at all, this skill doesn't apply — fall back to find-skills, or tell the user to install Skills Manager. - A path under
-
Always passwhen you parse output yourself. Pretty-printed output is for the user; JSON is for you. Errors include
--json, a stableok=false, andcodeon stderr with a non-zero exit code.message
bash
"$SM" --json skills list-
先确定CLI路径,再使用其输出的路径。运行以下命令一次(POSIX Shell环境):bash
D="$HOME/.skills-manager/bin" B="$D/skills-manager-cli"; [ -e "$B" ] || B="$B.exe" # .exe on Windows if [ -s "$D/.version" ] && [ -x "$B" ]; then echo "$B" elif [ -s "$D/.version" ] || [ -e "$B" ]; then echo BRIDGE_BROKEN else P="$(command -v skills-manager-cli 2>/dev/null || true)" [ -x "$P" ] && echo "$P" fi将输出的路径替换到下方所有命令中,即示例中写的位置。不要将$SM作为Shell变量保存:你运行的每个命令都是在新Shell中执行的,因此此处的变量赋值在下次命令执行时会失效。$SM可能出现三种结果:- 路径位于下——该副本由桌面应用发布,且
~/.skills-manager/bin标记仅在验证通过后才会出现,因此它始终与用户当前运行的应用版本匹配。请使用该路径。.version - 返回——应用遗留的文件存在但不完整:要么是无标记的二进制文件,要么是有标记但无对应二进制文件。这是安装中途失败留下的状态。请停止操作,不要尝试寻找其他CLI版本:该二进制文件可能早于某个安全修复,且当前机器上的桌面应用版本无法与任何本地CLI匹配。请让用户打开Skills Manager应用一次,它会重新发布正确的CLI文件。
BRIDGE_BROKEN - 返回PATH中的路径——从未在此处发布过CLI文件,因此无需担心存在过时副本:这是仅安装了CLI的机器(如服务器安装、独立下载或手动编译的二进制文件)。可以使用该路径,但需注意如果同时安装了桌面应用,CLI版本可能比桌面应用旧。
如果没有任何输出,则该技能不适用——请改用find-skills,或告知用户安装Skills Manager。 - 路径位于
-
当你自行解析输出时,务必添加参数。格式化输出是给用户看的,JSON格式才适合程序解析。错误信息会包含
--json、稳定的ok=false字段,以及stderr中的code内容,同时返回非零退出码。message
bash
"$SM" --json skills listWhen a deployment is refused
当部署被拒绝时
A deploy that would overwrite something that is not ours is refused outright —
nothing at those paths is deleted, and nothing else in the batch is applied.
That failure is machine-readable, so report the actual paths rather than the
sentence:
json
{"ok": false, "code": "TARGET_CONFLICT", "kind": "target_conflict",
"message": "Refusing to deploy: 1 of 2 target(s) …",
"details": {"conflicts": [{"path": "/Users/me/.claude/skills/db",
"reason": "is not a managed deployment"}]}}Tell the user which path is in the way, that its contents are untouched, and
offer the two ways out: adopt it into the library (), or move it
aside and retry. Never delete it for them.
skills adopt如果部署会覆盖非Skills Manager管理的内容,会直接被拒绝——该路径下的内容不会被删除,批次中的其他操作也不会执行。该失败信息是机器可读的,因此请直接报告具体路径而非描述性语句:
json
{"ok": false, "code": "TARGET_CONFLICT", "kind": "target_conflict",
"message": "Refusing to deploy: 1 of 2 target(s) …",
"details": {"conflicts": [{"path": "/Users/me/.claude/skills/db",
"reason": "is not a managed deployment"}]}}告知用户哪个路径造成了阻碍,说明其内容未被改动,并提供两种解决方案:将其纳入技能库(使用命令),或移走该路径后重试。切勿替用户删除该路径。
skills adoptMental model
核心逻辑
There's one central library at that all agents share. Each skill has source metadata, preset membership, tags, and zero or more real deployments in agent directories. A preset is a reusable group; several presets may be deployed at the same time.
~/.skills-manager/skills/Keep these three states separate:
- Library: install/remove controls whether Skills Manager owns the skill.
- Preset membership: organizes the library only.
presets add-skill/remove-skill - Deployment: and
skills deploy/undeploycontrol what an agent can actually see.presets deploy/undeploy
Internally, presets are still stored as scenarios for backward-compatible Git Backup. The CLI and UI call them presets.
所有Agent共享一个位于的中央技能库。每个技能都包含源元数据、预设成员信息、标签,以及在Agent目录中的0个或多个实际部署实例。预设是可复用的技能组;多个预设可同时部署。
~/.skills-manager/skills/请区分以下三种状态:
- 库状态:install/remove命令控制Skills Manager是否管理该技能。
- 预设成员关系:仅用于整理库中的技能。
presets add-skill/remove-skill - 部署状态:和
skills deploy/undeploy控制Agent实际能访问的技能。presets deploy/undeploy
在内部,预设仍以场景形式存储,以兼容旧版Git备份功能。CLI和UI均称其为预设。
Install
安装技能
bash
undefinedbash
undefinedFrom skills.sh marketplace
从skills.sh市场安装
"$SM" skills install vercel-labs/agent-skills@react-best-practices
"$SM" skills install vercel-labs/agent-skills@react-best-practices
Any git URL (use /tree/branch/subpath form when the skill lives in a sub-directory)
从任意Git URL安装(当技能位于子目录时,使用/tree/branch/subpath格式)
"$SM" skills install https://github.com/anthropics/skills.git
"$SM" skills install https://github.com/foo/bar/tree/main/skills/baz
"$SM" skills install https://github.com/anthropics/skills.git
"$SM" skills install https://github.com/foo/bar/tree/main/skills/baz
Local folder
从本地文件夹安装
"$SM" skills install ./my-skill
"$SM" skills install ./my-skill
Force a source type when the ref is ambiguous
当引用模糊时,强制指定源类型
"$SM" skills install foo/bar --skillssh
"$SM" skills install ./looks-like/owner-repo --local
**Default is library-only** — the skill enters the DB but doesn't appear in any agent yet. Prefer an explicit follow-up deployment so scope is unambiguous:
```bash
"$SM" skills deploy <skill> --agent claude_code --agent codex--sync--sync-presetRef resolution is deterministic, no path-existence guessing:
- Starts with ,
./,../, or/→ local path~/ - Contains , ends in
://, or starts with.git→ git URLgit@ - Matches ,
owner/repo, orowner/repo/skill→ skillsshowner/repo@skill - Otherwise → error; pass /
--local/--gitto disambiguate--skillssh
Always verify after install with or so you can confirm the skill landed and report the preset / sync state back to the user.
skills listskills show <name>"$SM" skills install foo/bar --skillssh
"$SM" skills install ./looks-like/owner-repo --local
**默认仅安装到库中**——技能会进入数据库,但不会出现在任何Agent中。建议后续显式执行部署命令,以明确作用范围:
```bash
"$SM" skills deploy <skill> --agent claude_code --agent codex--sync--sync-preset引用解析是确定性的,不会猜测路径是否存在:
- 以、
./、../或/开头 → 本地路径~/ - 包含、以
://结尾或以.git开头 → Git URLgit@ - 匹配、
owner/repo或owner/repo/skill格式 → skillssh源owner/repo@skill - 其他情况 → 报错;需通过/
--local/--git参数明确指定源类型--skillssh
安装后务必验证,使用或命令确认技能已成功安装,并向用户报告预设/同步状态。
skills listskills show <name>Search
搜索技能
bash
"$SM" --json skills search "react performance" --limit 5Each result has (paste straight into ), (popularity proxy), and . Show the top 1–3 with install counts before installing — anything with 10K+ installs is battle-tested; anything under 100 needs a careful look at the source repo.
install_refskills installinstallsskills_sh_urlbash
"$SM" --json skills search "react performance" --limit 5每个搜索结果包含(可直接复制到命令中)、(安装量,作为流行度参考)和。在安装前展示前1-3个结果及其安装量——安装量超过10K的技能是经过实战检验的;安装量不足100的技能需要仔细查看其源码仓库。
install_refskills installinstallsskills_sh_urlUpdate / Check
更新/检查更新
bash
undefinedbash
undefinedRe-fetch one skill (git/skillssh re-clones, local/import re-imports source dir)
更新单个技能(Git/skillssh源会重新克隆,本地/导入源会重新导入目录)
"$SM" skills update <skill-name-or-id>
"$SM" skills update <skill-name-or-id>
Re-fetch all eligible skills
更新所有符合条件的技能
"$SM" skills update --all
"$SM" skills update --all
Just probe remote revisions, don't touch files
仅检查远程版本,不修改本地文件
"$SM" skills check --all
`check` is the dry-run partner of `update`. Local-only skills (no git source) are reported as `skipped: true`.
**An update replaces the skill's directory wholesale**, so anything written inside it that the new version does not have would be destroyed. When the CLI detects that, it applies nothing and reports the paths instead:
```jsonc
{ "name": "ppt-master", "refreshed": false,
"held_back_removals": ["library: templates/mine.pptx"] }The field is omitted entirely when nothing is held back, so test for its presence rather than for an empty array. with is not a failure and not something to retry — the skill is untouched and still on its old version. Show the user the listed paths and ask. There is no CLI flag to override this; only the desktop app can confirm and proceed, because only a person can say those files are expendable. The paths are prefixed with where they live (, or an agent key for a deployed copy).
refreshed: falseheld_back_removalslibraryNote what this does not cover: a file the user edited that the new version also ships is reported as surviving, because its path survives — the update overwrites their edits silently. Warn anyone keeping local modifications inside a skill folder.
"$SM" skills check --all
`check`是`update`命令的预演版本。仅本地存在的技能(无Git源)会被标记为`skipped: true`。
**更新会完全替换技能目录**,因此目录中存在但新版本没有的文件会被删除。当CLI检测到这种情况时,不会执行任何操作,而是报告相关路径:
```jsonc
{ "name": "ppt-master", "refreshed": false,
"held_back_removals": ["library: templates/mine.pptx"] }如果没有需要保留的文件,该字段会被省略,因此请检查该字段是否存在,而非检查数组是否为空。且包含不是失败,也无需重试——技能未被改动,仍为旧版本。请向用户展示列出的路径并询问。没有CLI参数可以覆盖此限制;只有桌面应用可以确认并继续操作,因为只有用户才能判断这些文件是否可以删除。路径前缀会标明文件位置(表示库中,或Agent标识表示已部署的副本)。
refreshed: falseheld_back_removalslibrary请注意以下情况未被覆盖:用户编辑过的文件如果新版本也包含,会被覆盖且无提示。请提醒用户不要在技能文件夹内保留本地修改。
Remove
移除技能
bash
undefinedbash
undefinedAlways preview first when removing more than one
移除多个技能前务必先预演
"$SM" skills remove <skill> --dry-run
"$SM" skills remove <skill> --dry-run
--yes is required for the actual delete; --json mode does NOT auto-confirm
实际删除需要添加--yes参数;JSON模式不会自动确认
"$SM" skills remove <skill> --yes
Remove deletes the central-library copy, all synced targets across agents, and the DB row. It's not reversible without re-installing."$SM" skills remove <skill> --yes
移除操作会删除中央库中的副本、所有Agent中的同步目标以及数据库记录。该操作不可撤销,除非重新安装。Deploy / Undeploy
部署/取消部署技能
bash
"$SM" skills deploy <skill> --agent claude_code
"$SM" skills undeploy <skill> --agent codex
"$SM" skills deploy <skill-a> <skill-b> --agent codex --dry-run
"$SM" skills deploy <skill> --agent claude_code --agent codex
"$SM" --json skills status <skill>These commands change real managed deployments without deleting the central-library copy or changing preset membership. are deprecated compatibility commands and do not change deployment; never use them.
skills enable/disableskills deployskills undeploy--agentskills statusbash
"$SM" skills deploy <skill> --agent claude_code
"$SM" skills undeploy <skill> --agent codex
"$SM" skills deploy <skill-a> <skill-b> --agent codex --dry-run
"$SM" skills deploy <skill> --agent claude_code --agent codex
"$SM" --json skills status <skill>这些命令会修改实际的托管部署,但不会删除中央库中的副本或改变预设成员关系。是已弃用的兼容命令,不会改变部署状态;切勿使用。
skills enable/disableskills deployskills undeploy--agentskills statusLegacy exclusive sync
旧版专属同步模式
bash
undefinedbash
undefinedSync current active preset to all enabled agents
将当前活动预设同步到所有启用的Agent
"$SM" skills sync
"$SM" skills sync
Preview the target list — safe, no writes
预览目标列表——安全操作,不会写入内容
"$SM" skills sync --dry-run
"$SM" skills sync --dry-run
Switch the one legacy active preset, then sync
切换到旧版活动预设,然后同步
"$SM" skills sync --preset "Web Dev"
"$SM" skills sync --preset "Web Dev"
Only sync to a single agent (useful when one agent's directory got out of sync)
仅同步到单个Agent(当某个Agent目录不同步时有用)
"$SM" skills sync --tool claude_code
undefined"$SM" skills sync --tool claude_code
undefinedAdopt skills installed elsewhere
纳入其他位置安装的技能
When skills already live in an agent's directory (e.g. installed via or manual ) but aren't in the central library, pull them in:
npx skills addgit clonebash
undefined当技能已存在于Agent目录中(例如通过或手动安装)但未在中央库中时,可将其纳入:
npx skills addgit clonebash
undefinedDry-run scan first — lists candidates without writing
先预演扫描——列出候选技能但不写入
"$SM" skills adopt ~/.claude/skills --dry-run
"$SM" skills adopt ~/.claude/skills --dry-run
Adopt everything found — each becomes source_type=local (can't auto-update from git)
纳入所有找到的技能——每个技能都会被标记为source_type=local(无法从Git自动更新)
"$SM" skills adopt ~/.claude/skills
"$SM" skills adopt ~/.claude/skills
Adopt a single skill and pin it to a git source so update
works later
update纳入单个技能并绑定到Git源,以便后续使用update
命令
update"$SM" skills adopt ~/.claude/skills/react-best-practices
--git-url https://github.com/vercel-labs/agent-skills/tree/main/react-best-practices
--git-url https://github.com/vercel-labs/agent-skills/tree/main/react-best-practices
"$SM" skills adopt ~/.claude/skills/react-best-practices
--git-url https://github.com/vercel-labs/agent-skills/tree/main/react-best-practices
--git-url https://github.com/vercel-labs/agent-skills/tree/main/react-best-practices
Or pass --git-subpath explicitly when the URL is just the repo root
当URL仅为仓库根目录时,需显式指定--git-subpath参数
"$SM" skills adopt ~/.claude/skills/react-best-practices
--git-url https://github.com/vercel-labs/agent-skills
--git-subpath react-best-practices
--git-url https://github.com/vercel-labs/agent-skills
--git-subpath react-best-practices
"$SM" skills adopt ~/.claude/skills/react-best-practices
--git-url https://github.com/vercel-labs/agent-skills
--git-subpath react-best-practices
--git-url https://github.com/vercel-labs/agent-skills
--git-subpath react-best-practices
Skill lives at the repo root? Pass an empty subpath
技能位于仓库根目录?传入空的子路径
"$SM" skills adopt ~/.claude/skills/my-skill
--git-url https://github.com/me/my-skill --git-subpath ""
--git-url https://github.com/me/my-skill --git-subpath ""
`adopt` auto-excludes anything already in the DB or already a sync target, so it's safe to re-run. `--git-url` requires either a URL with a subpath (`/tree/branch/path`) or an explicit `--git-subpath` — without that, future `update` would re-clone the wrong directory, so the CLI refuses to guess."$SM" skills adopt ~/.claude/skills/my-skill
--git-url https://github.com/me/my-skill --git-subpath ""
--git-url https://github.com/me/my-skill --git-subpath ""
`adopt`命令会自动排除已在数据库中或已为同步目标的内容,因此可以安全地重复执行。`--git-url`参数需要包含子路径的URL(`/tree/branch/path`格式)或显式指定`--git-subpath`参数——否则后续的`update`命令会克隆错误的目录,因此CLI不会进行猜测。Tag
标签管理
bash
"$SM" skills tag add <skill> web frontend
"$SM" skills tag remove <skill> frontend
"$SM" skills tag set <skill> web frontend
"$SM" skills tag rename frontend web
"$SM" skills tag delete obsolete --dry-run
"$SM" skills tag delete obsolete --yes
"$SM" skills tag list <skill> # tags on one skill
"$SM" skills tag list # all distinct tagsUseful organization queries:
bash
"$SM" --json skills list --untagged
"$SM" --json skills list --no-preset
"$SM" --json skills list --tag frontend
"$SM" --json skills list --preset "Web Dev"
"$SM" --json skills list --deployed-to codexbash
"$SM" skills tag add <skill> web frontend
"$SM" skills tag remove <skill> frontend
"$SM" skills tag set <skill> web frontend
"$SM" skills tag rename frontend web
"$SM" skills tag delete obsolete --dry-run
"$SM" skills tag delete obsolete --yes
"$SM" skills tag list <skill> # 查看单个技能的标签
"$SM" skills tag list # 查看所有不同的标签实用的分类查询命令:
bash
"$SM" --json skills list --untagged
"$SM" --json skills list --no-preset
"$SM" --json skills list --tag frontend
"$SM" --json skills list --preset "Web Dev"
"$SM" --json skills list --deployed-to codexPresets
预设管理
bash
"$SM" presets list
"$SM" presets current
"$SM" presets show "Web Dev"
"$SM" presets create "Web Dev" --description "Frontend work"
"$SM" presets update "Web Dev" --name "Frontend"
"$SM" presets delete "Old" --dry-run
"$SM" presets delete "Old" --yes
"$SM" presets add-skill <preset> <skill>...
"$SM" presets remove-skill <preset> <skill>...
"$SM" presets deploy <preset> # all enabled coding agents
"$SM" presets deploy <preset> --agent codex
"$SM" presets undeploy <preset> --agent claude_code
"$SM" presets undeploy <preset> # every agent with target rows for this preset
"$SM" --json presets status <preset>deploy/undeploypresets apply/deactivateThe no- defaults intentionally differ: deploy targets all installed, enabled coding agents; undeploy discovers the preset's actual target rows and removes them even when an agent is now disabled, uninstalled, or no longer registered. Use the no-agent undeploy for "turn this preset off everywhere."
--agentPreset create/update/delete and add-skill/remove-skill are organization-only CLI operations. They never deploy or undeploy agent files implicitly.
bash
"$SM" presets list
"$SM" presets current
"$SM" presets show "Web Dev"
"$SM" presets create "Web Dev" --description "Frontend work"
"$SM" presets update "Web Dev" --name "Frontend"
"$SM" presets delete "Old" --dry-run
"$SM" presets delete "Old" --yes
"$SM" presets add-skill <preset> <skill>...
"$SM" presets remove-skill <preset> <skill>...
"$SM" presets deploy <preset> # 部署到所有启用的编码Agent
"$SM" presets deploy <preset> --agent codex
"$SM" presets undeploy <preset> --agent claude_code
"$SM" presets undeploy <preset> # 从所有包含该预设目标记录的Agent中取消部署
"$SM" --json presets status <preset>deploy/undeploypresets apply/deactivate不带参数的默认行为有所不同:deploy会部署到所有已安装且启用的编码Agent;undeploy会找到该预设的所有实际目标记录并移除,即使Agent已被禁用、卸载或注销。使用不带agent参数的undeploy命令可实现“在所有位置关闭该预设”。
--agent预设的创建/更新/删除以及添加/移除技能操作仅用于整理库,不会隐式部署或取消部署Agent文件。
Health check
健康检查
When sync misbehaves or a command errors in a confusing way:
bash
"$SM" --json repo status # base dir, skill / preset counts, active preset
"$SM" --json agents list # detected agents and their target paths
"$SM" agents enable codex
"$SM" agents disable claude_coderepo statusagents listagents disableagents enableUse when the user wants the whole Agent integration turned off or wants every managed skill removed from it. If they only want one skill or preset removed while keeping the Agent available for future deployments, use or instead.
agents disable <agent>skills undeploypresets undeploy当同步行为异常或命令报错且原因不明时:
bash
"$SM" --json repo status # 查看基础目录、技能/预设数量、活动预设
"$SM" --json agents list # 查看检测到的Agent及其目标路径
"$SM" agents enable codex
"$SM" agents disable claude_coderepo statusagents listagents disableagents enable当用户希望关闭整个Agent集成或移除该Agent的所有托管技能时,使用命令。如果用户仅希望移除某个技能或预设,同时保留Agent以供未来部署使用,请改用或命令。
agents disable <agent>skills undeploypresets undeployTypical workflows
典型工作流
"Find me a skill for X" / "Install a skill that does X"
“帮我找一个能实现X的技能” / “安装一个能实现X的技能”
- — show the top 1–3 hits with install counts and source.
skills search "X" --limit 5 - If a clear winner: .
skills install <install_ref> - If ambiguous: ask the user to pick.
- Deploy it to the agent(s) the user requested with .
skills deploy - to confirm the library and deployment state.
skills status <name>
- 执行——展示前1-3个结果及其安装量和源信息。
skills search "X" --limit 5 - 如果有明确的最优选择:执行。
skills install <install_ref> - 如果结果不明确:请用户选择。
- 使用命令将其部署到用户指定的Agent。
skills deploy - 执行确认库状态和部署状态。
skills status <name>
"What skills do I have?"
“我已经安装了哪些技能?”
bash
"$SM" --json skills listThe , , , , and fields are usually the most informative. The legacy field is not deployment state.
preset_idspresetsdeployed_totagssource_typeenabledbash
"$SM" --json skills listpreset_idspresetsdeployed_totagssource_typeenabled"Pull in the skills already installed in my agent directories"
“把我Agent目录中已安装的技能纳入中央库”
- (and any other agent dirs the user mentions) — show the candidate list.
skills adopt ~/.claude/skills --dry-run - After user confirms: .
skills adopt ~/.claude/skills - For any adopted skill where the user knows the original repo, follow up with to restore the update link.
skills adopt ... --git-url ... --git-subpath ...
- 执行(以及用户提到的其他Agent目录)——展示候选技能列表。
skills adopt ~/.claude/skills --dry-run - 用户确认后:执行。
skills adopt ~/.claude/skills - 对于用户知道原仓库的已纳入技能,后续执行命令以恢复更新链接。
skills adopt ... --git-url ... --git-subpath ...
"Update everything"
“更新所有技能”
bash
"$SM" skills check --all # see what has upstream changes
"$SM" skills update --all # applyReport which skills actually refreshed ( in the JSON) vs which were already up-to-date.
refreshed: truebash
"$SM" skills check --all # 查看哪些技能有上游更新
"$SM" skills update --all # 应用更新向用户报告哪些技能实际完成了更新(JSON中),哪些已经是最新版本。
refreshed: truePitfalls
常见陷阱
- Install succeeded but skill doesn't appear in the agent → install defaults to library-only. Use .
skills deploy <skill> --agent <key> - Preset membership changed but agent files did not → membership is organization only. Follow with or
presets deploywhen the user also asked to make it visible.skills deploy - No active preset only affects legacy /
skills sync; additive deploy commands do not require one.presets apply - Adopted skills can't be d from git →
updateand manualnpx skills adddon't leave source metadata, so adopt has to treat them asgit clone. Fix per-skill withlocal, or justadopt ... --git-url ... --git-subpath ...+skills removeto start clean with a real source.skills install <git-ref> - Use before bulk remove, tag delete, preset delete, deploy, or undeploy operations. Use
--dry-runbeforecheck.update
- 安装成功但技能未出现在Agent中→安装默认仅到库中。请使用命令部署。
skills deploy <skill> --agent <key> - 预设成员关系已更改但Agent文件未更新→成员关系仅用于整理库。当用户希望技能在Agent中可见时,请后续执行或
presets deploy命令。skills deploy - 无活动预设仅影响旧版/
skills sync命令;增量部署命令不需要活动预设。presets apply - 已纳入的技能无法从Git更新→和手动
npx skills add不会留下源元数据,因此纳入时会被标记为git clone。可通过local命令逐个修复,或直接执行adopt ... --git-url ... --git-subpath ...+skills remove命令重新安装,以获得完整的源支持。skills install <git-ref> - 在批量移除、删除标签、删除预设、部署或取消部署操作前,请使用预演。在执行
--dry-run前,请使用update命令检查。check