writing-agent-relay-workflows
Writing Agent Relay Workflows
⚠️ DEPRECATED — this is the v1 engine
This skill documents Relayflows v1:
@relayflows/core'sWorkflowBuilder, the chained builder (workflow('name').pattern('dag').agent(...).step(...).run()) withfailOnError,captureOutput,{{steps.X.output}}templating and.onError(). v1 is superseded.New work goes to the v2 engine —
@relayflows/surface'sflow()and the YAML/JSON dialect compiled by@relayflows/sdk, CLI binaryflows, packages2.0.x. Readwriting-relayflowsfor the authoring surface andrelay-80-100-workflowfor the v2 validation shape. None offailOnError,captureOutput,{{steps.X.output}},.onError()oridleThresholdSecsexists in v2, so following this skill for a v2 flow produces something that will not compile.Everything below is kept intact for people reading or maintaining an existing v1 workflow.