Command Development
适用于创建斜杠命令、添加或编写自定义命令、定义命令参数、使用或组织命令 frontmatter、创建引用文件的命令、交互式命令,以及在命令中使用 AskUserQuestion。涵盖 Claude Code 的斜杠命令结构、YAML frontmatter 字段、动态参数、命令中的 bash 执行、用户交互模式和命令开发实践。
译文已校对查看英文原文
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
适用对象:软件开发与测试。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Command Development for Claude Code
- Overview
- Command Basics
- What is a Slash Command?
- Critical: Commands are Instructions FOR Claude
- Command Locations
- File Format
- Basic Structure
Slash commands are frequently-used prompts defined as Markdown files that Claude executes during interactive sessions. Understanding command structure, frontmatter options, and dynamic features enables creating powerful, reusable workflows. Key concepts: Markdown file format for commands YAML frontmatter for configuration Dynamic arguments and file references Bash execution for context Command organization and namespacing A slash command is a Markdown file containing a prompt that Claude executes when invoked. Commands provide: Reusability: Define once, use repeatedly Consistency: Standardize common workflows Sharing: Distribute across team or projects Efficiency: Quick access to complex prompts Commands are written for agent consumption, not human consumption. When a user invokes /command-name, the command content becomes Claude's instructions. Write commands as directives TO Claude about what to do, not as messages TO the user. Correct approach (instructions for Claude): Incorrect approach (messages to user): The first example tells Claude what to do. The second tells the user what will happen but doesn't instruct Claude. Always use the first approach. Project commands (shared wi
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- davila7/claude-code-templates
- 源文件
- cli-tool/components/skills/development/command-development/SKILL.md
- 固定版本
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:44.229Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。