Back to Library

Slash Command Template

template

Template for creating custom Claude Code slash commands

slash-commandtemplateclaude-codeautomation
Prompt Content
---
description: {{command_description}}
---

# {{command_name}}

## Context
{{context}}

## Instructions
{{instructions}}

## Output Format
{{output_format}}

## Examples
```
{{examples}}
```
Variables
This prompt uses the following variables that should be replaced
{{command_name}}
command_namestringRequired

Name of the slash command

{{command_description}}
command_descriptionstringRequired

What the command does

{{context}}
contextstring

Background context

{{instructions}}
instructionsstringRequired

Step-by-step instructions

{{output_format}}
output_formatstring

Expected output format

{{examples}}
examplesstring

Usage examples

Details
Category
template
Version
1
Created
12/12/2025
Last Updated
12/12/2025