workflow-devkit
Installation
SKILL.md
Workflow DevKit
Build reliable, long-running processes with automatic retries, state persistence, and observability.
Quick Reference
| Pattern | Use Case | Key API |
|---|---|---|
| Workflows | Orchestrate durable operations | "use workflow" directive |
| Steps | Atomic, retriable units | "use step" directive |
| Webhooks | Human-in-the-loop, callbacks | createWebhook() |
| Actors | Event-driven state machines | defineHook() + for await |
| Streaming | Real-time frontend updates | getWritable() / run.readable |
| AI Agents | Durable LLM workflows | DurableAgent + globalThis.fetch = fetch |
| AI Gateway | Multi-provider model switching | "provider/model" strings, @ai-sdk/gateway |