# Example Command

An example user-invoked skill that demonstrates frontmatter options and the...

- Repository: https://github.com/anthropics/claude-plugins-official (45706 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add anthropics/claude-plugins-official --skill example-command -g -a claude-code -y`
Codex: `npx skills add anthropics/claude-plugins-official --skill example-command -g -a codex -y`
Cursor: `npx skills add anthropics/claude-plugins-official --skill example-command -g -a cursor -y`
Gemini CLI: `npx skills add anthropics/claude-plugins-official --skill example-command -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add anthropics/claude-plugins-official`

## Description

An example user-invoked skill that demonstrates frontmatter options and the skills/<name>/SKILL.md layout

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Example Command (Skill Format)

This demonstrates the `skills/<name>/SKILL.md` layout for user-invoked slash commands. It is functionally identical to the legacy `commands/example-command.md` format, both are loaded the same way; only the file layout differs.

## Arguments

The user invoked this with: $ARGUMENTS

## Instructions

When this skill 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

Skills in this layout support these frontmatter fields:

- **name**: Skill identifier (matches directory name)
- **description**: Short description shown in /help
- **argument-hint**: Hints for command arguments shown to user
- **allowed-tools**: Pre-approved tools for this skill (reduces permission prompts)
- **model**: Override the model (e.g., "haiku", "sonnet", "opus")

## Example Usage

```
/example-command my-argument
/example-command arg1 arg2
```

