Loading...
Loading...
Compare original and translation side by side
.agents/skills/.agents/skills/.agents/skills/
└── my-skill/
├── SKILL.md # Required: frontmatter + content
├── workflow.md # Optional: supplementary detail
└── examples.md # Optional: referenced from SKILL.md.agents/skills/
└── my-skill/
├── SKILL.md # 必填:前置元数据 + 内容
├── workflow.md # 可选:补充细节
└── examples.md # 可选:从SKILL.md中引用---
name: my-skill # Required. Used for $name references and /name commands.
description: > # Required. How Claude decides to auto-load the skill.
What this covers and when to use it. Include file names and keywords.
argument-hint: '<pr-number>' # Optional. Hint for expected arguments.
user-invocable: false # Optional. Set false to hide from / menu.
disable-model-invocation: true # Optional. Set true to prevent auto-triggering.
allowed-tools: [Bash, Read] # Optional. Tools allowed without permission.
model: opus # Optional. Model override.
context: fork # Optional. Isolated subagent execution.
agent: Explore # Optional. Subagent type (with context: fork).
------
name: my-skill # 必填项。用于$name引用和/name命令。
description: > # 必填项。用于Claude判断是否自动加载该技能。
说明该技能涵盖的内容及适用场景。请包含文件名和关键词。
argument-hint: '<pr-number>' # 可选。提示预期的参数格式。
user-invocable: false # 可选。设置为false可在/菜单中隐藏该技能。
disable-model-invocation: true # 可选。设置为true可阻止自动触发。
allowed-tools: [Bash, Read] # 可选。无需权限即可使用的工具列表。
model: opus # 可选。模型覆盖配置。
context: fork # 可选。启用独立子Agent执行环境。
agent: Explore # 可选。子Agent类型(需配合context: fork使用)。
---descriptionconfig-shared.tsundefineddescriptionconfig-shared.tsundefinedundefinedundefined| AGENTS.md (always loaded) | Skills (on demand) |
|---|---|
| One-liner guardrails | Step-by-step workflows |
| "Keep require() behind if/else for DCE" | Full DCE pattern with code examples, verification commands, edge cases |
Points to skills via | Expands on AGENTS.md rules |
$skill-name| AGENTS.md(始终加载) | 技能文件(按需加载) |
|---|---|
| 单行约束规则 | 分步工作流 |
| "将require()放在if/else语句后以实现DCE" | 包含代码示例、验证命令、边缘情况的完整DCE实现方案 |
通过 | 扩展AGENTS.md中的规则 |
$skill-nameflagsdce-edgereact-vendoring.agents/skills/flagsdce-edgereact-vendoring.agents/skills/pr-status-triage/
├── SKILL.md # Overview, quick commands, links to details
├── workflow.md # Prioritization and patterns
└── local-repro.md # CI env matchingpr-status-triage/
├── SKILL.md # 概览、快速命令、详情链接
├── workflow.md # 优先级判定与模式
└── local-repro.md # CI环境匹配