Workflow is a TypeScript SDK for building applications and AI agents whose work can continue reliably across steps and be observed while running. It is for developers creating durable workflows and orchestration logic for applications or agents. The catalogue add-ons provide workflows, rules, instructions, settings, commands, and agents for using the SDK.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add vercel/workflow --skill migrating-world-v4-to-v5git clone --depth 1 https://github.com/vercel/workflowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vercel/workflow/migrating-world-v4-to-v5)<a href="https://agentmods.dev/skills/vercel/workflow/migrating-world-v4-to-v5"><img src="https://agentmods.dev/badge/skills/vercel/workflow/migrating-world-v4-to-v5/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vercel/workflow/migrating-world-v4-to-v5"><img src="https://agentmods.dev/badge/skills/vercel/workflow/migrating-world-v4-to-v5.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00229 | $0.11578 |
| Opus 5.5 | $0.00092 | $0.04631 |
| Sonnet 5.5 | $0.00046 | $0.02316 |
| Haiku 4.5 | $0.00023 | $0.01158 |
Grade A, and why
migrating-world-v4-to-v5 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 397 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Migrating a World from the v4 spec to v5
This skill is for a package that implements World from @workflow/world: a storage, queue and stream backend the Workflow runtime talks to. It is not for application code. If the task is bumping an app's workflow dependency, use the migrating-workflow-v4-to-v5 skill instead; if the app both uses Workflow and ships its own World, run that skill first and this one second.
An app on the Vercel, Local or Postgres World needs nothing from this skill. Those ship with the SDK and are already on the v5 spec.
One change dominates the work. Event ID allocation is required, is not visible from the type signatures, and a World that skips it type-checks, starts runs, and fails on the first replay. Do that part first, then the mechanical rewrites. Do not begin with the type errors: they are the small half, and finishing them produces a World that looks migrated and is not.
Which spec version a pin produces
What a World declares follows the @workflow/world version it resolves, and the runtime admits a range. Check both before deciding how much work this is.
@workflow/world |
SPEC_VERSION_CURRENT / mintedSpecVersion() |
Admitted by workflow 5.2.x (range 6 to 8)? |
|---|---|---|
| any 4.x | 5 or below | No |
5.0.0-beta.25 and earlier |
5 or below (no slot identity) | No |
5.0.0-beta.35 to beta.37 |
7 | Yes, but not spec 8 |
5.0.0-beta.39 and later, all 5.0.x stable |
8 | Yes |
The range is printed by the startup error, and lives in the bundled @workflow/core as assertWorldSupportsRuntimeProtocol. A host that bundles its own copy of the runtime has its own ceiling: grep the bundle for supports Worlds with spec version to read it. Declaring above a host's ceiling makes that host refuse the World at startup, so a World that must also run under older hosts states which host versions each of its releases supports.
A World already on a 5.0.0 beta with slot-numbered IDs does not redo step 1. Bump @workflow/world and @workflow/errors to the stable line, confirm the declaration is mintedSpecVersion() (step 2), read the spec 8 notes in step 2, then audit the step 5 contract items and the fail checklist: several of them landed late in the beta line and a beta-era World commonly misses lazy step_started, the runs.list status array and resolveData: 'skip-step-inputs'. Run the conformance suite at the new version before calling it done.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago Changed e098d41a3795
- 17d ago Changed 25658029d325
- 19d ago Changed 432c8364f4e7
- 1mo ago Changed · +4 lines 3b91f7d21d53
- 1mo ago Changed · +122 lines · +63 tokens per session 70c6d35e4d7e
- 2mo ago Changed · +52 lines d77ee68ecd9a
- 3mo ago First seen · 219 lines · 166 tokens per session scan A e22a8f9455c2
migrating-world-v4-to-v5 is a skill published in the GitHub repository vercel/workflow (2,550 stars, last pushed today), licensed Apache-2.0. It adds 229 tokens to every session and 11,578 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
migrating-world-v4-to-v5 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| migrating-world-v4-to-v5vercel/workflow | Skill | 2.5k | today | Apache-2.0 | A | 229 | Claude Code, Codex |
| trigger-convextriggerdotdev/trigger.dev | Skill | 17k | today | Apache-2.0 | A | 93 | Claude Code, Codex |
| trigger-getting-startedtriggerdotdev/trigger.dev | Skill | 17k | today | Apache-2.0 | A | 142 | Claude Code, Codex |
| trigger-authoring-chat-agenttriggerdotdev/trigger.dev | Skill | 17k | today | Apache-2.0 | A | 133 | Claude Code, Codex |
| trigger-chat-agent-advancedtriggerdotdev/trigger.dev | Skill | 17k | today | Apache-2.0 | A | 154 | Claude Code, Codex |
| trigger-authoring-taskstriggerdotdev/trigger.dev | Skill | 17k | today | Apache-2.0 | A | 115 | Claude Code, Codex |
| trigger-realtime-and-frontendtriggerdotdev/trigger.dev | Skill | 17k | today | Apache-2.0 | A | 148 | Claude Code, Codex |