Skip to main content
Workflows are Markdown files that define a series of steps to guide Cline through repetitive or complex tasks. Type / followed by the workflow’s filename to invoke it — for example, /release.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. 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 numbered steps. The filename becomes the command: deploy.md is invoked with /deploy.md.
Steps can be written at different levels of detail:
  • 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 is created with a .md extension.
3

Write your workflow

Add a title and numbered steps in Markdown format. Describe what each step should accomplish.
Create workflows from completed tasks. After finishing something you’ll need to repeat, tell Cline: “Create a workflow for the process I just completed.” Cline analyzes the conversation, identifies the steps, and generates the workflow file. Your accumulated context becomes reusable automation.

Invoking workflows

Type / in the chat input to see available workflows. Cline shows autocomplete suggestions as you type — /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 controls which workflows appear in the / menu without deleting the file.

Where workflows live

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. Workspace workflows take precedence when names match global 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.
Write steps as plain instructions. Cline interprets them and figures out which tools to use:
This approach works well when you want Cline to adapt to the situation rather than follow rigid steps.

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. A deploy.md should deploy. A setup-db.md should set up the database. Split complex processes into multiple focused workflows. Version control your workflows. Store workflows in .clinerules/workflows/ and commit them. Your team can share, review, and improve them together.
Workflows execute with your permissions. Review workflows before running them, especially those from external sources.

Example workflow

This workflow automates a pre-release checklist. It verifies your working directory is clean, runs tests and the build, prompts for the version bump, and generates a changelog from recent commits. The workflow demonstrates both approaches: XML tool syntax for steps that need precise control, and natural language for steps where Cline should adapt to the situation.
Invoke it with /release-prep.md and Cline walks through each step, pausing for your approval.