skills README

项目的 README,来自 github.com/vercel-labs/skills。合并为一个 markdown 文件:README.md。

skills

The CLI for the open agent skills ecosystem.

Agent skills are reusable instructions that teach coding agents how to perform tasks, from reviewing code to working with a library. Discover skills at skills.sh.

Supports OpenCode, Claude Code, Codex, Cursor, and 75 more.

Vercel Labs Product npm version: skills License: MIT npm downloads per month: skills skills.sh

Install a Skill

Requires Node.js 22.20 or later. Run this from your project:

npx skills add vercel-labs/agent-skills

Choose the skills and coding agents to install to. Skills are installed to the current project by default; add -g to make them available across projects.

# Choose one skill and agent
npx skills add vercel-labs/agent-skills --skill web-design-guidelines -a claude-code

# Browse available skills
npx skills find

See the installation reference for source formats, private repositories, and all options.

Other Commands

Command Description
npx skills find [query] Search for skills
npx skills list List installed skills
npx skills use <source>@<skill> Use one skill without installing
npx skills check Check for available updates
npx skills update [skills...] Update installed skills
npx skills remove [skills...] Remove installed skills
npx skills init [name] Create a skill template

Read the CLI reference or run npx skills --help for examples and options. Experimental commands are listed below.

Use a Skill Without Installing

Generate a prompt for a skill, or launch a supported coding agent with it:

npx skills use vercel-labs/agent-skills@web-design-guidelines --agent claude-code

Omit --agent to print the prompt instead. See skills use.

Experimental Features

Commands prefixed with experimental_ are previews. Their names, options, and behavior may change or be removed in any release without notice.
Command Description
npx skills experimental_sync Sync skills shipped by npm dependencies into your project
npx skills experimental_install Restore project skills recorded in skills-lock.json

Some npm packages bundle instructions for your agent alongside their code. Sync links them into your project so they update with the dependency, and also installs skill packs declared in package.json:

npm install -D skills agent-browser
npx skills experimental_sync -y

See the experimental commands reference for options, the skills field, and the RFC behind it.

Lock File Content Hash

skills-lock.json (version 2) records a computedHash for each project skill. The hash covers the files the CLI installs into .agents/skills/<name>, so list, check, and install --frozen-lockfile can compare it with what is on disk. Tools that check skills themselves can compute the same value:

  1. Collect every file in the skill folder. Leave out metadata.json files and the .git, __pycache__, and __pypackages__ folders, because the installer does not copy them. A symlink counts as the file or folder it points to. Leave out a symlink that is broken, loops, or points outside the skill folder.
  2. Give each file a path relative to the skill folder, with / as the separator.
  3. For a text file (a file that contains no NUL byte), replace each CRLF with LF. Do not change binary files.
  4. Sort the files by the UTF-8 bytes of their paths. Do not use a locale-aware sort.
  5. For each file in that order, feed path, a NUL byte, the content length in bytes as decimal ASCII, a NUL byte, and the content into one SHA-256. The content length is counted after step 3.
  6. The hash is the lowercase hex digest.

Test vectors:

Files computedHash
none e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
SKILL.md = # hi\n 93c36952d8843b33e68ae970ebabcc03e1687c9bb0dd1ecaf357060318952f55
SKILL.md = a\n, docs/b.md = b\n b22c4d22aa319d2924312fa18fcbfedc88fa89c74dbd8f298c683e1caf7b7f24

The last vector equals printf 'SKILL.md\0002\000a\ndocs/b.md\0002\000b\n' | sha256sum.

For a Git source, the entry also records the commit the skill came from. skills install (with or without --frozen-lockfile) and skills experimental_sync --frozen-lockfile fetch that commit, not the latest commit on ref, so a restore still matches computedHash after the source repository changes. skills update moves commit forward, and it adds a commit to an older entry that has none. The server must allow fetching a commit by its SHA. GitHub and GitLab allow this.

A skill installed with --rename is hashed as it is installed: its SKILL.md has the new name in the frontmatter, so the hash differs from the upstream folder's hash.

A version 1 lock is upgraded when it is read, without network access. An installed skill whose files still match its version 1 hash gets a new hash computed from those files. Any other entry gets an empty hash, because there is nothing trusted to check it against. skills install fetches those skills again and records new hashes, and --frozen-lockfile fails until that is done.

Supported Agents

The CLI detects installed agents and lets you choose where skills are installed. See all supported agents, installation paths, and compatibility.

Creating Skills

npx skills init my-skill

Edit the generated SKILL.md with instructions for your agent. See creating and sharing skills for the format and discovery rules.

Documentation

Telemetry

The CLI collects anonymous usage data. Set DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1 to disable telemetry and security-audit requests. See what is collected.

License

This project is licensed under the MIT License.

skills (vercel-labs/skills)

正在搜索数据库…

41.4K ·GitHub
这是什么?skills 是面向开放 Agent Skills 生态的命令行工具,可以安装、管理并运行可复用的“Agent Skills”(即 SKILL.md 文件中的指令集),支持 Claude Code、Codex、Cursor 等数十种编程智能体。
这是命令行工具还是程序库?它是通过 npx 运行的命令行工具(npx skills ...),不涉及 API 或库的导入,只有 add、use、list、find、update、remove 等子命令。
我该如何安装技能?将 CLI 指向一个来源(GitHub 仓库、简写形式,或 SKILL.md/zip 链接),然后选择要把技能安装到哪些已检测到的编程智能体中。安装方式可以是指向规范副本的符号链接,也可以是独立的文件副本。
安装前需要先配置 GitHub 令牌或其他东西吗?公开仓库无需令牌。CLI 会依次尝试常规的 Git 凭据、GitHub CLI 认证或 SSH。只有在以上方式都未设置时才需要 GITHUB_TOKEN/GH_TOKEN,对私有仓库尤其如此。
从远程来源安装时有什么限制吗?下载默认上限为 10 MiB,解压后的内容上限为 25 MiB,压缩包最多 1000 个文件。如果信任该来源,大型技能包可能需要通过环境变量覆盖这些限制。
这个工具支持哪些编程智能体?开箱即用支持 75 个以上的智能体,包括 Claude Code、Codex、Cursor、OpenCode、Gemini CLI 和 Windsurf,每个都有各自文档中说明的项目级和全局安装路径。
Skill(SKILL.md)到底是什么?Skill 是一个目录,其中包含一个 SKILL.md 文件。文件开头的 YAML 前置元数据声明了名称和描述,另外还有智能体需要遵循的指令,用于生成发布说明、按团队规范创建 PR,或与 Linear、Notion 等工具集成等任务。
我能在不永久安装的情况下试用技能吗?可以。npx skills use 会解析来源,将技能文件写入临时目录,然后要么打印生成的提示词,要么在传入 --agent 时启动受支持的智能体进入交互模式。
如何保持已安装的技能为最新版本?运行 npx skills update,可将全部或指定技能更新到最新版本;使用 -g 或 -p 参数可将更新范围限定为全局安装或项目安装。
CLI 如何在仓库中发现技能?它会向下最多遍历三层目录,查找扁平或分类结构中的 SKILL.md(例如 skills/name/SKILL.md 或 skills/category/name/SKILL.md)。层级较浅的 SKILL.md 会屏蔽其下嵌套的技能。使用 --full-depth 可将搜索扩展到标准文件夹之外。
大小
2.3 MB
星标
41.4K
时长
10个月
提交 · 90 天