/ followed by the workflow’s filename to invoke it (e.g., /deploy.md).
Deploying, setting up a new project, running through a release checklist: these tasks often require remembering a dozen steps, running commands in the right order, and updating files manually. Mess up one step and you’re debugging for an hour. Workflows turn those multi-step processes into one command. Type /release.md and Cline handles the version bump, runs tests, updates the changelog, commits, tags, and pushes. You just review and approve.
Workflow Structure
A workflow is a markdown file with a title and steps. The filename becomes the command:demo-workflow.md is invoked with /demo-workflow.md.
demo-workflow.md
- High-level: “Run the test suite and fix any failures” lets Cline decide how to accomplish the goal
- Specific: Use XML tool syntax or exact commands when you need precise control
Creating Workflows
1
Open the Workflows menu
Click the scale icon at the bottom of the Cline panel, to the left of the model selector. Switch to the Workflows tab.
2
Create a new workflow file
Click “New workflow file…” and enter a filename (e.g.,
deploy). The file will be created with a .md extension.3
Write your workflow
Add a title and numbered steps in markdown format. Describe what each step should accomplish.
Invoking Workflows
Type/ in the chat input to see available workflows. Cline shows autocomplete suggestions as you type, so /rel would match release-prep.md. Select a workflow and press Enter to start it.
Cline executes each step in sequence, pausing for your approval when needed. You can stop a workflow at any point by rejecting a step.
Toggling Workflows
Every workflow has a toggle to enable or disable it. This lets you control which workflows appear in the/ menu without deleting the file.
Where Workflows Live
Workflows can be stored in two locations: your project workspace or globally on your system. Workspace workflows go in.clinerules/workflows/ at your project root. Use these for project-specific automation like deployment scripts, release processes, or setup procedures that your team shares.
Global workflows go in your system’s Cline Workflows directory. Use these for personal productivity workflows you use across all projects.
Global Workflows Directory
| Operating System | Default Location |
|---|---|
| Windows | Documents\Cline\Workflows |
| macOS | ~/Documents/Cline/Workflows |
| Linux/WSL | ~/Documents/Cline/Workflows |
What Workflows Can Use
Workflows can combine natural language instructions with specific tool calls. This flexibility lets you write workflows that are as simple or as precise as your task requires.Natural Language
Make a full review of the skills documentation. Write steps as plain instructions. Cline interprets them and figures out which tools to use:Cline Tools
For precise control, use Cline’s built-in tools with XML syntax. This guarantees specific actions:CLI Tools
Reference any command-line tool installed on your machine. Git, npm, docker, gh, make, curl: whatever you have available.MCP Tools
If you have MCP servers connected, use them in your workflows with theuse_mcp_tool syntax. This lets you integrate with external services like GitHub, Slack, databases, or custom internal tools.
Writing Effective Workflows
Start simple. Write natural language steps first. Only add XML tool calls when you need guaranteed behavior. Be specific about decisions. If a step requires user input, make that explicit: “Ask whether to deploy to production or staging.” Include failure handling. Tell Cline what to do when something goes wrong: “If tests fail, show the failures and stop the workflow.” Keep workflows focused. Adeploy.md should deploy. A setup-db.md should set up the database. Split complex processes into multiple workflows that can be run independently.
Version control your workflows. Store workflows in .clinerules/workflows/ and commit them. Your team can share, review, and improve them together.
Example: Release Preparation
This workflow automates the tedious pre-release checklist. It verifies your working directory is clean, runs tests and builds, prompts you for the version bump, and generates a changelog from recent commits. The workflow demonstrates both approaches: XML tool syntax (<execute_command>, <ask_followup_question>) for steps that need precise control, and natural language for steps where Cline should adapt to the situation.
release-prep.md
/release-prep.md and Cline walks through each step.
