Back to Hooks
Auto Slash Command
Enables slash command functionality (e.g., /plan, /test, /fix) within the chat interface. It detects slash patterns at the start of messages, parses a...
Auto Slash Command
Description
Enables slash command functionality (e.g., /plan, /test, /fix) within the chat interface. It detects slash patterns at the start of messages, parses arguments, and executes the corresponding skill or action.
Features
- Pattern Detection: Identifies commands starting with
/. - Command Routing: Maps commands to loaded Skills or internal actions.
- Template Replacement: Replaces the raw slash command with a structured prompt template defined by the skill.
- Error Handling: Provides feedback if a command is unknown or fails to execute.
Trigger Events
chat.message: Intercepts user messages before they are processed by the LLM.
Usage
Simply type /command [args] in the chat. For example:
/plan "Refactor auth module"/test src/auth