Guide for designing effective slash commands in AgentStudio. Use when creating custom /commands or prompt templates. Triggers include "create command", "add slash command", "slash command", "create /command".
Guide the user through creating a slash command (prompt template).
Commands are /command-name templates that expand into pre-defined prompts. They're simpler than Skills — just a markdown template with optional YAML frontmatter.
Ask: "这个命令做什么?(如:代码审查、生成测试、格式化等)"
Ask: "需要参数吗?(如:文件路径、类名等)"
argument-hint in frontmatterAsk: "需要限制可用工具吗?"
allowed-tools in frontmatterAsk: "个人使用还是项目共享?"
scope: "user" (stored in ~/.cursor/commands/)scope: "project" (stored in .cursor/commands/)---
description: 审查当前文件的代码质量
argument-hint: <file_path>
allowed-tools: Read, Grep, Glob
---
请审查以下文件的代码质量:$ARGUMENTS
关注:
1. 代码规范
2. 潜在 bug
3. 性能问题
输出格式:
- 🔴 严重 / 🟡 建议 / 🟢 可选
| Field | Required | Description |
|-------|----------|-------------|
| description | Yes | Command description (shown in picker) |
| argument-hint | No | Hint for arguments |
| allowed-tools | No | Comma-separated tool names |
| model | No | Model override |
| namespace | No | Hierarchical namespace (e.g., code:test) |
$ARGUMENTS — user input after command nameReview command: /review <file> → code review prompt
Test command: /test <function> → generate unit tests
Doc command: /doc → generate documentation for current file
create_command MCP toolSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer