command-creator by softaworks/agent-toolkit
npx skills add https://github.com/softaworks/agent-toolkit --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)创建命令时:
专注于创建代理可以自主执行的命令,具有清晰的步骤、明确的工具使用和适当的错误处理。
每周安装次数
571
代码仓库
GitHub 星标数
1.2K
首次出现时间
2026年1月20日
安全审计
已安装于
gemini-cli416
cursor416
codex415
claude-code415
opencode399
cline397
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
571
Repository
GitHub Stars
1.2K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli416
cursor416
codex415
claude-code415
opencode399
cline397
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
136,300 周安装
OpenAPI 转 TypeScript 工具 - 自动生成 API 接口与类型守卫
563 周安装
数据库模式设计器 - 内置最佳实践,自动生成生产级SQL/NoSQL数据库架构
564 周安装
Rust Unsafe代码检查器 - 安全使用Unsafe Rust的完整指南与最佳实践
564 周安装
.NET并发编程模式指南:async/await、Channels、Akka.NET选择决策树
565 周安装
韩语语法检查器 - 基于国立国语院标准的拼写、空格、语法、标点错误检测与纠正
565 周安装
技能安全扫描器 - 检测Claude技能安全漏洞,防范提示注入与恶意代码
565 周安装