migrating-world-v4-to-v5

migrating-world-v4-to-v5 is a skill for Claude Code, Codex from vercel/workflow. It costs 229 tokens per session (11,578 once invoked), scanned A, original, Apache-2.0.

A migration guide for custom Workflow SDK storage and streaming backends that implement the World interface, moving from specification version 4 to version 5. A World is the component that the workflow runtime uses for storage, queues, and event streams.

In plain words
What is it for?
Use it to locate a custom World, update event ID handling and stream methods, and verify the migration before changing an app's workflow dependency.
Why use it?
It highlights event-ID changes that can break replay even when the code compiles and explains how to distinguish this work from upgrading an application.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to locate a custom World, update event ID handling and stream methods, and verify the migration before changing an app's workflow dependency.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vercel/workflow/migrating-world-v4-to-v5
About the project

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.

vercel/workflow · 2,550 stars · on GitHub · workflow-sdk.dev

Install

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.

Any agent
npx skills add vercel/workflow --skill migrating-world-v4-to-v5
Clone the repo
git clone --depth 1 https://github.com/vercel/workflow

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for migrating-world-v4-to-v5

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/workflow/migrating-world-v4-to-v5/github.svg)](https://agentmods.dev/skills/vercel/workflow/migrating-world-v4-to-v5)
Your own site
<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.

agentmods 80×15 button for migrating-world-v4-to-v5

Your own site · 80×15
<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>
Per session 229 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,578 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash e098d41a3795, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

skills/migrating-world-v4-to-v5/SKILL.md · 397 lines

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.

Read the full file on GitHub · 397 lines

Changes

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.

  1. 6d ago Changed e098d41a3795
  2. 17d ago Changed 25658029d325
  3. 19d ago Changed 432c8364f4e7
  4. 1mo ago Changed · +4 lines 3b91f7d21d53
  5. 1mo ago Changed · +122 lines · +63 tokens per session 70c6d35e4d7e
  6. 2mo ago Changed · +52 lines d77ee68ecd9a
  7. 3mo ago First seen · 219 lines · 166 tokens per session scan A e22a8f9455c2

Subscribe to this mod's changes

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.

Related

migrating-world-v4-to-v5 compared with skills from other repositories

migrating-world-v4-to-v5 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
migrating-world-v4-to-v5vercel/workflowSkill2.5ktodayApache-2.0A229Claude Code, Codex
trigger-convextriggerdotdev/trigger.devSkill17ktodayApache-2.0A93Claude Code, Codex
trigger-getting-startedtriggerdotdev/trigger.devSkill17ktodayApache-2.0A142Claude Code, Codex
trigger-authoring-chat-agenttriggerdotdev/trigger.devSkill17ktodayApache-2.0A133Claude Code, Codex
trigger-chat-agent-advancedtriggerdotdev/trigger.devSkill17ktodayApache-2.0A154Claude Code, Codex
trigger-authoring-taskstriggerdotdev/trigger.devSkill17ktodayApache-2.0A115Claude Code, Codex
trigger-realtime-and-frontendtriggerdotdev/trigger.devSkill17ktodayApache-2.0A148Claude Code, Codex