This skill should be used when the user asks to 'create a slash command', 'add a command', 'write a custom command', 'define command arguments', 'skill slash-commands', 'organize commands', or needs guidance on OpenClaw skill-based slash commands, YAML frontmatter, dynamic arguments, or command development best practices.
OpenClaw skills can include slash commands defined as Markdown files. These commands provide reusable, standardized prompts that agents execute during interactive sessions.
Key concepts:
~/.openclaw/skills/A slash command is a Markdown file containing a prompt that an OpenClaw agent executes when invoked. Commands provide:
When a command is invoked, its content becomes the agent's instructions. Write commands as directives TO the agent:
Correct (instructions for agent):
Review this code for security vulnerabilities including:
- SQL injection
- XSS attacks
- Authentication issues
Provide specific line numbers and severity ratings.
Incorrect (messages to user):
This command will review your code for security issues.
Personal commands (available everywhere):
~/.openclaw/skills/<skill-name>/commands/Workspace commands (shared with all agents):
~/.openclaw/workspace/commands/~/.openclaw/skills/my-skill/
└── commands/
├── review.md # /review command
├── test.md # /test command
└── deploy.md # /deploy command
Simple command (no frontmatter needed):
Review this code for security vulnerabilities including:
- SQL injection
- XSS attacks
- Authentication bypass
---
description: Review code for security issues
allowed-tools: Read, Grep, Bash(git:*)
---
Review this code for security vulnerabilities...
Brief description shown in help output.
description: Review pull request for code quality
Specify which tools the command can use.
allowed-tools: Read, Write, Edit, Bash(git:*)
Document expected arguments for autocomplete.
argument-hint: [file-path] [priority]
Capture all arguments as a single string:
---
description: Fix issue by number
argument-hint: [issue-number]
---
Fix issue #$ARGUMENTS following our coding standards.
---
description: Review PR with priority
argument-hint: [pr-number] [priority]
---
Review pull request #$1 with priority level $2.
Include file contents in command:
---
description: Review specific file
argument-hint: [file-path]
---
Review @$1 for code quality and best practices.
Commands can be routed to specific agents in the 16-agent roster:
---
description: Deep security audit
---
Route this to Vault (cybersecurity agent) for analysis.
openclaw agent spawn --agent cybersecurity --task "Perform deep security audit on recent changes"
---
description: Full review pipeline
argument-hint: [file-path]
---
Phase 1: Route to Sage (solution-architect) for design review
Phase 2: Route to Vault (cybersecurity) for security analysis
Phase 3: Route to Vex (tester) for test coverage assessment
Target: @$1
commands/
├── build.md
├── test.md
├── deploy.md
└── review.md
commands/
├── ci/
│ ├── build.md
│ └── test.md
├── git/
│ ├── commit.md
│ └── pr.md
└── docs/
└── generate.md
argument-hint~/.openclaw/ paths, never hardcoded absolute paths---
description: Review code changes
allowed-tools: Read, Bash(git:*)
---
Review each changed file for:
1. Code quality and style
2. Potential bugs
3. Test coverage
4. Documentation needs
---
description: Spawn analysis task
argument-hint: [task-description]
---
openclaw agent spawn --task "$ARGUMENTS"
references/frontmatter-reference.md — Complete frontmatter field specificationsreferences/advanced-workflows.md — Multi-step and multi-agent command patternsexamples/simple-commands.md — Basic command examplesexamples/plugin-commands.md — Skill-integrated command patternsnpx skills add oabdelmaksoud/openclaw-command-development下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search 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