Create a new slash command following best practices
Generates new slash commands from templates with proper tools and permissions. Use when you need to create reusable commands for specific tasks like debugging, analysis, or deployments.
/plugin marketplace add alvis/.claude/plugin install governance@alvis<command-name> [--purpose=...] [--workflow1=...]Create a new slash command using $ARGUMENTS (format: <command-name> [--purpose=...] [--workflow1=...]) following the latest best practices and template structure. Generates new slash commands from templates, configures appropriate tools and permissions, creates clean comment-free command files, and follows latest template structure from template:command. Ultrathink mode.
What this command does NOT do:
When to REJECT:
ultrathink: you'd perform the following steps
Output Format:
[✅/❌] Command: $ARGUMENTS
## Summary
- Command created: [name].md
- Location: .claude/commands/[path]
- Tools configured: [list]
## Actions Taken
1. Generated command from template
2. Configured tools and permissions
3. Created file at specified location
## Configuration Applied
- Allowed tools: [tools]
- Model: [if specified]
- Security restrictions: [if any]
## Next Steps
- Test command: /[command-name] "test-argument"
- Customize workflow if needed
- Add to documentation if public command
/create-command fix-issue --purpose="fix bugs from issue tracker"
# Generates: fix-issue.md
# Tools: Bash, Edit, Read, Grep, Task
/create-command analyze-quality --purpose="analyze code quality and metrics"
# Generates: analyze-quality.md
# Tools: Read, Grep, Glob, Task
# Pattern: Analysis workflow
/create-command build-deploy --purpose="build and deploy application"
# Generates: build-deploy.md
# Tools: Bash(npm:*), Bash(docker:*), Read
# Security: Restricted bash commands
/create-command test/unit-utilities --purpose="testing utilities for unit tests"
# Generates: test/unit-utilities.md
# Creates: .claude/commands/test/ directory
# Tools: Bash(npm test:*), Read, Edit
/create-command
# Error: Missing command name
# Prompt: "What command name would you like?"
# Action: Wait for user input before proceeding
/create-command custom-task --purpose="perform custom analysis" --workflow="analysis"
# Uses analysis workflow pattern
# Configures read-only tools
# Generates analytical workflow structure
/create-commandCreate a new command following existing patterns and organizational structure