About Custom Slash Commands
Custom slash commands let you create reusable prompts stored as Markdown files that Auggie can run. You can organize commands by scope (workspace or user) and use directory structures for namespacing.Syntax
Parameters
Parameter | Description |
---|---|
<command-name> | Name derived from the Markdown filename |
[arguments] | Optional arguments passed to the command |
Command Types and Locations
Custom commands are stored in markdown files and can be placed in multiple locations with a specific order of precedence:Command Locations (in order of precedence)
- User Commands:
~/.augment/commands/<name>.md
(user) - Workspace Commands:
./.augment/commands/<name>.md
(workspace) - Claude Code Commands:
./.claude/commands/<name>.md
(.claude)
User Commands
Commands available across all your projects. These are user-wide and persist across different workspaces. Location:~/.augment/commands/
Workspace Commands
Commands stored in your repository and shared with your team. These are workspace-specific and can be committed to version control. Location:./.augment/commands/
Claude Code Compatibility
Auggie automatically detects and supports commands from./.claude/commands/
for compatibility with existing Claude Code setups. This allows teams already using Claude Code to continue using their existing command libraries without modification.
Location: ./.claude/commands/
and ~/.claude/commands/
Migration: While ./.claude/commands/
is supported for compatibility, we recommend migrating to ./.augment/commands/
for new projects to maintain consistency with Auggie’s naming conventions.
Features
Namespacing
Organize commands in subdirectories. Commands from nested directories can be accessed using thenamespace:command
syntax, where the namespace corresponds to the subdirectory name.
For example, a file at .augment/commands/frontend/component.md
creates the command /frontend:component
.
Conflicts between user and workspace level commands are not supported and will be defined in order of precedence above.
Arguments
Pass dynamic values to commands.Frontmatter
Command files support frontmatter for metadata:Frontmatter | Purpose | Default |
---|---|---|
description | Brief description of the command | Uses the first line from the prompt |
argument-hint | Expected arguments format that will be displayed after typing in a command | None |
model | Specify the model to run this command with (overrides the CLI default) | Uses the CLI default model |
~/.augment/commands/deploy-staging.md
Command Line Execution
We also provide the ability to execute custom commands from the command line using theauggie command <your_command>
or list them with auggie command list
. For complete command-line reference, see CLI Reference for Custom Commands.
Example Commands
For ready-to-use examples of custom slash commands, including code review templates, bug fix guides, and feature implementation plans, see: Custom Commands ExamplesBest Practices
- Use kebab-case naming for command names (e.g.,
deploy-staging
,run-tests
) - Keep names descriptive but concise, avoiding spaces and special characters
- Use meaningful prefixes for related commands (e.g.,
deploy-staging
,deploy-production
) - Include clear descriptions in frontmatter for better discoverability
- Break complex workflows into numbered steps for clarity
- Use user commands (
~/.augment/commands/
) for personal workflows across all projects - Use workspace commands (
./.augment/commands/
) for team-shared, project-specific tasks - Organize with subdirectories for related command groups using namespacing
- Document command purpose and expected outcomes clearly
- Version your commands when making significant changes
See Also
- Custom Commands Examples - Ready-to-use command templates and examples
- Interactive Mode Slash Commands - Learn about Auggie’s interactive terminal features
- CLI Reference for Custom Commands - Complete reference for command-line flags