What are Workflows?
Workflows are similar to Rules, but with one key difference:Rules
Always ActiveAutomatically applied to every task when toggled onExample: Coding standards, style guides
Workflows
On-DemandInvoked only when you use the slash commandExample: Deployment checklists, review processes
Quick Example
Here’s a simple deployment workflow: File:.clinerules/workflows/deploy.md
Creating Workflows
- Manual Creation
- Slash Command
Create workflow files in the
.clinerules/workflows/ directory:- Create
.clinerules/workflows/in your repository root - Add markdown files with your workflow instructions
- Use descriptive names matching your slash command
Using Workflows
Invoking Workflows
Simply type/ followed by the workflow filename (without .md):
Workflow Naming
- Use lowercase with hyphens:
deploy.md,code-review.md - Keep names short and memorable
- Name should indicate the workflow’s purpose
Global vs Workspace Workflows
Workspace Workflows
Location:
.clinerules/workflows/ in your repositoryScope: Specific to that projectUse for: Project-specific processes and checklistsGlobal Workflows
Location:
Documents/Cline/Workflows/ directoryScope: All your projectsUse for: Personal workflows that apply everywherePrecedence: Local workflows override global workflows if they have the same name.
Managing Workflows
Toggling Workflows
You can enable or disable workflows:- Click the rules icon in Cline’s interface
- Switch to the “Workflows” tab
- Toggle workflows on/off as needed
Disabling a workflow prevents it from being invoked, but keeps the file intact. The slash command won’t work until you re-enable it.
Enterprise Remote Workflows
Enterprise deployments can configure remote global workflows that are available to all team members. These are managed through your infrastructure configuration.See Self-Hosted Configuration for details on remote workflows.
Example Workflows
Code Review Workflow
Code Review Workflow
Bug Triage Workflow
Bug Triage Workflow
Feature Planning Workflow
Feature Planning Workflow
Best Practices
Keep Workflows Action-Oriented
Keep Workflows Action-Oriented
Workflows should contain actionable steps, not general advice:
- ✅ “Run
npm testand verify all tests pass” - ❌ “Make sure testing is done properly”
Use Checklists
Use Checklists
Format workflows as checklists when possible:
- Easy to follow step-by-step
- Clear progress tracking
- Reduces missed steps
Include Context
Include Context
Add why behind each step:
Version as Code
Version as Code
Workflows live in your repository:
- Track changes in git
- Review updates in PRs
- Maintain history of process evolution
Workflows vs Rules: When to Use Each
| Use Rules When | Use Workflows When |
|---|---|
| Guidance should apply to every task | Process is invoked occasionally |
| Standards that rarely change | Checklist for specific scenarios |
| Always-on coding conventions | On-demand deployment processes |
| General coding style | Specific review procedures |
- Rule: “Use TypeScript strict mode and explicit return types”
- Workflow: “Follow these 10 steps when deploying to production”

