Skip to main content
Custom commands let you create reusable prompts and workflows as Markdown files. Use them to standardize common processes of your team into single commands and automate repetitive tasks. You can create Markdown files in the ./kombai/commands/ directory of your project, or add the path to your existing global or project-level commands directory via the Manage rules & commands modal.

Run custom commands

  1. Launch Kombai extension in your IDE.
  2. Type a slash / in the chat input box to check the available commands.
  3. Select the custom command you want to run.
  4. Add any other instructions you want to add to Kombai.
  5. Press Enter or click the
    button to run the command.
Kombai will now run the workflow defined in the associated Markdown.

Add directory path

Kombai supports project-level as well as global commands. Project-level commands are specific to a project, while global commands are supported across all projects where you use Kombai. Here’s how to add a directory path:
  1. Copy the path of the directory that contains your custom commands’ Markdown files.
  2. In Kombai, click the
    icon below the chat input box.
  3. Go to the Commands tab.
  4. Paste the path of the folder into the Project Commands Directory(for project-level commands) or User Commands Directory(for global commands) input field.
  5. Click the
    icon.
  6. Click the Close button.

Delete directory path

Here’s how to delete a directory path:
  1. Launch Kombai extension in your IDE.
  2. Click the
    icon below the chat input box.
  3. Go to the Commands tab.
  4. Click the
    icon next to the directory path you want to delete. Alternatively, you can click the Remove All button to delete all saved directory paths.
  5. Click the Close button.

FAQs

Spec Kit and OpenSpec are tools that allow you to create custom commands. You can add the path to the generated commands folder via the Manage rules & commands modal.For example, if you have a .cursor/commands folder created by OpenSpec, simply add that path to the modal. See “Add directory path” for instructions on how to add a directory.If you are using Spec Kit, you have to also add the path to the new specify-rules file, e.g., .cursor/rules/specify-rules.mdc. Refer to the “Add rule path” guide for instructions on how to add a rule path.