用途:指导创建 Claude Code 斜杠命令,即以 /command-name 触发的快捷动作。适用于新建命令、理解命令结构、查询 frontmatter 字段、校验与示例参考。
主要能力:说明命令以 Markdown 文件保存,项目命令放 .claude/commands/command-name.md,个人命令放 ~/.claude/commands/command-name.md;子目录实现命名空间,如 .claude/commands/git/quick-commit.md 显示为 /git.quick-commit。frontmatter 可选字段包括 description、allowed-tools(逗号分隔字符串)、argument-hint、model(sonnet/opus/haiku/inherit)、disable-model-invocation、commandType。支持 @ 引用文件、! 执行 Bash(需在 allowed-tools 声明 Bash)、$ARGUMENTS 与 $1…$9 参数。内容含 H1 标题、指令、输出格式与示例。
限制与注意:工具名需大写,allowed-tools 不能用数组,frontmatter 需 --- 包裹,图标放 H1 而非 frontmatter,未提供 description 时自动补全显示文件名。资料未提供安装命令、收费与价格信息。命令按 JSON Schema 校验,架构地址见资料链接。