skill-creator
它能做什么
这项技能为 AI 智能体创建新的技能文件,遵循标准结构,包括清晰的约定、步骤和反模式。它还会检查新技能是否与你已有的技能重叠。
适用场景
- ✓当你想为 AI 智能体创建一项新的可复用技能时。
- ✓当你想检查一个新想法是否与现有技能重叠时。
- ✓当你想要一个遵循标准格式并通过检查的技能文件时。
技能链接
https://github.com/garrytan/gbrain/blob/master/plugin/skills/skill-creator/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请创建一项帮助我撰写每周进度更新的新技能,并先检查是否已有现有技能能做到这一点。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找出空白,并与你当前的技能进行比较。然后它会编写一个包含前置信息和必要部分的技能文件,并更新路由列表,使新技能可以被找到。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Skill Creator
Contract
This skill guarantees:
- New skill follows conformance standard (frontmatter + required sections)
- MECE check: no overlap with existing skills' triggers
- Manifest.json updated
- RESOLVER.md updated with routing entry
- Skill passes conformance tests (
bun test test/skills-conformance.test.ts)
Phases
- Identify the gap. What capability is missing? What user intent has no skill?
- MECE check. Review
skills/manifest.jsonandskills/RESOLVER.md. Does any existing skill already cover this? If so, extend it instead of creating a new one. - Create SKILL.md. Use this template:
---
name: {skill-name}
version: 1.0.0
description: |
{One paragraph describing what the skill does and when to use it.}
triggers:
- "{trigger phrase 1}"
- "{trigger phrase 2}"
tools:
- {tool1}
- {tool2}
mutating: {true|false}
---
# {Skill Title}
## Contract
{What this skill guarantees — 3-5 bullet points}
## Phases
{Numbered workflow steps}
## Output Format
{What good output looks like}
## When it fails
Follow the [agent operator protocol](../conventions/agent-operator-protocol.md) for any gbrain error `code`, exit code, `[AGENT]` block or notice block. Specific to this skill:
{2-5 concrete failures this skill hits — error codes, refusals, notices — and what to do and tell the user}
## Anti-Patterns
{What NOT to do — 3-5 items}
## Tools Used
{GBrain operations used, with descriptions}
- Add to manifest. Update
skills/manifest.jsonwith name, path, description. - Add to resolver. Update
skills/RESOLVER.mdwith routing entry in the appropriate category. - Verify. Run
bun test test/skills-conformance.test.tsto confirm the new skill passes.
Output Format
New skills/{name}/SKILL.md file + updated manifest + updated resolver.
When it fails
Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
bun test test/skills-conformance.test.tsfails: the new SKILL.md lacks a required section (Contract, Anti-Patterns, Output Format, When it fails) or frontmatter; add it and re-run.gbrain check-resolvablereports the skill unreachable: add the RESOLVER row in a fitting category, then re-run.
Anti-Patterns
- Creating a skill that overlaps with an existing one (violates MECE)
- Skipping the MECE check against existing skills
- Creating a skill without triggers in frontmatter
- Not updating manifest.json and RESOLVER.md
- Creating a skill without an Anti-Patterns section
常见问题
如果现有技能已经涵盖这项功能怎么办?
技能建议扩展现有技能,而不是创建重复的技能。
一个技能文件包含什么?
它包括标题、所保证内容的约定、步骤、输出格式和反模式。
它会测试新技能吗?
会。它会对新文件运行一组符合性测试。
详情
作者的原始描述
Create new skills following the GBrain conformance standard. Generates SKILL.md with frontmatter, Contract, Phases, Output Format, and Anti-Patterns. Checks MECE against existing skills. Updates manifest and resolver.
repo: garrytan/gbrain
热度
- GitHub 星标
- 31k
- 排名
- #9312
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …