Example Commands
Here are some practical examples of custom slash commands you can use in your projects:Code Review Command
Code Review Command
Bug Fix Template
Bug Fix Template
Feature Implementation Guide
Feature Implementation Guide
Security Review Command
Security Review Command
Performance Optimization
Performance Optimization
Documentation Generator
Documentation Generator
Test Generation Command
Test Generation Command
How to Add Commands to Your Project
To use these custom slash commands in your project, you need to save them in the.augment/commands/
directory:
Step 1: Create the Commands Directory
First, create the.augment/commands/
directory in your project root if it doesn’t exist:
Step 2: Save Command Files
Save each command as a separate.md
file in the .augment/commands/
directory. For example:
Step 3: Use Your Commands
Once saved, your custom commands become available as slash commands in Augment:Directory Structure
Your project structure should look like this:Usage Tips
- Save these templates in your
.augment/commands/
directory - Customize the prompts to match your team’s coding standards and practices
- Add project-specific context to make the commands more effective
- Combine commands by referencing outputs from one command in another
- Use meaningful filenames like
code-review.md
,bug-fix.md
, etc. - Version control your commands by committing the
.augment/commands/
directory to your repository
Creating Your Own Examples
When creating custom commands, consider these patterns:- Start with a clear description in the frontmatter
- Use argument hints to guide users on expected inputs
- Structure your prompts with numbered lists or bullet points
- Include specific instructions for the type of analysis or output you want
- Reference the
$ARGUMENTS
variable where user input should be inserted
See Also
- Custom Slash Commands - Learn how to create and manage custom commands
- CLI Reference for Custom Commands - Complete command-line reference for custom commands