---
name: Example Command
slug: example-command-2
category: AI Engineering
description: Example Command demonstrates the skills/<name>/SKILL.md layout for user-invoked slash commands. Use it as a reference for frontmatter fields, arguments, and allowed-tools options.
github: "https://github.com/fazxes/Claude-code/tree/main/stubs/downloads/official-plugins/marketplaces/claude-plugins-official/plugins/example-plugin/skills/example-command"
language: TypeScript
stars: 234
forks: 216
install: "npx degit https://github.com/fazxes/Claude-code/tree/main/stubs/downloads/official-plugins/marketplaces/claude-plugins-official/plugins/example-plugin/skills/example-command ~/.claude/skills/example-command"
installs_to: ~/.claude/skills/example-command
source_path: stubs/downloads/official-plugins/marketplaces/claude-plugins-official/plugins/example-plugin/skills/example-command/SKILL.md
collection_size: 25
category_size: 2793
collection_url: "https://dirskills.com/collections/fazxes/Claude-code"
added: 2026-09-03T06:04:13.775Z
last_synced: 2026-09-03T06:04:13.775Z
canonical_url: "https://dirskills.com/skills/example-command-2"
---

# Example Command

Example Command demonstrates the skills/<name>/SKILL.md layout for user-invoked slash commands. Use it as a reference for frontmatter fields, arguments, and allowed-tools options.

**Install:**

```bash
npx degit https://github.com/fazxes/Claude-code/tree/main/stubs/downloads/official-plugins/marketplaces/claude-plugins-official/plugins/example-plugin/skills/example-command ~/.claude/skills/example-command
```

## README

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