workflow

Build durable workflows with Vercel Workflow DevKit directives.

1|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/masermediagroup-stack/CursorSkills --skill workflow-masermediagroup-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow
Source: https://github.com/masermediagroup-stack/CursorSkills/tree/main/skills-bundle/plugins-vercel/eb3b6f19e9ca59b23c88d7cc8dfe609388be0fc7/skills/workflow
Command: npx skills add https://github.com/masermediagroup-stack/CursorSkills --skill workflow-masermediagroup-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps engineers build and operate durable, resumable workflows using Vercel's Workflow DevKit (WDK), enabling long-running tasks, external-event coordination, and crash-safe orchestration.

Core Features & Use Cases

  • Durable orchestration with "use workflow" and "use step" directives to separate orchestration from business logic.
  • Start, pause, resume, retry, and stream outputs for API routes, agents, and background tasks.
  • Guidance for hooks, child workflows, and debugging with bundled docs and up-to-date tooling.

Quick Start

Create a simple durable workflow by wrapping your logic with the use workflow and use step directives and triggering it with a start call.

Frequently Asked Questions about workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build durable workflows that can pause and resume long-running tasks?

You can build durable workflows by wrapping your logic with the "use workflow" and "use step" directives to separate orchestration from business logic, then triggering the process with a start call. This enables tasks to pause, resume, and retry safely.

What is the best way to coordinate external-event driven flows in API routes?

The best way to coordinate external-event driven flows is using durable orchestration with hooks and child workflows. This approach sustains long-running API routes and coordinates external events through crash-safe, error-tolerant execution steps.

Does Vercel DevKit support crash-safe orchestration for background agents?

Yes, Vercel DevKit supports crash-safe orchestration for background agents. It applies durable execution rules to pause, resume, retry, and stream outputs for multi-step processes, ensuring agents remain error-tolerant during unexpected failures.

How do I start a durable workflow using Vercel's Workflow DevKit?

To start a durable workflow, wrap your business logic with the "use workflow" and "use step" directives to define the orchestration steps, then trigger the execution by invoking the bundled start call within your API route.

Why do I need to separate orchestration from business logic in durable workflows?

Separating orchestration from business logic using "use workflow" and "use step" directives ensures proper serialization and streaming rule adherence. This separation maintains error-tolerant execution and allows long-running tasks to pause and resume reliably.

What are the limitations when structuring child workflows and hooks?

When structuring child workflows and hooks, you must adhere to strict serialization and streaming rules. Failing to properly isolate steps with "use step" directives can break durable execution, preventing workflows from correctly resuming or retrying after crashes.