Skip to content

Workflows

A workflow is a step-by-step Markdown procedure for work you repeat in the same order every time, such as deploying, cutting a release, or opening a PR. When you invoke a workflow, its full text is injected into the current task as explicit instructions.

How it differs from Rules: rules apply to every request, while a workflow is injected once, when you invoke it.

SourceLocationNotes
Workspace<workspace>/.agents/workflows/Applies to that workspace only
Workspace (legacy)<workspace>/.clinerules/workflows/Read for compatibility; move files to .agents/workflows/
Global<documents-root>/workflows/Applies to every workspace
RemotePushed by your organization’s remote configurationManaged by the organization and may be always enabled
  • Directories are scanned recursively, so files in subfolders are found too.
  • <documents-root> defaults to a dline folder inside your operating system’s Documents folder and can be overridden with the DLINE_DOCS_DIR environment variable.
---
name: release-review
description: Check changes, tests, and the changelog before a release
---
# Release review
1. Use `git log` to list commits since the last version tag.
2. Run `npm run check-types` and `npm run test:run`, and record any failures.
3. Check that the CHANGELOG covers every user-facing change.
4. Summarize the risks and conclude whether the release can ship.
  • The command name comes from the file name without its .md or .txt extension, so the file above should be named release-review.md.
  • Frontmatter is optional. name sets the display name in the slash menu; keep it equal to the file name, otherwise the name shown in the menu cannot be used to invoke the workflow.
  • The menu description comes from description. Without it, Dline uses the first line of the body (without the # heading marker). Descriptions longer than 80 characters are truncated.

Type / in the input box to see every enabled workflow in the menu, or type the command directly:

/workflow:release-review Only check the packages/api folder this time
  • /workflow:<name> is the standard form. For compatibility, /<name> and /<name>.md also work.
  • The slash command itself is removed from the message; the rest of the message is sent as usual.
  • Only one slash command is processed per message: the first one that matches.
  • When names collide, workspace wins over global, and global wins over remote.

Typing /rel and choosing release-review in the slash menu fills the input with /workflowTyping /rel and choosing release-review in the slash menu fills the input with /workflow

With the Standard prompt profile, the model can also load an enabled workflow by name with the load_workflow tool. See the Tools reference.

Select the scale icon in the toolbar below the input box (tooltip Manage Dline Rules & Workflows) and switch to the Workflows tab:

  • Workflows are grouped into global and workspace sections, and every file has its own toggle. A disabled workflow does not appear in the slash menu and cannot be invoked.
  • Toggles are saved with the same scope as rules: the panel shows Toggles saved for this task only or Toggles saved for this workspace.
  • Remote workflows from your organization are announced by a notice at the top of the panel.

The Workflows tab of the capabilities panel: release-review.md under Workspace Workflows with its toggleThe Workflows tab of the capabilities panel: release-review.md under Workspace Workflows with its toggle

Toggling rules, skills, and workflows in the capabilities panelToggling rules, skills, and workflows in the capabilities panel