Skip to main content

example-command

An example user-invoked skill that demonstrates frontmatter options and the skills/<name>/SKILL.md layout

来源信息

仓库
anthropics/claude-plugins-official
最近来源活动
2026年3月17日 22:45
检测到的 SKILL.md 语言
英语
星标
39,183
分支
4,333

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
example-command
description
An example user-invoked skill that demonstrates frontmatter options and the skills/<name>/SKILL.md layout
argument-hint
<required-arg> [optional-arg]
allowed-tools
["Read","Glob","Grep","Bash"]
# 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: 1. Parse the arguments provided by the user 2. Perform the requested action using allowed tools 3. 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 ```
在 GitHub 查看