[ PROMPT_NODE_24552 ]
Command Creator 说明文档
[ SKILL_DOCUMENTATION ]
# 命令创建器 (Command Creator)
A comprehensive skill for creating optimized, agent-executable slash commands in Claude Code. This skill guides you through the entire process of designing, implementing, and testing reusable workflow automation commands.
## 目录
- [概述](#overview)
- [何时使用此技能](#when-to-use-this-skill)
- [什么是斜杠命令?](#what-are-slash-commands)
- [关键特性](#key-features)
- [工作原理](#how-it-works)
- [命令模式](#command-patterns)
- [位置策略](#location-strategy)
- [捆绑资源](#bundled-resources)
- [使用示例](#usage-examples)
- [最佳实践](#best-practices)
- [常见用例](#common-use-cases)
---
## 概述
命令创建器技能可帮助您将重复的工作流转换为可重用的斜杠命令,这些命令可以在 Claude Code 对话中使用 `/command-name` 调用。它提供关于命令结构、智能体优化和最佳实践的专家指导,以确保您的命令能够可靠且自主地执行。
**目的**:创建具有适当结构、清晰指令和最佳工具使用模式的高质量、智能体可执行的斜杠命令。
**目标用户**:希望实现以下目标的开发者:
- 自动化重复的工作流
- 记录一致的流程以便重用
- 创建项目特定或全局自动化
- 将复杂任务委托给专业智能体
---
## 何时使用此技能
当您需要执行以下操作时调用此技能:
- 从头开始创建新的斜杠命令
- 自动化您发现自己重复执行的工作流
- 记录多步流程以实现一致执行
- 将手动程序转换为自动化命令
- 为团队工作流创建项目特定命令
- 构建用于个人生产力的全局命令
**触发短语**:
- "create a command"
- "make a slash command"
- "add a command"
- "I keep doing X, can we make a command for it?"
- "automate this workflow"
- "create a reusable command"
---
## 什么是斜杠命令?
斜杠命令是存储在 `.claude/commands/`(项目级)或 `~/.claude/commands/`(全局/用户级)中的 Markdown 文件,在调用时会扩展为提示词。
**结构**:
markdown
---
description: Brief description shown in /help (required)
argument-hint: (optional, if command takes arguments)
---
# Command Title
[Detailed instructions for the agent to execute autonomously]
**调用**:
/command-name [arguments]
**存储位置**:
- **项目级**:`.c