跳到正文
Skillpedia
智能体7.2k · #13487

manage-skills

它能做什么

这个技能让 AI 借助 skills-manager 工具管理一个集中的智能体技能库,包括添加、移除,以及为每个 AI 工具开启或关闭技能。适合同时使用多个 AI 助手、并希望把技能统一放在一处的人。

适用场景

  • ✓当你希望 Claude Code、Codex 或 Cursor 新增或移除某项特定技能时。
  • ✓当你想查看每个 AI 工具已安装或已开启的技能时。
  • ✓当你想用标签、预设或搜索来整理共享技能库时。

技能链接

https://github.com/xingkongliang/skills-manager/blob/main/skills/manage-skills/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/xingkongliang/skills-manager/blob/main/skills/manage-skills/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为 Claude Code 安装 PDF 技能,并告诉我哪些其他助手已经有这个技能。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能会运行随桌面应用一同提供的 skills-manager 命令行工具。如果该工具缺失或版本过旧,它会停下来请你处理,而不是随意猜测。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Before doing anything

  1. Resolve the CLI first, then use the path it prints. Run this once (POSIX shell):

    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
    

    Substitute the printed path into every command below, wherever the examples write $SM. Do not carry $SM as a shell variable: each command you run is a new shell, so an assignment made here is gone by the next one.

    The three outcomes:

    • A path under ~/.skills-manager/bin — the desktop app published this copy, and the .version stamp appears only after it has been verified, so it always matches the app the user is running. Use it.
    • BRIDGE_BROKEN — 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.
    • 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.

  2. Always pass --json when you parse output yourself. Pretty-printed output is for the user; JSON is for you. Errors include ok=false, a stable code, and message on stderr with a non-zero exit code.

"$SM" --json skills list

When 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:

{"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 (skills adopt), or move it aside and retry. Never delete it for them.

Mental model

There's one central library at ~/.skills-manager/skills/ 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.

Keep these three states separate:

  • Library: install/remove controls whether Skills Manager owns the skill.
  • Preset membership: presets add-skill/remove-skill organizes the library only.
  • Deployment: skills deploy/undeploy and presets deploy/undeploy control what an agent can actually see.

Internally, presets are still stored as scenarios for backward-compatible Git Backup. The CLI and UI call them presets.

Install

# From skills.sh marketplace
"$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)
"$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

# 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:

"$SM" skills deploy <skill> --agent claude_code --agent codex

--sync and --sync-preset remain legacy shortcuts for the exclusive active-preset workflow.

Ref resolution is deterministic, no path-existence guessing:

  1. Starts
常见问题

我需要桌面应用吗?

需要。该技能使用 Skills Manager 应用所安装的命令行工具副本。

它能只从某一个 AI 工具中移除技能吗?

能。它可以为特定智能体关闭某项技能,同时仍将其保留在技能库中。

如果我的技能是手动设置的怎么办?

该技能可以把现有技能纳入技能库统一管理。

详情

作者的原始描述

Manage the user's shared agent-skill library via skills-manager-cli — install, update, remove, deploy or undeploy skills per agent, manage presets, organize tags, search, and adopt existing skills. Use this whenever the user wants Claude Code, Codex, Cursor, or another agent to gain or lose a skill, wants to organize the central library, or asks what is installed or deployed. Prefer this over direct agent-folder installs because Skills Manager preserves source metadata, preset membership, updates, and cross-agent deployment state.

repo: xingkongliang/skills-manager

热度

GitHub 星标
7.2k
排名
#13487
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能