command-creator by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill command-creator此技能指导创建 Claude Code 斜杠命令 - 可在 Claude Code 对话中使用 /命令名称 调用的可复用工作流。
斜杠命令是存储在 .claude/commands/(项目级)或 ~/.claude/commands/(全局/用户级)中的 Markdown 文件,调用时会扩展为提示。它们非常适合:
当用户出现以下情况时调用此技能:
此技能包含详细指导的参考文档:
创建命令时根据需要加载这些参考文档,以理解模式、查看示例或确保质量。
每个斜杠命令都是一个包含以下内容的 Markdown 文件:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
---
description: 在 /help 中显示的简要描述(必需)
argument-hint: <占位符>(可选,如果命令接受参数)
---
# 命令标题
[供代理自主执行的详细指令]
自动检测适当位置:
git rev-parse --is-inside-work-tree 2>/dev/null.claude/commands/~/.claude/commands/~/.claude/commands/.claude/commands/在继续之前向用户报告所选位置。
帮助用户理解不同的命令类型。加载 references/patterns.md 查看可用模式:
询问用户:"哪种模式最接近您想要创建的内容?" 这有助于构建对话框架。
向用户询问关键信息:
询问:
指南:
submit-stack、ensure-ci、create-from-plansubmit_stack、ensure_ci、create_from_planmy-command.md → 调用为 /my-command/help 输出中)询问:
如果命令接受参数:
argument-hint: <占位符><尖括号> 表示必需参数[方括号] 表示可选参数询问:
收集有关以下内容的详细信息:
询问:
创建包含代理优化指令的命令文件。加载 references/best-practices.md 获取:
关键原则:
确定完整文件路径:
.claude/commands/[命令名称].md~/.claude/commands/[命令名称].md确保目录存在:
mkdir -p [目录路径]
使用 Write 工具编写命令文件
向用户确认:
/命令名称 [参数]如果用户想要测试:
您可以通过运行以下命令进行测试:/命令名称 [参数]获取详细指导,请加载捆绑的参考文档:
要记住的常见模式:
pytest、pyright、ruff、prettier、make、gt 命令使用 Bash 工具.PLAN.md)创建命令时:
专注于创建代理可以自主执行的命令,具有清晰的步骤、明确的工具使用和适当的错误处理。
每周安装数
134
仓库
GitHub 星标数
22.6K
首次出现时间
2026年1月25日
安全审计
安装于
opencode112
claude-code111
gemini-cli99
codex96
cursor95
antigravity89
This skill guides the creation of Claude Code slash commands - reusable workflows that can be invoked with /command-name in Claude Code conversations.
Slash commands are markdown files stored in .claude/commands/ (project-level) or ~/.claude/commands/ (global/user-level) that get expanded into prompts when invoked. They're ideal for:
Invoke this skill when users:
This skill includes reference documentation for detailed guidance:
Load these references as needed when creating commands to understand patterns, see examples, or ensure quality.
Every slash command is a markdown file with:
---
description: Brief description shown in /help (required)
argument-hint: <placeholder> (optional, if command takes arguments)
---
# Command Title
[Detailed instructions for the agent to execute autonomously]
Auto-detect the appropriate location:
git rev-parse --is-inside-work-tree 2>/dev/null.claude/commands/~/.claude/commands/~/.claude/commands/.claude/commands/Report the chosen location to the user before proceeding.
Help the user understand different command types. Load references/patterns.md to see available patterns:
Ask the user: "Which pattern is closest to what you want to create?" This helps frame the conversation.
Ask the user for key information:
Ask:
Guidelines:
submit-stack, ensure-ci, create-from-plansubmit_stack, ensure_ci, create_from_planmy-command.md → invoked as /my-command/help output)Ask:
If command takes arguments:
argument-hint: <placeholder> to frontmatter<angle-brackets> for required arguments[square-brackets] for optional argumentsAsk:
Gather details about:
Ask:
Create the command file with agent-optimized instructions. Load references/best-practices.md for:
Key principles:
Determine full file path:
.claude/commands/[command-name].md~/.claude/commands/[command-name].mdEnsure directory exists:
mkdir -p [directory-path]
Write the command file using the Write tool
Confirm with user:
/command-name [arguments]If the user wants to test:
You can test this command by running: /command-name [arguments]For detailed guidance, load the bundled references:
Common patterns to remember:
pytest, pyright, ruff, prettier, make, gt commands.PLAN.md) before proceedingWhen creating a command:
Focus on creating commands that agents can execute autonomously, with clear steps, explicit tool usage, and proper error handling.
Weekly Installs
134
Repository
GitHub Stars
22.6K
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode112
claude-code111
gemini-cli99
codex96
cursor95
antigravity89
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
155,300 周安装