This directory contains example slash commands for your Claude Code plugin.
Creates reusable slash commands with YAML frontmatter for automating common tasks.
/plugin marketplace add jwplatta/prompt-library/plugin install template-plugin@jwplatta-claude-toolsThis directory contains example slash commands for your Claude Code plugin.
Slash commands are frequently-used prompts saved as Markdown files that you can invoke with /command-name.
Each command is a .md file with optional YAML frontmatter:
---
description: Brief description for /help
allowed-tools: Read, Write, Bash
argument-hint: [expected-args]
---
Your prompt content here.
Use $ARGUMENTS for all arguments or $1, $2, etc. for individual args.
/example - Basic template showing command structure/format-ruby - Format Ruby files with rubocop/review-code - Review code for bugs and style issues/generate-tests - Create test files for source code.md file in this directory$ARGUMENTS for parameters.md)# Basic command
/example hello world
# Format a Ruby file
/format-ruby app/models/user.rb
# Review code in a directory
/review-code app/controllers/
# Generate tests
/generate-tests lib/calculator.rb
description - Shown in /help command listallowed-tools - Restrict which tools can be usedargument-hint - Show expected arguments for autocompletemodel - Use specific model (sonnet, opus, haiku)allowed-tools for securitySee: https://docs.claude.com/en/docs/claude-code/slash-commands