example-plugin/example-command

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

Content Preview
---
description: An example slash command that demonstrates command frontmatter options (legacy format)
argument-hint: <required-arg> [optional-arg]
allowed-tools: [Read, Glob, Grep, Bash]
---

# 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.

T
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/example-plugin/example-command.md \
  https://raw.githubusercontent.com/anthropics/claude-plugins-official/main/plugins/example-plugin/commands/example-command.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/anthropics/claude-plugins-official

Then reference at plugins/example-plugin/commands/example-command.md

Related Skills