example-command

Demonstrates the skills/<name>/SKILL.md layout for user-invoked slash commands.

1|Updated Jul 6, 2015
One-click install
npx skills add https://github.com/ksolomon/dotfiles --skill example-command-ksolomon
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: example-command
Source: https://github.com/ksolomon/dotfiles/tree/main/AI/.claude/plugins/marketplaces/claude-plugins-official/plugins/example-plugin/skills/example-command
Command: npx skills add https://github.com/ksolomon/dotfiles --skill example-command-ksolomon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers building Claude plugins need a working reference for how user-invoked skills are structured, and this example shows the skills/<name>/SKILL.md layout with all supported frontmatter options in one place. ## Core Features & Use Cases - Layout Reference: Demonstrates the skills/<name>/SKILL.md directory structure as an alternative to the legacy commands/<name>.md format. - Frontmatter Documentation: Lists supported fields including name, description, argument-hint, allowed-tools, and model overrides. - Use Case: A plugin author copies this example as a starting template when creating a new slash command skill, then adapts the frontmatter and instructions to their own workflow. ## Quick Start Invoke the skill with /example-command followed by your arguments to see how argument parsing and allowed tools work.

Frequently Asked Questions about example-command

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a slash command skill for Claude?▼

Create a directory under skills/<name>/ containing a SKILL.md file with YAML frontmatter defining name and description, followed by Markdown instructions. The skill is invoked with /<name> and receives user input via the $ARGUMENTS variable.

What frontmatter fields does a SKILL.md file support?▼

SKILL.md supports name, description, argument-hint, allowed-tools, and model fields. The name must match the directory name, allowed-tools pre-approves tools like Read and Bash, and model can override the default with haiku, sonnet, or opus.

What is the difference between skills/ and commands/ layouts?▼

The skills/<name>/SKILL.md layout and the legacy commands/<name>.md format are functionally identical and loaded the same way. Only the file layout differs, with the skills layout grouping each command in its own directory.

How do I pass arguments to a Claude slash command?▼

Append arguments after the command name, such as /example-command arg1 arg2. Inside the skill, the $ARGUMENTS variable contains everything the user typed, which the instructions can parse and act on.

Can I restrict which tools a skill can use?▼

Yes, the allowed-tools frontmatter field pre-approves specific tools such as Read, Glob, Grep, and Bash for the skill. This reduces permission prompts when the skill runs.