做什么
Migrates Temperal, Ingest, Trigger.dev, 和 AWS Step 函数工作流程到 Workflow SDK
技能库 智客分类:Agent 工作流 migrating-to-workflow-sdk
Migrates Temperal, Inngest, Trigger.dev,和AWS Step函数工作流程到Workflow SDK. 当移植活动、 工人、 信号、 step. run( ) 、 step. Wait ForEvent( ) 、 Trigger. dev 任务 / 等时使用 。 键/ 触发 And Wait, ASL JSON 状态机器, Task/Choice/wait/Parallel状态,任务符号,或儿童工作流程.
官方网址:skills.sh
先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。
Migrates Temperal, Ingest, Trigger.dev, 和 AWS Step 函数工作流程到 Workflow SDK
移植活动, 工人, 信号, step. run (), step. WaitForEvent (), Trigger.dev 任务 /等 。 键/ 触发 And Wait, ASL JSON 状态机器, 任务/ 选择/ 等待/ Parallel 状态, 任务符号或儿童工作流程
按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Migrating to the Workflow SDK、Intake、Default migration rules、Fast-path router、Source references、Shared references。 其中含规范建议的小节:分步指令。
文件分析:除 SKILL.md 外,正文引用了 references/runtime-targets.md、references/resume-routing.md、references/temporal.md、references/inngest.md、references/trigger-dev.md、references/aws-step-functions.md,属于带资源的技能包,这些文件按需再读。
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.
Migrating to the Workflow SDKIntakeDefault migration rulesFast-path routerSource referencesShared referencesRequired output shapeMigration PlanSource -> Target MappingMigrated CodeApp Boundary / Resume EndpointsVerification Checklist
来源分类:skills.sh agent-skill
namemigrating-to-workflow-sdkdescriptionreferences/runtime-targets.mdreferences/resume-routing.mdreferences/temporal.mdreferences/inngest.mdreferences/trigger-dev.mdreferences/aws-step-functions.mdreferences/shared-patterns.mdreferences/retries.md以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。
具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗
先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。
该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。
复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。
把 Agent Skill「migrating-to-workflow-sdk」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-31fd8a1296ee73ee-%E7%A7%BB%E5%8A%A8%E5%88%B0%E5%B7%A5%E4%BD%9C%E6%B5%81-Sdk.html 请存为 .cursor/skills/migrating-to-workflow-sdk/SKILL.md 或 .claude/skills/migrating-to-workflow-sdk/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。 该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/vercel/workflow 取完整目录,不要只建一个 SKILL.md。
需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。
npx skills add 'https://github.com/vercel/workflow' --list
npx skills add 'https://github.com/vercel/workflow' --skill 'migrating-to-workflow-sdk'
CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。
Use this skill when converting an existing orchestration system to the Workflow SDK.
start(), getRun(), hooks/webhooks, and route handlers.references/runtime-targets.md and explicitly say the workflow/step code can stay the same, but deployment still needs a World implementation and startup bootstrap."use workflow" functions."use step" functions.sleep() only in workflow context.step.waitForEvent(), and .waitForTaskToken, choose exactly one resume surface:
resume/internal -> createHook() + resumeHook() when the app resumes from server-side code with a deterministic business token.resume/url/default -> createWebhook() when the external system needs a generated callback URL and the default 202 Accepted response is fine.resume/url/manual -> createWebhook({ respondWith: 'manual' }) only when the prompt explicitly requires a custom response body, status, or headers.resume/url/default and make the assumption explicit in ## Open Questions.createWebhook() with resumeHook(), and never pass token: to createWebhook().start() and getRun() inside "use step" functions for child runs.getStepMetadata().stepId as the idempotency key for external writes.getWritable() in workflow context to obtain the stream, but interact with it (write, close) only inside "use step" functions.Request / Response even when a framework like Hono is named.Request / Response. Do not default to Next.js-only route signatures unless Next.js is explicitly named.Fast memory aid:
- Callback URL + default ack ->
createWebhook()- Callback URL + custom ack ->
createWebhook({ respondWith: 'manual' })- Deterministic server-side resume ->
createHook()+resumeHook()
Load references/resume-routing.md when the source pauses for Signals, step.waitForEvent(), or .waitForTaskToken.
Fast defaults:
resume/url/defaultresume/url/manualresume/internalruntime/self-hostedboundary/named-frameworkboundary/framework-agnosticBefore drafting ## Migrated Code, write the selected route keys in ## Migration Plan.
references/temporal.mdreferences/inngest.mdreferences/trigger-dev.mdreferences/aws-step-functions.mdreferences/shared-patterns.md: Reusable code templates for hooks, child workflows, idempotency, streaming, and rollback.references/runtime-targets.md: Managed vs. custom World guidance.references/resume-routing.md: Route-key selection, obligations, and exact ## Migration Plan shape.references/retries.md: Canonical retry mechanics, including stepFn.maxRetries, RetryableError({ retryAfter }), and FatalError.Return the migration in this structure:
## Migration Plan
## Source -> Target Mapping
## Migrated Code
## App Boundary / Resume Endpoints
## Verification Checklist
## Open Questions
Fail the draft if any of these are true:
## Migration Plan omits Route keys## Migration Plan omits Why these route keys## Migration Plan lists route keys that do not match the prompt## Migration Plan lists required code obligations that do not match the selected route keyssleep() appears inside a stepgetWriter(), write(), close()) appears inside a workflow functionstart() / getRun() directly from workflow contextcreateHook() + resumeHook() instead of createWebhook()resume/url/default or resume/url/manual migration invents a user-authored callback route or resumeWebhook() wrapper when webhook.url should be the only resume surfacecreateWebhook() is given a custom token or paired with resumeHook()Validation note:
request.respondWith() is step-only.Additional fail conditions:
resume/internal output omits resumeHook() in app-boundary coderesume/internal output omits a deterministic business tokenresume/internal output emits createWebhook() or webhook.urlresume/url/default output does not pass webhook.url to the external systemresume/url/default output emits resumeHook(), respondWith: 'manual', or RequestWithResponse without a custom-response requirement in the promptresume/url/default output invents a user-authored callback route or resumeWebhook() wrapper when webhook.url is the intended resume surfaceresume/url/manual output does not pass webhook.url to the external systemresume/url/manual output omits RequestWithResponse or await request.respondWith(...)resume/url/manual output calls request.respondWith(...) outside a "use step" functionresume/url/manual output invents a user-authored callback route or resumeWebhook() wrapper when webhook.url is the intended resume surfacecreateWebhook() is paired with resumeHook()World extends Queue, Streamer, Storage, startWorkflowWorld(), or the explicit note that the workflow and step code can stay the same while the app still needs a custom WorldRequest / Response app-boundary code without a framework-agnostic overrideFor concrete passing code, load:
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 HonoMigrate this Inngest workflow to the Workflow SDK.
It uses step.waitForEvent() with a timeout and step.realtime.publish().
Expected response shape:
## Migration Plan
## Source -> Target Mapping
## Migrated Code
## App Boundary / Resume Endpoints
## Verification Checklist
## Open Questions
Load a worked example only when the prompt needs concrete code:
references/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 HonoReject these counterexamples:
resume/url/default or resume/url/manual + user-authored callback route when webhook.url is the intended resume surfacecreateWebhook() paired with resumeHook()Request / Response without a framework-agnostic overrideAgent 工作流
创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.
Agent 工作流
使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.
Agent 工作流
管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.
Agent 工作流
Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…