智能体8.2k · #12557
skill-registry
它能做什么
这项技能为你已安装的 AI 技能创建一份简单清单,列出每项技能的适用时机及其文件位置。适合运行多个技能、希望智能体能找到正确技能的人。
适用场景
- ✓当你刚安装、删除或重命名了技能,索引需要刷新的时候。
- ✓当某个智能体需要找出哪项技能适合某个任务的时候。
- ✓当你想要一份最新的技能索引,供其他智能体读取的时候。
技能链接
https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/skill-registry/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/skill-registry/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add Gentleman-Programming/gentle-ai --skill skill-registry
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/internal/assets/skills/skill-registry/SKILL.md -o SKILL.md
可以这样问 AI
“请刷新我的技能注册表,让每个已安装的技能都列出其触发条件和文件路径。”
每周 5 个新技能,1 分钟读完。
工作原理
技能扫描技能文件夹,通过优先保留项目级技能来去除重复项,然后写入一个索引文件。索引指向原始技能文件,而不是对其做摘要。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Activation Contract
Use this skill after installing, removing, creating, moving, or renaming skills, or when a delegator needs a fresh skill index.
Hard Rules
- The registry is an index, not a compiler or summary.
SKILL.mdremains the source of truth. - Do not generate or inject compact rules by default; preserve author intent by passing exact skill paths to subagents.
- Always write
.atl/skill-registry.md, whether or not Engram is available. - Save the registry to Engram as
topic_key: skill-registrywhen available, withcapture_prompt: false. - Generate the registry with
gentle-ai skill-registry refresh --cwd <project>: it owns the scan order, deduplication, and the skills it never indexes. Scan by hand only when that command is unavailable. - When scanning by hand, skip
_sharedandskill-registry; deduplicate by skill name, preferring project-level skills over user-level skills. - Add
.atl/to.gitignorewhen possible unless explicitly disabled.
Decision Gates
| Situation | Action |
|---|---|
| Same skill exists globally and in project | Keep the project-level skill |
| Same skill exists in multiple global locations | Keep the first source in scan order |
| No skills found | Write an empty registry so agents stop searching blindly |
| Agent will delegate work | Select matching registry rows and pass their SKILL.md paths |
Execution Steps
- Run
gentle-ai skill-registry refresh --cwd <project>(add--forceafter skill changes); it writes.atl/skill-registry.md. If it reports the refresh was skipped (not a project), stop: there is no registry to persist. If it succeeds, go to step 4. If it fails, report the error instead of scanning by hand. - Only if the command is unavailable: scan all known user and project skill directories for
*/SKILL.md, reading frontmatter only as needed to extractnameanddescriptiontrigger text. - Render
.atl/skill-registry.mdwith scanned sources, registry contract, skill name, trigger/description, scope, and exact path. - Persist to Engram when available using
title: skill-registry,topic_key: skill-registry,type: config, andcapture_prompt: false. - Return the registry path, skill count, cache status, and whether Engram was updated.
Output Contract
Return:
- Project name and
.atl/skill-registry.mdpath. - Number of indexed skills.
- Whether the cache was hit or regenerated.
- Any skipped or duplicate skills when relevant.
References
docs/skill-style-guide.md— how skills should be authored before indexing.skills/_shared/skill-resolver.md— how delegators use the index.
常见问题
索引会取代技能文件吗?
不会。索引只指向技能文件,技能文件仍然是权威来源。
如果两个技能同名怎么办?
保留项目级的技能,而不保留用户级的技能。
索引保存在哪里?
它被写入项目的 .atl 文件夹中的一个索引文件。
详情
作者的原始描述
Trigger: update skills, skill registry, actualizar skills, after skill changes. Index available skills by trigger and path.
热度
- GitHub 星标
- 8.2k
- 排名
- #12557
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …