share-skills
它能做什么
这项技能说明如何打包技能文件夹,以便与他人分享。适合自己编写技能、并希望干净地交付给他人的人。
适用场景
- ✓当你想打包一个技能文件夹,分享给别人时。
- ✓当你需要检查某项技能的 SKILL.md 文件格式是否正确时。
- ✓当你想知道技能存放在哪里,以及应包含哪些文件的时候。
技能链接
https://github.com/spinabot/brigade/blob/main/skills/share-skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请打包我的会议笔记技能,以便发送给同事,并检查文件格式是否正确。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会检查技能文件夹的结构,确保文件头中的名称与文件夹名称一致,并检查说明内容是否准确。然后它会将该文件夹连同其配套文件一起打包。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Sharing Skills
This skill explains how skills are structured and how to package one for sharing. It is a companion to skill authoring: where skill-creator helps you write a skill, this covers laying it out correctly and bundling it to hand off.
Where skills live
Each skill is a folder under the skills/ directory. The folder name is the skill's identity and must match the name field in its frontmatter (lowercase). At minimum a skill folder contains a SKILL.md; it may also include supporting files (scripts, reference docs, assets) the skill refers to.
skills/
my-skill/
SKILL.md
reference.md # optional supporting docs
scripts/run.sh # optional helper scripts
SKILL.md format
A SKILL.md is a Markdown file with a YAML frontmatter block followed by the skill body.
---
name: my-skill # must equal the folder name, lowercase
description: Use when ... # the "use when" trigger guidance, product-free
# optional eligibility keys (omit any that don't apply):
os: [darwin, linux] # OS restriction
requires-bins: [foo] # binaries that MUST be present
requires-any-bins: [a, b] # at least one of these binaries
requires-env: [MY_TOKEN] # required environment variables
---
Body guidelines:
- Open with a short overview of what the skill does and when to reach for it.
- Keep instructions truthful: only describe actions the runtime can actually perform.
- Reference any supporting files by relative path within the folder.
- Keep it lean — the description and metadata are what get surfaced; the body is read on demand.
Versioning a shared skill
When you intend to share a skill, keep a changelog note and a version in mind so recipients can tell revisions apart. A simple convention is a ## Changelog section at the bottom of SKILL.md or a sibling CHANGELOG.md.
Packaging a folder to share
To share a skill, bundle its entire folder (so supporting files travel with it) and hand it off as an archive.
# from the skills/ directory, archive a single skill folder
tar -czf my-skill.tar.gz my-skill/
The recipient unpacks the archive into their own skills/ directory:
tar -xzf my-skill.tar.gz -C ./skills/
After unpacking, confirm the folder name still matches the name in frontmatter and that any requires-* eligibility keys are accurate for the new environment.
Checklist before sharing
nameequals the folder name (lowercase).descriptionis present and free of product names.- Eligibility keys (
os/requires-bins/requires-any-bins/requires-env) reflect real requirements — omit them when there are none. - Supporting files are inside the folder and referenced by relative path.
- The body never instructs calling a tool the runtime does not have.
常见问题
技能需要额外的文件吗?
不需要。技能只需要一个 SKILL.md 文件,但也可以包含脚本或参考文档。
哪些内容必须保持一致?
文件头中的技能名称必须与其文件夹名称一致,并且使用小写字母。
这和编写新技能是一回事吗?
不是。编写技能由单独的创建技能处理,而这项技能负责结构与分享。
详情
作者的原始描述
Use when you need to author, package, or share a skill folder — understanding the SKILL.md format, where skills live, and how to bundle a folder so it can be shared with others.
repo: spinabot/brigade
热度
- GitHub 星标
- 11k
- 排名
- #11736
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …