create-skill
GitHub用于创建可复用的 Agent 技能,通过规范化的流程定义触发条件、核心逻辑及验证方式,以增强自动化工作流的标准化和可维护性。
触发场景
安装
npx skills add videojs/video.js --skill create-skill -g -y
SKILL.md
Frontmatter
{
"name": "create-skill",
"description": "Create repository skills. Use for repeatable agent workflows."
}
Create a skill
Create a skill only when a repeatable vertical workflow needs instructions beyond what code, tests, existing docs, and general model capability already provide.
Workflow
-
Collect concrete trigger and non-trigger examples.
-
Check existing skills for overlap; extend or consolidate before adding another metadata entry.
-
Choose one coherent job and a globally unique, verb-first kebab-case name.
-
Create
.agents/skills/<name>/SKILL.mdwith only portable frontmatter:--- name: <name> description: <what it does and when to use it> --- -
Put only essential procedure, project-specific gotchas, inputs/outputs, one compact example, and validation in
SKILL.md. -
Add a
references/file only for conditional detail and link it directly with an explicit read condition. Add a tested script only for repeated deterministic work. -
Do not tell a skill to load a sibling skill. Give related skills precise, overlapping descriptions so hosts can compose them from the task.
-
Run
pnpm link:aliasesto refresh compatibility directory links. -
Update
AGENTS.mdonly when its compact routing index needs the skill. -
Run
pnpm check:workspace.
Read references/principles.md for scope/context decisions, references/structure.md for non-trivial resource layout, and references/patterns.md only when the workflow needs an established pattern. Do not load them by default.
Create another skill only when it has an independent trigger and useful standalone workflow. Keep supporting knowledge as a reference. Do not add auxiliary changelogs, duplicated project docs, generic tutorials, or variants that belong in one parameterized workflow.
Example
Input: “Create a repeatable workflow for reviewing package export changes.”
Output: One focused .agents/skills/review-package-exports/ skill with a precise trigger, compact procedure, example result, and validation loop.
版本历史
- 8a0a3d8 当前 2026-10-20 08:02


