Skip to content

Slash Command Developer

Teaches the agent to write Claude Code slash commands with frontmatter, arguments, and file references

Stars
45,770
Licence
Apache-2.0
Files
11 files

What it does

When installed, the agent knows how to design custom slash commands for Claude Code: Markdown prompt files that run when a user types a command like /review-pr. It guides the agent on writing commands as instructions to Claude, setting YAML frontmatter options such as allowed tools and model, passing arguments with $ARGUMENTS or $1, $2, and including file references with @ syntax. The skill is reference material and guidance; the files shown describe it rather than adding new executable tools.

Great for

  • Developers building team or personal slash commands for Claude Code
  • Plugin authors who want to add commands to a plugin's commands folder
  • Anyone wanting help structuring reusable prompt workflows

Skip it if

  • Non-developers who just want to use existing commands, since it teaches authoring rather than providing a ready-made tool
  • Projects using other agents, because the guidance is specific to Claude Code's command format and may not apply elsewhere

Try asking

  • “Create a slash command that reviews a file for security issues and takes a file path argument”
  • “Write a /review-pr command that takes PR number, priority and assignee as positional arguments”
  • “Add frontmatter to my command so it only uses git-related Bash tools”
  • “Set up an interactive command that asks the user questions before running”
Step-by-step guide: how to use Slash Command DeveloperInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 11 original files, the Apache-2.0 licence and an attribution note.

    command-development.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip command-development.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip command-development.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Ask the agent to write commands as instructions to Claude rather than messages to the user, as the skill recommends
  • Restrict allowed-tools to the minimum needed, such as Bash(git:*), to reduce risk from commands you create
  • Note that the skill marks .claude/commands/ as a legacy format and suggests the .claude/skills/<name>/SKILL.md layout for new work

What's inside

  • examples/plugin-commands.md
  • examples/simple-commands.md
  • README.md
  • references/advanced-workflows.md
  • references/documentation-patterns.md
  • references/frontmatter-reference.md
  • references/interactive-commands.md
  • references/marketplace-considerations.md
  • references/plugin-features-reference.md
  • references/testing-strategies.md
  • SKILL.md

Redistributed unmodified from anthropics/claude-plugins-official under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.