Generated banner for Example Command
Generated logo for Example Command

Example Command

AnthropicOfficialPublished by Anthropic

  • Skill
  • Meta (authoring, orchestration, planning, memory)
  • Agent tooling
  • Apache-2.0
  • No issues found

From the author

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

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill serves as a reference implementation for developers building custom agent capabilities. It illustrates the required file structure, frontmatter configuration, and instruction patterns necessary to create functional slash commands within the agent environment. By following this layout, developers can define clear argument requirements, specify allowed tools to streamline permissions, and provide descriptive metadata for user discovery.

What it does

  • Demonstrates the standard directory layout for new agent skills.
  • Provides a template for defining skill metadata via YAML frontmatter.
  • Shows how to configure allowed tools to minimize permission prompts.
  • Illustrates how to handle and report user-provided arguments.
  • Serves as a reference for overriding default model configurations.

When to use it

  • When creating a new custom skill for an agent.
  • When migrating from legacy command formats to the current SKILL.md structure.
  • When learning how to properly document and configure skill arguments.
  • When setting up specific tool access for a new agent capability.

Advantages

  • Standardizes the development process for new agent skills.
  • Improves discoverability through structured metadata.
  • Enhances security by explicitly defining allowed tools.
  • Simplifies the configuration of model overrides.

Usage examples

“/example-command test-arg”
The agent parses 'test-arg' as the required argument and executes the defined logic, reporting the result back to the user.
“/example-command first second”
The agent processes both provided arguments and performs the requested action using the configured tools.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/anthropics/example-command/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip example-command.zip -d .agents/skills

Documentation by Anthropic

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

Files

Requirements and compatibility

Written for: Claude Code, Claude apps

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Declares allowed tools, Claude Code frontmatter

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Anthropic
Publisher
Anthropic (Official)
Source
anthropics/claude-plugins-official · plugins/example-plugin/skills/example-command · commit 0412be7
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from plugins/example-plugin/LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Anthropic or Anthropic.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download example-command.zip