Create Custom Slash Commands for Recurring AI Workflows
Turn repetitive multi-step prompt sequences into reusable slash commands.
Save your most frequent multi-step workflows as custom slash commands within the Qwen Code terminal to speed up recurring operations.
The Scenario
You have a recurring task, such as 'Prepare a Weekly Security Report from logs' or 'Verify API Documentation against code', that requires the same complex instructions every time.
Before & after
You manually copy-paste long system instructions or multi-step SOPs from a notepad into your AI chat every time you start a specific task. This takes 3–5 minutes per session.
In Qwen Code, you can now define and save custom workflows as slash commands. This reduces the time to initiate standard tasks to under 30 seconds.
The Prompt
/save_workflow [NAME] [DESCRIBE_YOUR_REUSABLE_MULTI_STEP_PROCESS]
Saving workflows allows you to codify your best practices (like PR review checklists or specific documentation styles) into the tool's interface.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"workflows can be saved as slash commands and reused."
