Agent Skills
› anthropics/claude-plugins-official
› example-command
example-command
GitHub演示用户调用的斜杠命令技能,展示 frontmatter 选项及 skills/<name>/SKILL.md 布局。
Trigger Scenarios
用户调用 /example-command
Install
npx skills add anthropics/claude-plugins-official --skill example-command -g -y
SKILL.md
Frontmatter
{
"name": "example-command",
"description": "An example user-invoked skill that demonstrates frontmatter options and the skills\/<name>\/SKILL.md layout",
"allowed-tools": [
"Read",
"Glob",
"Grep",
"Bash"
],
"argument-hint": "<required-arg> [optional-arg]"
}
Example Command (Skill Format)
This demonstrates the skills/<name>/SKILL.md layout for user-invoked slash commands. It is functionally identical to the legacy commands/example-command.md format — both are loaded the same way; only the file layout differs.
Arguments
The user invoked this with: $ARGUMENTS
Instructions
When this skill is invoked:
- Parse the arguments provided by the user
- Perform the requested action using allowed tools
- Report results back to the user
Frontmatter Options Reference
Skills in this layout support these frontmatter fields:
- name: Skill identifier (matches directory name)
- description: Short description shown in /help
- argument-hint: Hints for command arguments shown to user
- allowed-tools: Pre-approved tools for this skill (reduces permission prompts)
- model: Override the model (e.g., "haiku", "sonnet", "opus")
Example Usage
/example-command my-argument
/example-command arg1 arg2
Version History
- f6a8253 Current 2026-07-25 09:48


