Commands are custom prompts you can trigger with a slash in chat. Define commands usingDocumentation Index
Fetch the complete documentation index at: https://docs.firebender.com/llms.txt
Use this file to discover all available pages before exploring further.
.mdc files in the .firebender/commands/ directory.
Type
/help in the chat to get help creating commandsConfiguration Locations
Firebender supports two command scopes:- Project Commands:
.firebender/commands/*.mdcin your project root - Personal Commands:
~/.firebender/commands/*.mdcfor commands that apply across all projects
File Format
Command files use the.mdc extension with optional YAML frontmatter:
.firebender/commands/create-pr.mdc
Frontmatter Fields
All frontmatter fields are optional:| Field | Type | Description |
|---|---|---|
name | string | Command name shown in UI. Defaults to filename without extension |
description | string | Brief description shown in command picker |
model | string | Model to use. See available models |
mode | string | Execution mode: auto, read, write, or composer |
No Frontmatter
If you omit the frontmatter, the filename becomes the command name and the entire file content is the prompt:.firebender/commands/quick-review.mdc
Frontmatter Reference
name
The display name for the command. If omitted, uses the filename without the.mdc extension.
description
A brief description shown in the command picker to help identify the command.model
The AI model to use for this command. Options:"default": Uses the system’s default model"quick": Uses the fastest available model- Any specific model ID (e.g.,
"claude-sonnet-4-20250514","gpt-4o")
mode
How Firebender should execute the command:"auto": Let Firebender determine the best mode (default)"read": Read-only mode for analysis and explanations"write": Agent mode for code changes and terminal commands"composer": UI composition mode
Examples
Code Review Command
.firebender/commands/review-diff.mdc
Changelog Generator
.firebender/commands/write-changelog.mdc
Quick Question (Read-only)
~/.firebender/commands/explain.mdc
Symbolic Links
Commands support symbolic links. You can symlink command files from a shared location:Migration from firebender.json
If you have commands defined infirebender.json, migrate them to .mdc files:
Before (deprecated):
.firebender/commands/create-pr.mdc