Loading...
Loading...
Migrates Temporal, Inngest, Trigger.dev, and AWS Step Functions workflows to the Workflow SDK. Use when porting Activities, Workers, Signals, step.run(), step.waitForEvent(), Trigger.dev tasks / wait.forToken / triggerAndWait, ASL JSON state machines, Task/Choice/Wait/Parallel states, task tokens, or child workflows.
npx skill4agent add vercel/workflow migrating-to-workflow-sdkstart()getRun()references/runtime-targets.mdWorld"use workflow""use step"sleep()step.waitForEvent().waitForTaskTokenresume/internalcreateHook()resumeHook()resume/url/defaultcreateWebhook()202 Acceptedresume/url/manualcreateWebhook({ respondWith: 'manual' })resume/url/default## Open QuestionscreateWebhook()resumeHook()token:createWebhook()start()getRun()"use step"getStepMetadata().stepIdgetWritable()"use step"RequestResponseRequestResponseFast memory aid:
- Callback URL + default ack ->
createWebhook()- Callback URL + custom ack ->
createWebhook({ respondWith: 'manual' })- Deterministic server-side resume ->
+createHook()resumeHook()
references/resume-routing.mdstep.waitForEvent().waitForTaskTokenresume/url/defaultresume/url/manualresume/internalruntime/self-hostedboundary/named-frameworkboundary/framework-agnostic## Migrated Code## Migration Planreferences/temporal.mdreferences/inngest.mdreferences/trigger-dev.mdreferences/aws-step-functions.mdreferences/shared-patterns.mdreferences/runtime-targets.mdWorldreferences/resume-routing.md## Migration Planreferences/retries.mdstepFn.maxRetriesRetryableError({ retryAfter })FatalError## Migration Plan
## Source -> Target Mapping
## Migrated Code
## App Boundary / Resume Endpoints
## Verification Checklist
## Open Questions## Migration PlanRoute keys## Migration PlanWhy these route keys## Migration Plan## Migration Plansleep()getWriter()write()close()start()getRun()createHook()resumeHook()createWebhook()resume/url/defaultresume/url/manualresumeWebhook()webhook.urlcreateWebhook()tokenresumeHook()request.respondWith()resume/internalresumeHook()resume/internalresume/internalcreateWebhook()webhook.urlresume/url/defaultwebhook.urlresume/url/defaultresumeHook()respondWith: 'manual'RequestWithResponseresume/url/defaultresumeWebhook()webhook.urlresume/url/manualwebhook.urlresume/url/manualRequestWithResponseawait request.respondWith(...)resume/url/manualrequest.respondWith(...)"use step"resume/url/manualresumeWebhook()webhook.urlcreateWebhook()resumeHook()World extends Queue, Streamer, StoragestartWorkflowWorld()WorldRequestResponsereferences/shared-patterns.md## Generated callback URL (default response)references/shared-patterns.md## Generated callback URL (manual response)references/runtime-targets.md## Self-hosted output blockreferences/aws-step-functions.md## Combined recipe: callback URL on self-hosted HonoMigrate this Inngest workflow to the Workflow SDK.
It uses step.waitForEvent() with a timeout and step.realtime.publish().## Migration Plan
## Source -> Target Mapping
## Migrated Code
## App Boundary / Resume Endpoints
## Verification Checklist
## Open Questionsreferences/shared-patterns.md## Named-framework internal resume example (Hono)references/shared-patterns.md## Generated callback URL (default response)references/shared-patterns.md## Generated callback URL (manual response)references/runtime-targets.md## Self-hosted output blockreferences/aws-step-functions.md## Combined recipe: callback URL on self-hosted Honoresume/url/defaultresume/url/manualwebhook.urlcreateWebhook()resumeHook()RequestResponse