技能 编程开发 示例命令技能

示例命令技能

v20260320
example-command
展示了用户调用 Slash 命令的 SKILL.md 结构与 frontmatter 配置,并说明参数解析、工具使用等流程,方便开发者复用模板。
获取技能
309 次下载
概览

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
信息
Category 编程开发
Name example-command
版本 v20260320
大小 1.2KB
更新时间 2026-03-22
语言