Create a new slash command with proper frontmatter
/plugin marketplace add astoeffer/moodle-plugin-marketplace/plugin install plugin-builder@astoeffer-dev-plugins<command-name> [plugin-path]pb/Create a new Claude Code slash command with the name: $1 Target plugin path: $2 (defaults to current directory)
Parse command name
:, use prefix subdirectory (e.g., git:commit → commands/git/commit.md)commands/ directlyValidate command name
Create command file
---
description: [Ask user for description]
argument-hint: [Ask if command takes arguments]
allowed-tools: [Ask which tools needed]
model: [Optional - ask if specific model needed]
---
# Command Purpose
[Ask user for the command instructions]
## Arguments
- `$ARGUMENTS` - All arguments as string
- `$1`, `$2`, etc. - Positional arguments
## Instructions
[What should Claude do when this command is invoked]
For prefixed commands like /prefix:command:
commands/prefix/command.md/prefix:command in helpAfter creation, verify:
.md/create-commandGuided slash command creation with brainstorming and best practices. Triggers: new command, create command, slash command, start command, build command, add command, write command Use when: creating a new slash command from scratch, need guided brainstorming for command design, want structured workflow for command development DO NOT use when: creating skills - use /create-skill instead. DO NOT use when: creating hooks - use /create-hook instead. DO NOT use when: modifying existing commands - edit directly. Use this command to create any new slash command.