diff options
| author | Noah Zweben MacBook <noahz@anthropic.com> | 2025-11-20 11:47:24 -0800 |
|---|---|---|
| committer | Noah Zweben MacBook <noahz@anthropic.com> | 2025-11-20 11:47:24 -0800 |
| commit | 4ca561fb8532594e7a5faef945e85096fcec0616 (patch) | |
| tree | 0218e6f274b7fb9872d470da3b4dc1f6b28dd9e8 /plugins/example-plugin/commands/example-command.md | |
creating intital scaffolding for claude code pluginsnoahz/initial_scaffold
Diffstat (limited to 'plugins/example-plugin/commands/example-command.md')
| -rw-r--r-- | plugins/example-plugin/commands/example-command.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/example-plugin/commands/example-command.md b/plugins/example-plugin/commands/example-command.md new file mode 100644 index 00000000..103b7ee3 --- /dev/null +++ b/plugins/example-plugin/commands/example-command.md @@ -0,0 +1,37 @@ +--- +description: An example slash command that demonstrates command frontmatter options +argument-hint: <required-arg> [optional-arg] +allowed-tools: [Read, Glob, Grep, Bash] +--- + +# Example Command + +This command demonstrates slash command structure and frontmatter options. + +## Arguments + +The user invoked this command with: $ARGUMENTS + +## Instructions + +When this command is invoked: + +1. Parse the arguments provided by the user +2. Perform the requested action using allowed tools +3. Report results back to the user + +## Frontmatter Options Reference + +Commands support these frontmatter fields: + +- **description**: Short description shown in /help +- **argument-hint**: Hints for command arguments shown to user +- **allowed-tools**: Pre-approved tools for this command (reduces permission prompts) +- **model**: Override the model (e.g., "haiku", "sonnet", "opus") + +## Example Usage + +``` +/example-command my-argument +/example-command arg1 arg2 +``` |
