Turn Reoccurring Workflows into Custom Slash Commands
Save successful complex sequences as custom slash commands for reuse.
Convert any successful sequence of AI commands into a reusable slash command by pressing 's' after a workflow run in Qwen Code.
The Scenario
You have developed a specific multi-step AI workflow for a recurring task like 'Prepare PR Summary' or 'Setup Test Environment' and want to reuse it daily.
Before & after
You repeat a series of prompts for deployment or testing every morning, manually copying and pasting steps for 15–20 minutes.
After a successful run, press 's' to save the sequence. You can now execute the entire multi-step process in under 10 seconds by typing the slash command.
The Prompt
[RUN_YOUR_WORKFLOW_FIRST] s / [WORKFLOW_NAME]
This 'Dynamic Workflow' feature allows for session-level persistence, meaning you can also resume an interrupted run without starting over.
Source
Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs"after a run, press s to save the script as a slash command — next time just type / to invoke it."
