workflow
Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow sdk", "queue", "event", "push", "subscribe", or step-based orchestration.
Security Assessment
Detected risks:
About workflow
The workflow skill helps developers build durable, resumable workflows using Vercel's Workflow SDK. It is designed for applications that need to survive restarts, recover from failures, pause while waiting for external events, or coordinate long-running multi-step processes. The skill emphasizes reliable orchestration by separating workflow coordination from execution logic, allowing workflows to continue operating even across interruptions or retries. It also provides guidance for working with the bundled SDK documentation to ensure compatibility with the installed Workflow SDK version.
The skill supports workflow orchestration through directives such as "use workflow" and "use step", enabling developers to define durable workflows and retryable execution units. It includes support for hooks, webhooks, sleep operations, observability utilities, queue and event handling, workflow metadata, and API-based workflow management. The documentation also highlights framework integrations for environments such as Next.js, Vite, Astro, Nitro, and Nuxt. In addition, it supports AI-related workflows through the DurableAgent integration from the @workflow/ai package. A key recommendation is to place application logic inside step functions because steps provide full Node.js and npm access, while workflow functions operate inside a sandboxed VM.
This skill is intended for backend developers, platform engineers, and teams building event-driven or long-running systems. Common use cases include durable background jobs, AI orchestration pipelines, retryable API integrations, webhook-driven processes, subscription and queue processing, and multi-step operations that require resilience over time. It is especially useful for developers working with JavaScript or TypeScript applications that need reliable workflow execution and recovery capabilities.
FAQ
What problem does the workflow skill solve?
It helps developers create durable and resumable workflows that can survive restarts, retry failed operations, pause for external events, and coordinate long-running multi-step processes.
Why should logic be placed inside step functions instead of workflow functions?
Workflow functions run in a sandboxed VM, while step functions have full Node.js and npm access. The documentation recommends using workflow functions for orchestration and step functions for execution logic to avoid sandbox limitations.
Which frameworks are supported by the workflow skill?
The skill includes integrations for frameworks and runtimes such as Next.js, Vite, Astro, Nitro, and Nuxt.
Does the workflow skill support AI workflows?
Yes. The documentation references integration with the @workflow/ai package and the DurableAgent API for building durable AI-driven workflows.
Where can developers find the correct SDK documentation?
The skill instructs developers to search the bundled documentation inside node_modules/workflow/docs/ and related package documentation directories to ensure they use the correct SDK version.
Install workflow
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
vercel/workflow