Back to library
AI
tutorial

Create Custom Slash Commands for Frequent AI Workflows

Convert frequent multi-step AI workflows into reusable slash commands.

Record and save your most frequent sequences of interactions as custom slash commands to automate your development environment setup and routine tasks.

Qwen

The Scenario

You have a specific sequence of actions—such as checking a directory, compressing logs, and running a health check—that you perform at the start of every session.

Before & after

The old way

Users manually repeat sequences of commands like switching directories, compressing files, and calling sub-agents for every project. This repetitive setup takes 10-15 minutes every time.

With AI

By saving these steps as a slash command, you can trigger the entire multi-step agentic workflow with one word. The execution takes less than 1 minute.

The Prompt

/save-workflow [NAME_OF_COMMAND] "[SEQUENCE_OF_ACTIONS_OR_COMMANDS]"

Qwen Code now allows you to save custom workflows as new slash commands, effectively creating your own automation library.

Source

Qwen Code Blog: AI Coding Updates and Guides | Qwen Code Docs
"workflows can be saved as slash commands and reused... /skills visual skill management... Save & Reuse Workflows..."