ClaudeSuperPower

example-command

Command

An example slash command that demonstrates command frontmatter options (legacy format)

Type this in Claude Code
/example-command <required-arg> [optional-arg]
required-arg
required
optional-arg
optional
Claude can also invoke this on its own

What it tells Claude to do

33 lines

The prompt this command injects, verbatim. Worth reading before you run it.

# Example Command (Legacy `commands/` Format)

> **Note:** This demonstrates the legacy `commands/*.md` layout. For new plugins, prefer the `skills/<name>/SKILL.md` directory format (see `skills/example-command/SKILL.md` in this plugin). Both are loaded identically — the only difference is file layout.

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
```

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Run shell commands

Declares Bash

~22 tokens of context used while enabled, before you invoke anything

All declared tools (4)
BashGlobGrepRead

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just commands.