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.00166 | $0.06121 |
| Opus 5.5 | $0.00066 | $0.02448 |
| Sonnet 5.5 | $0.00033 | $0.01224 |
| Haiku 4.5 | $0.00017 | $0.00612 |
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 15d 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 — 271 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.
Intake
Before editing, establish and report each of these:
- Where the World is. Grep for
implements World,: World,World>andfrom '@workflow/world'. Read the factory it exports. - How event IDs are minted today. Grep for
eventId,ulid,uuid,nanoid,nextval,AUTO_INCREMENT,IDENTITY. Find the exact line that produces the ID written to storage. - What settles a write race. Read the
events.createimplementation. Note whether the ID or ordering is decided in process (read-then-write, an in-memory counter, aMath.maxover loaded events) or in the store (unique constraint, conditional write,INSERT ... ON CONFLICT, a transaction). - Which
specVersionit declares. Grep forspecVersion. Note whether it is a literal or an imported constant. - Which optional members exist. Grep for
capabilities,analytics,getRuntimeDeadline,getEnvironment,createRunId,describeRun,getEncryptionKeyForRun,resolveLatestDeploymentId,cancelMany,experimentalSetAttributes. - Whether it provisions step topics. Grep for
'step',__wkf_step,stepQueue. - Whether it rejects stale writes. Grep for
PreconditionFailedError,preconditionGuard,stateUpdatedAt,stateEventCount,stateCursor,412. - Where its process-wide state lives. Grep the World's modules for top-level
const/letholding a pool, client, socket, registry, cache, ULID factory, or a log-once boolean. Note every one: these are correct in arequire()d package and wrong in a bundled one. - How it is tested. Grep for
@workflow/world-testingandcreateTestSuite. A World without the conformance suite wired up gets it in this migration. - Where its runs live. Ask, or determine from the deployment model, whether a single deployment serves every run or a run is pinned to the deployment that created it. This decides the rollout in step 7 and cannot be read out of the code.
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.
- 15d ago Changed · +52 lines d77ee68ecd9a
- 1mo 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,455 stars, last pushed today), licensed Apache-2.0. It adds 166 tokens to every session and 6,121 once invoked, about $0.0007 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.
Other skills, from other repositories
trigger-getting-started
Bootstrap Trigger.dev into an existing project from scratch: authenticate the CLI, install @trigger.dev/sdk and @trigger.dev/build, write trigger.config.ts with the project ref and task dirs, scaffold a /trigger directory with a first task, wire tsconfig and .gitignore, set TRIGGERSECRETKEY, and run the dev server.…
trigger-authoring-chat-agent
Author and run a durable AI chat agent with chat.agent from @trigger.dev/sdk/ai: the per-turn run loop, why you MUST take streamText from the run argument rather than importing it from ai, returning a StreamTextResult vs calling chat.pipe(), the two server actions (chat.createStartSessionAction +…
trigger-chat-agent-advanced
Advanced and operational chat.agent capabilities for Trigger.dev, loaded on demand. Load this when working on the raw Sessions primitive (sessions / SessionHandle), a custom chat transport or the realtime wire protocol, durable sub-agents (AgentChat, chat.stream.writer), human-in-the-loop, steering, actions…
trigger-authoring-tasks
Covers writing backend Trigger.dev tasks with @trigger.dev/sdk: defining task() and schemaTask(), the run function and its ctx, retries, waits, queues and concurrency, idempotency keys, run metadata, logging, triggering other tasks (and the Result shape), scheduled/cron tasks, and the essentials of trigger.config.ts.…
trigger-realtime-and-frontend
Trigger.dev client/frontend surface: subscribe to runs in realtime (runs.subscribeToRun and the @trigger.dev/react-hooks hook useRealtimeRun), consume metadata and AI/text streams in React (useRealtimeStream), trigger tasks from the browser (useTaskTrigger, useRealtimeTaskTrigger), and mint scoped frontend credentials…
trigger-cost-savings
Analyze Trigger.dev tasks, schedules, and runs for cost optimization opportunities. Use when asked to reduce spend, optimize costs, audit usage, right-size machines, or review task efficiency. Combines static source analysis with live run analysis via the Trigger.dev MCP tools (listruns, getrundetails…