Skip to main content

example-command

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

Claude PluginsExample PluginApache-2.0

SKILL.md

Written by Claude Plugins and published in anthropics/claude-plugins-official under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.

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

When example-command runs

Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /example-command in Claude Code or $example-command in Codex.

Install example-command

Claude Code

Copy the example-command folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.

git clone --depth 1 https://github.com/anthropics/claude-plugins-official.git /tmp/anthropics-claude-plugins-official
mkdir -p .claude/skills
cp -r /tmp/anthropics-claude-plugins-official/plugins/example-plugin/skills/example-command .claude/skills/

Codex

Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if example-command does not appear.

git clone --depth 1 https://github.com/anthropics/claude-plugins-official.git /tmp/anthropics-claude-plugins-official
mkdir -p .agents/skills
cp -r /tmp/anthropics-claude-plugins-official/plugins/example-plugin/skills/example-command .agents/skills/

Treq

Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for example-command and choose Install….

Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.

Files

example-command ships one file, SKILL.md, shown above.

All skills by Claude Plugins