with one click
create-command
创建新的slash command,如果需要会自动初始化插件结构
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
创建新的slash command,如果需要会自动初始化插件结构
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | create-command |
| description | 创建新的slash command,如果需要会自动初始化插件结构 |
| allowed-tools | Write, Read, Bash, Glob |
创建新的slash command文件,如果插件结构不存在则自动初始化。
检查当前目录是否存在 .claude/ 目录
├─ 找到 → 继续到步骤3
└─ 未找到 → 进入步骤2(同create-skill的自动初始化)
与create-skill相同的初始化流程。
询问用户:
.claude/commands/{command-name}.md^[a-z0-9-]+$✅ Command已创建: /{command-name}
📁 位置: ./.claude/commands/{command-name}.md
⚠️ Commands需要本地安装才能测试:
1. 添加本地marketplace:
/plugin marketplace add ./.claude
2. 安装插件:
/plugin install {plugin-name}@local
3. 测试命令:
/{command-name}
4. 更新后重新安装:
/plugin uninstall {plugin-name}@local
/plugin install {plugin-name}@local
Commands是slash命令(如 /commit, /help),它们需要注册到Claude Code系统中。 与skills/agents/hooks不同,commands不能直接从文件系统读取使用。
用户: "创建一个status command"
执行流程:
Start, check, or continue any work. Analyzes intent, plans tasks, and orchestrates execution via subagents (L2) or Agent Teams (L3).
Generate Playwright test scripts for browser-based acceptance verification. Load when DAG tasks touch UI, routes, or user-facing API responses.
Classify intent, assess complexity, generate task DAGs. Activates on /go or when user describes work.
Guide for using Reddit MCP to gather community sentiment, pain points, and adoption trends. Load this skill when a DAG contains research tasks about market validation, developer experience, or community opinions.
解析PRD,决定水平拆分策略,生成带验收标准的mini-PRD。当主协调器收到初始PRD或需要重新拆分工作时使用。
使用git worktrees为并行子协调器生成和管理tmux会话。当各部分准备好执行时使用。