/dagu:workflowsfrom dagu
Guides authoring Dagu workflow definitions with YAML, covering steps, executors, scheduling, dependencies, conditional execution, and retry policies.
Ships in dagu. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill activates when creating or modifying Dagu workflow definitions, configuring workflow steps, scheduling, or composing complex workflows.
# hello.yaml
steps:
- name: hello
command: echo "Hello from Dagu!"
name: my_workflow
description: Description of what this workflow does
# Schedule (optional)
schedule: "0 2 * * *" # Cron format: daily at 2 AM
# Environment variables
env:
- KEY: value
- DB_HOST: localhost
# Parameters
params: ENVIRONMENT=production
# Email notifications (optional)
mailOn:
failure: true
success: false
smtp:
host: smtp.example.com
port: 587
errorMail:
from: [email protected]
to: [email protected]
# Workflow steps
steps:
- name: step1
command: echo "First step"
- name: step2
command: echo "Second step"
depends:
- step1
steps:
- name: greet
command: echo "Hello, World!"
steps:
- name: process
command: |
echo "Starting processing..."
./scripts/process.sh
echo "Done!"
steps:
- name: build
dir: /path/to/project
command: make build
steps:
- name: deploy
env:
- ENVIRONMENT: production
- API_KEY: $API_KEY # From global env
command: ./deploy.sh
Command (default), Docker, SSH, HTTP, Mail, and JQ executor configuration: see references/executors.md.
Gotcha: the default executor (no executor: block) is the Command Executor — set
executor.type only when a step needs Docker, SSH, HTTP, Mail, or JQ.
Simple, multiple, and parallel dependency patterns via depends:: see references/steps-and-flow.md.
Gotcha: steps with no depends: run in parallel by default — sequencing is opt-in.
steps:
- name: deploy_production
preconditions:
- condition: "`echo $ENVIRONMENT`"
expected: "production"
command: ./deploy.sh
steps:
- name: optional_step
continueOn:
failure: true
command: ./might_fail.sh
- name: cleanup
depends:
- optional_step
command: ./cleanup.sh # Runs even if optional_step fails
steps:
- name: flaky_api_call
command: curl https://api.example.com/data
retryPolicy:
limit: 3
intervalSec: 10
steps:
- name: with_backoff
command: ./external_api.sh
retryPolicy:
limit: 5
intervalSec: 5
exponentialBackoff: true # 5s, 10s, 20s, 40s, 80s
steps:
- name: graceful_shutdown
command: ./long_running_process.sh
signalOnStop: SIGTERM # Send SIGTERM instead of SIGKILL
Passing step output to later steps via output: and captured script: variables: see references/steps-and-flow.md.
# Daily at 2 AM
schedule: "0 2 * * *"
# Every Monday at 9 AM
schedule: "0 9 * * 1"
# Every 15 minutes
schedule: "*/15 * * * *"
# First day of month at midnight
schedule: "0 0 1 * *"
# Only run during business hours
schedule:
start: "2024-01-01"
end: "2024-12-31"
cron: "0 9-17 * * 1-5" # Mon-Fri, 9 AM to 5 PM
Global, step-level, and file-loaded (.env) environment variables: see references/steps-and-flow.md.
Defining workflow params: and overriding them from the CLI: see references/steps-and-flow.md.
Calling and nesting sub-workflows with run:: see references/steps-and-flow.md.
Exit, failure, and success handlers via handlerOn:: see references/steps-and-flow.md.
Gotcha: handlerOn is declared once per workflow, alongside steps: — it is not nested inside an individual step.
Built-in ({{.Name}}, {{.Step.Name}}, {{.timestamp}}, {{.requestId}}) and custom params:-backed templates: see references/steps-and-flow.md.
Gotcha: custom parameters are referenced as {{.Params.NAME}}, not bare {{.NAME}} — the bare form is reserved for built-ins.
Complete ETL pipeline, multi-environment deployment, database backup, and health-check monitoring workflow artifacts: see references/common-patterns.md.
# Good: Clear, descriptive names
name: user_data_sync
description: Synchronize user data from CRM to database
# Good: Logical step names
steps:
- name: fetch_from_crm
- name: validate_data
- name: update_database
# Avoid: Generic names
name: workflow1
steps:
- name: step1
- name: step2
# Always define error handlers for critical workflows
handlerOn:
failure:
- name: cleanup
command: ./cleanup.sh
- name: notify
executor:
type: mail
config:
to: [email protected]
# Use retries for flaky operations
steps:
- name: api_call
command: curl https://api.example.com
retryPolicy:
limit: 3
intervalSec: 5
exponentialBackoff: true
# Use parameters for environment-specific values
params: ENVIRONMENT=development
# Load environment from files
env:
- config/$ENVIRONMENT.env
# Override in production
# dagu start workflow.yaml ENVIRONMENT=production
# Break complex workflows into sub-workflows
steps:
- name: data_ingestion
run: workflows/ingestion.yaml
- name: data_transformation
run: workflows/transformation.yaml
depends:
- data_ingestion
references/executors.md — Command (default), Docker, SSH, HTTP, Mail, and JQ executor configurationreferences/steps-and-flow.md — step dependencies, data flow, environment variables, parameters, sub-workflows, handlers, templatingreferences/common-patterns.md — complete ETL, multi-environment deployment, backup, and monitoring workflow artifactsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vinnie357/claude-skills --plugin dagu3 skills in this plugin
/rest-apiGuide for using the Dagu REST API. Use when programmatically managing workflows, querying execution status, or integrating Dagu with external systems./webuiGuide for using the Dagu Web UI. Use when monitoring workflow executions, managing DAGs through the browser, or troubleshooting workflow issues.2 plugins in one repository ship this exact skill · first indexed Aug 22, 2026
Other plugins' skills for the same job