example-command

Demonstrates the SKILL.md frontmatter layout for user-invoked slash commands.

2|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/ghoshsam/claude-code-skills --skill example-command-ghoshsam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: example-command
Source: https://github.com/ghoshsam/claude-code-skills/tree/main/skills/example-plugin/example-command
Command: npx skills add https://github.com/ghoshsam/claude-code-skills --skill example-command-ghoshsam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It provides a working reference template for authors who want to create user-invoked slash commands using the skills/<name>/SKILL.md directory layout instead of the legacy single-file command format. ## Core Features & Use Cases - Frontmatter Reference: Documents supported fields including name, description, argument-hint, allowed-tools, and model overrides. - Argument Handling: Shows how user-supplied arguments are passed into the skill via $ARGUMENTS for parsing and execution. - Tool Pre-approval: Demonstrates declaring allowed-tools (Read, Glob, Grep, Bash) to reduce permission prompts during execution. - Use Case: A developer building a new custom slash command copies this example to learn the required directory structure and frontmatter options before writing their own skill. ## Quick Start Invoke the example command with an argument like /example-command my-argument to see how the skill parses input and reports results.

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 custom slash command with SKILL.md?

Create a directory under skills/ named after your command and add a SKILL.md file with YAML frontmatter containing at least name and description. The Markdown body below the frontmatter holds the instructions executed when the command is invoked.

What frontmatter fields does a SKILL.md file support?

Supported fields include name, description, argument-hint, allowed-tools, and model. The name and description are required for discovery, while argument-hint shows usage hints and allowed-tools pre-approves tools to reduce permission prompts.

What is the difference between commands/*.md and skills/*/SKILL.md?

Both formats are loaded the same way and are functionally identical. The skills/<name>/SKILL.md layout differs only in file organization, allowing the skill to live in its own directory alongside optional scripts, references, and assets folders.

How do I pass arguments to a slash command skill?

Arguments typed after the command name are passed into the skill through the $ARGUMENTS placeholder. The skill instructions then parse these arguments and perform the requested action using its allowed tools.

Can I restrict which tools a skill can use?

Yes, declare the allowed-tools field in the frontmatter as a list such as [Read, Glob, Grep, Bash]. This pre-approves those tools for the skill and reduces permission prompts during execution.