Skip to content
WARDEN DOCS Get Warden free
04FEATURES

Workflows

Ordered chains of skills, commands and other workflows, stored with your repository and run from chat, a button, an automation or the Software Factory.

View .md

A workflow is a fixed list of steps your repository carries with it: run the pre-PR checks, then the security audit, then draft the changelog. It runs top to bottom, stops when a required step fails, and every step goes through your rules.

Create a workflow#

  1. Open a project's Workflows tab and press New workflow.
  2. Give it a name (it becomes the slash command, /pre-pr-checks) and say what it does.
  3. Add steps. Each is a Skill (search your skills), a Command (a shell command) or a Sub-workflow (another workflow, nested up to five deep).
  4. Save workflow. It is written to .warden/workflows/<name>.yaml in the repository, so the team gets it with the code.

Per step:

OptionMeans
Step nameAn optional label.
RequiredOn by default: if this step fails, the chain stops and the run is marked failed. Off: the chain carries on.
Pass output to next stepHands a summary (up to 2,000 characters) to the next step.
OutputInherit, Deliverable (shown word for word), Check or Internal.
.warden/workflows/pre-pr-flow.yaml
name: pre-pr-flow
description: Checks, then a security audit, then the release gate
steps:
  - name: Local checks
    kind: skill
    ref: pre-pr-checks
    pass_output: true
  - kind: command
    ref: "ruff check ."
  - kind: workflow
    ref: release-gate
    required: false

Warden reads workflows from .warden/workflows/ and .agents/workflows/ in the project, then ~/.warden/workflows/ and ~/.agents/workflows/ for ones you want everywhere. A project workflow wins over a global one with the same name.

Run a workflow#

FromHow it runs
ChatType /pre-pr-flow. The agent works through the steps in order and stops if a required step fails. Every tool call it makes is checked by your rules as usual.
The Run buttonOn the Workflows tab. A strict runner executes the steps exactly, with live output, using the chat's current model. Every command step is checked by your rules before it runs: a deny skips it and names the rule; an ask shows Run once or Don't run.
An automationThe Run a workflow action, for example after the agent edits files. It runs unattended, so an ask is held for your review. See Automations.
Assurance and the FactoryA workflow can be an assurance gate or a custom Software Factory step.