Documentation Index
Fetch the complete documentation index at: https://docs.augmentcode.com/llms.txt
Use this file to discover all available pages before exploring further.
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
/<command-name> [arguments]
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 User Commands:
~/.claude/commands/<name>.md
- Claude Code Workspace Commands:
./.claude/commands/<name>.md
- Agents User Commands:
~/.agents/commands/<name>.md
- Agents Workspace Commands:
./.agents/commands/<name>.md
User Commands
Commands available across all your projects. These are user-wide and persist across different workspaces.
Location: ~/.augment/commands/
# Create a global command
mkdir -p ~/.augment/commands
echo "Review this code for security vulnerabilities:" > ~/.augment/commands/security-review.md
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/
# Create a workspace command
mkdir -p .augment/commands
echo "Analyze this code for performance issues and suggest optimizations:" > .augment/commands/optimize.md
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 the namespace: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.
# Command definition
echo 'Fix issue following our coding standards' > .augment/commands/fix-issue.md
# Usage
> /fix-issue 123
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 |
File: ~/.augment/commands/deploy-staging.md
---
description: Deploy the application to staging with health checks
argument-hint: [branch-name]
model: gpt-4o
---
Deploy the application to the staging environment:
1. Run all tests to ensure code quality
2. Build the application for production
3. Deploy to staging server
4. Run health checks to verify deployment
5. Send notification to team channel
Command Line Execution
We also provide the ability to execute custom commands from the command line using the auggie command <your_command> or list them with auggie command list. For complete command-line reference, see CLI Reference for Custom Commands.
# Execute a custom command
auggie command deploy-staging
# List all available commands (including custom ones)
auggie command list
Custom commands appear in the help output with their descriptions:
Available custom commands:
auggie command deploy-staging # Deploy the application to staging
auggie command security-review # Review code for security vulnerabilities
Custom commands vs. skills
Custom slash commands and skills are separate features that share the same /<name> invocation surface in interactive mode:
| Feature | Stored in | Purpose |
|---|
| Custom slash commands | .augment/commands/<name>.md (and Claude / Agents equivalents) | Reusable prompts and workflows you trigger with /<name> |
| Skills | .augment/skills/<name>/SKILL.md (and Claude / Agents equivalents) | Domain-specific knowledge packages following the agentskills.io specification, also invocable directly with /<skill-name> |
Both appear in the slash-command menu in interactive mode. Built-in slash commands take precedence over a custom command or skill that uses the same name, so pick names that do not collide with the commands listed in Interactive Mode Slash 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 Examples
Best 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