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/ |
| Directory Organization | Supports categorization by folders under the commands directory | Supports categorization by folders under the commands directory |
| 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. Note: Before creating a project-level command, please open the target project first; if user-level and project-level commands with the same name exist simultaneously, a scope indicator will be attached in the list for easy distinction.
Creating Custom Commands
- Open the command management interface. Open Qoder IDE settings, select Skills & Commands, and select New in the Commands section.
-
Select a command type.
- User commands apply to all projects for the current user.
- Project commands are available only in the current project. Open the target project before creating one.
-
Enter a unique command name, such as
gen-test, in the input box at the top, then press Enter. Choose a short, clear name that's easy to remember. -
Follow these rules when naming commands.
- Use only lowercase letters, numbers, hyphens (
-), and underscores (_). - Enter a name.
- Aim for no more than 100 characters.
- Use a unique name within the same scope.
- Use only lowercase letters, numbers, hyphens (
- Fill in the command description and body in the editor. Use a short description to explain the purpose, and include the complete prompt or steps in the body.
-
Save, return to chat, and type
/in the input box to find and invoke the new command.
Note: If the command body is empty or only retains the default placeholder content, the command will not appear in the available list.
Command Updates and List Refresh
When you add, modify, or delete command files, the command list will refresh to the latest state, allowing you to seamlessly continue using the latest version in your conversation.
Common refresh scenarios include:
- After adding a command, a new option will appear in the list
- After modifying command content, subsequent selections will use the updated content
- After deleting a command, the corresponding item will disappear from the list
- Place commands into different subdirectories by purpose for easier organization
- Provide clear descriptions for commands to facilitate searching and identification in the list
- Regularly clean up old, unused commands to reduce duplication and confusion
Example Commands
/code-inspect
/code-inspect
/security-check
/security-check
/create-pr
/create-pr
/project-test
/project-test
/gen-agents-md
/gen-agents-md