Custom Commands
The Custom Commands feature allows you to encapsulate frequently used prompts and workflows into reusable commands. Simply type/ in the Agent dialog to quickly invoke these commands, significantly improving your daily development efficiency.
Whether you frequently perform code reviews, generate test cases, or need quick access to project specifications, custom commands can simplify repetitive operations into “one-click” tasks.
Command Types and Scope
| Feature | User Commands | Project Commands |
|---|---|---|
| Scope | Applies to all projects for the current user | Only effective in the current project root directory and its subdirectories |
| Storage Path | - macOS / Linux: /home/<username>/.qoder/commands/ or /Users/<username>/.qoder/commands/- Windows: C:\Users\<username>\.qoder\commands\ | <project-root>/.qoder/commands/ |
| Use Cases | General development tasks, such as: • Code review • Generate unit tests | Project-specific tasks, such as: • Check project API specifications • Validate configuration file format |
| Sharing | Limited to current user only | Can be shared with team members via Git or other version control systems |
Note: User-level commands do not support cross-device synchronization. You can manually migrate configuration files.
Creating Custom Commands
-
Open the Command Management Interface
- Method 1: Go to the Commands page in Qoder Settings and click the “Add” button
- Method 2: Type
/in the dialog and click the “Add Command” shortcut at the bottom
-
Enter a unique command name (e.g.,
gen-test) in the top search bar, then press Enter. -
Select the command type:
- User-level: Universal commands applicable to all projects
- Project-level: Only available in the current project
- Fill in the complete prompt content in the guidance area. Your command will be automatically saved after saving the file.
-
Return to the conversation and type
/in the dialog to see your newly created command.
Example Commands
/code-inspect
/code-inspect
/security-check
/security-check
/create-pr
/create-pr
/project-test
/project-test
/gen-agents-md
/gen-agents-md