Workflow Skills for npx skills - #842

Merged
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands
Jan 28, 2026
Merged

Workflow Skills for npx skills#842
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands

Conversation

@johnlindquist

@johnlindquistjohnlindquist commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Code skills for the Workflow DevKit, enabling AI agents to assist with workflow development.

Documentation Bundling

This PR implements a documentation bundling pattern (similar to ai SDK) that includes docs in npm packages:

How it works

  1. prepack hook copies docs from docs/content/docs/ to package's ./docs/ directory
  2. npm pack includes docs/**/* in the tarball
  3. postpack hook removes the temporary ./docs/ directory

Packages updated

PackageDocs BundledPath in node_modules
workflowAll docsnode_modules/workflow/docs/
@workflow/aiAI + DurableAgent docsnode_modules/@workflow/ai/docs/
@workflow/corefoundations, how-it-works, APInode_modules/@workflow/core/docs/
@workflow/nextNext.js setup + APInode_modules/@workflow/next/docs/

Skill changes

The skills/workflow/SKILL.md now directs agents to search bundled docs instead of maintaining duplicate documentation:

glob "node_modules/workflow/docs/**/*.mdx"
grep "your query" node_modules/workflow/docs/

Removed manually-maintained reference files:

  • ai-agents.md → now in node_modules/@workflow/ai/docs/
  • api-reference.md → now in node_modules/workflow/docs/api-reference/
  • frameworks.md → now in node_modules/workflow/docs/getting-started/
  • patterns.md → now in node_modules/workflow/docs/foundations/

Kept common-errors.md for practical troubleshooting (not typically in official docs).

Test plan

  • Verify prepack scripts copy docs correctly
  • Verify npm pack --dry-run includes docs in tarball
  • Verify postpack scripts clean up docs directory
  • Verify docs are accessible after npm install workflow
  • Test skill with Claude Code agent

@vercel

vercelBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jan 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6006ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.032s (-25.4% 🟢)1.008s (~)0.977s101.00x
💻 LocalNext.js (Turbopack)0.039s (-8.7% 🟢)1.018s (~)0.979s101.22x
💻 LocalNitro0.043s (-0.7%)1.007s (~)0.964s101.34x
🐘 PostgresNext.js (Turbopack)0.187s (+12.8% 🔺)1.020s (~)0.832s105.91x
🐘 PostgresExpress0.254s (-17.3% 🟢)1.019s (~)0.765s108.02x
🐘 PostgresNitro0.289s (+22.5% 🔺)1.014s (~)0.725s109.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.667s (~)1.585s (+0.9%)0.917s101.00x
▲ VercelNext.js (Turbopack)0.699s (-17.7% 🟢)1.718s (-6.2% 🟢)1.020s101.05x
▲ VercelExpress0.710s (-1.3%)1.667s (+7.6% 🔺)0.957s101.06x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.081s (-3.1%)2.008s (~)0.927s101.00x
💻 LocalNext.js (Turbopack)1.089s (~)2.013s (~)0.923s101.01x
💻 LocalNitro1.116s (~)2.007s (~)0.891s101.03x
🐘 PostgresExpress2.148s (+0.9%)3.015s (~)0.867s101.99x
🐘 PostgresNitro2.158s (-1.4%)3.015s (~)0.857s102.00x
🐘 PostgresNext.js (Turbopack)2.298s (+16.8% 🔺)3.018s (+42.5% 🔺)0.720s102.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.817s (~)3.759s (+2.2%)0.942s101.00x
▲ VercelExpress2.943s (-3.2%)3.765s (~)0.823s101.04x
▲ VercelNext.js (Turbopack)3.149s (+9.1% 🔺)4.046s (+5.9% 🔺)0.897s101.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.607s (-2.1%)11.018s (~)0.411s51.00x
💻 LocalNext.js (Turbopack)10.703s (~)11.018s (~)0.315s51.01x
💻 LocalNitro10.835s (~)11.016s (~)0.181s51.02x
🐘 PostgresNext.js (Turbopack)15.761s (+6.8% 🔺)16.233s (+7.9% 🔺)0.472s51.49x
🐘 PostgresNitro20.390s (~)20.830s (-1.0%)0.440s51.92x
🐘 PostgresExpress20.457s (~)21.033s (~)0.576s51.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.562s (-6.3% 🟢)23.181s (-7.3% 🟢)0.620s51.00x
▲ VercelNext.js (Turbopack)22.704s (-5.4% 🟢)23.623s (-5.4% 🟢)0.919s51.01x
▲ VercelNitro23.263s (-1.7%)24.016s (-1.6%)0.753s51.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.392s (-0.7%)2.007s (~)0.615s151.00x
💻 LocalNitro1.415s (+0.6%)2.006s (~)0.591s151.02x
💻 LocalNext.js (Turbopack)1.416s (+2.2%)2.012s (~)0.596s151.02x
🐘 PostgresNext.js (Turbopack)2.063s (+2.3%)2.857s (+23.0% 🔺)0.794s111.48x
🐘 PostgresExpress2.165s (-3.3%)3.015s (~)0.850s101.56x
🐘 PostgresNitro2.228s (+1.7%)3.014s (~)0.786s101.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.207s (-9.2% 🟢)4.092s (-7.3% 🟢)0.886s81.00x
▲ VercelExpress3.270s (-8.5% 🟢)4.189s (-3.5%)0.919s81.02x
▲ VercelNitro3.302s (+9.9% 🔺)4.094s (+6.1% 🔺)0.792s81.03x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.301s (-7.4% 🟢)3.263s (+6.8% 🔺)0.962s101.00x
💻 LocalNext.js (Turbopack)2.460s (-0.8%)3.202s (+3.6%)0.742s101.07x
💻 LocalNitro2.506s (-0.9%)3.043s (+0.9%)0.537s101.09x
🐘 PostgresNitro8.156s (-5.3% 🟢)8.808s (-5.4% 🟢)0.651s43.54x
🐘 PostgresExpress8.474s (+11.8% 🔺)9.077s (+12.2% 🔺)0.603s43.68x
🐘 PostgresNext.js (Turbopack)12.674s (+7.0% 🔺)13.364s (+11.1% 🔺)0.690s35.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.099s (-7.8% 🟢)3.750s (-7.8% 🟢)0.651s81.00x
▲ VercelExpress3.414s (+12.4% 🔺)4.113s (+11.0% 🔺)0.699s81.10x
▲ VercelNext.js (Turbopack)3.536s (+5.3% 🔺)4.207s (+2.4%)0.671s81.14x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.381s (-4.7%)2.007s (~)0.625s151.00x
💻 LocalNext.js (Turbopack)1.420s (+0.6%)2.013s (~)0.593s151.03x
💻 LocalNitro1.434s (+0.9%)2.005s (~)0.572s151.04x
🐘 PostgresNitro2.000s (-7.0% 🟢)2.511s (-3.2%)0.511s121.45x
🐘 PostgresExpress2.005s (-4.7%)2.514s (-6.8% 🟢)0.509s121.45x
🐘 PostgresNext.js (Turbopack)2.161s (+21.2% 🔺)2.609s (+29.6% 🔺)0.448s121.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.831s (+3.5%)3.821s (+1.0%)0.990s81.00x
▲ VercelNext.js (Turbopack)2.834s (+2.3%)3.782s (-0.7%)0.948s81.00x
▲ VercelNitro3.054s (+7.2% 🔺)3.804s (+1.1%)0.750s81.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.266s (-10.2% 🟢)3.247s (+7.5% 🔺)0.982s101.00x
💻 LocalNext.js (Turbopack)2.531s (+1.6%)3.047s (~)0.516s101.12x
💻 LocalNitro2.689s (+4.8%)3.018s (~)0.329s101.19x
🐘 PostgresNitro10.928s (-15.3% 🟢)11.390s (-16.9% 🟢)0.462s34.82x
🐘 PostgresExpress12.232s (+12.3% 🔺)12.754s (+12.3% 🔺)0.523s35.40x
🐘 PostgresNext.js (Turbopack)12.663s (+6.9% 🔺)13.355s (+7.9% 🔺)0.693s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.013s (-2.5%)3.661s (-4.4%)0.648s91.00x
▲ VercelExpress3.084s (-13.3% 🟢)4.035s (-6.5% 🟢)0.951s81.02x
▲ VercelNext.js (Turbopack)3.101s (-9.8% 🟢)3.920s (-7.6% 🟢)0.818s81.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.127s (-30.1% 🟢)0.999s (+0.6%)0.013s (-7.7% 🟢)1.021s (~)0.894s101.00x
💻 LocalNext.js (Turbopack)0.149s (+2.6%)1.003s (~)0.016s (-18.3% 🟢)1.027s (~)0.879s101.17x
💻 LocalNitro0.185s (+1.9%)0.993s (~)0.015s (~)1.022s (~)0.837s101.46x
🐘 PostgresNext.js (Turbopack)1.138s (+24.0% 🔺)1.907s (+40.3% 🔺)0.000s (+Infinity% 🔺)2.017s (+32.7% 🔺)0.880s108.97x
🐘 PostgresExpress2.257s (-2.0%)2.784s (+1.5%)0.000s (-100.0% 🟢)3.015s (~)0.759s1017.78x
🐘 PostgresNitro2.303s (+2.5%)2.739s (-1.9%)0.000s (+Infinity% 🔺)3.015s (~)0.712s1018.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.024s (-5.2% 🟢)3.205s (-4.1%)0.825s (+19.3% 🔺)4.572s (-4.0%)1.549s101.00x
▲ VercelNext.js (Turbopack)3.175s (+5.6% 🔺)3.393s (+1.9%)0.861s (+119.8% 🔺)4.783s (+12.7% 🔺)1.607s101.05x
▲ VercelExpress3.493s (+15.1% 🔺)3.826s (+20.7% 🔺)0.507s (-28.4% 🟢)4.865s (+9.7% 🔺)1.371s101.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)4/8
▲ VercelNitro5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)💻 Local8/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@johnlindquist
johnlindquistforce-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0dCompareJanuary 23, 2026 19:51
@johnlindquistjohnlindquist changed the title Add Claude Code custom commands and workflow skillWorkflow Skills for npx skillsJan 23, 2026
@@ -0,0 +1,434 @@
# Complete API Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one particularly I'm worried about shipping since it will go outdated very fast as they're generated in the docs using tsdoc. were about to make big changes just in the next couple of days/weeks to the API and we constantly will

Comment on lines +277 to +283
**Verify connection:**
```bash
# Check your app responds to workflow endpoints
curl -s http://localhost:3000/.well-known/workflow/v1/flow \
-X POST -H "Content-Type: application/json"
# Should return: {"error": "Missing required headers"} (not 404)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a health command that's better for checking. npx health
cc @TooTallNate

writer.releaseLock();
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for essential APIs we can also show usage of getRun with an example of getting status, seeing the returnValue, or cancelling a run (all in the docs)

Comment threadskills/workflow/SKILL.md Outdated
Comment on lines +247 to +251
# Terminal 2: Open dashboard (connects to port 3000)
npx workflow web

# If app runs on different port:
npx workflow web --app-url http://localhost:3001

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the CLI can also be used to inspect all the runs/steps etc. without using the browser. npx workflow inspect runs, npx workflow inspect run wrun_sfnesf, npx workflow inspect --backend vercel etc.

this is specifically meant for agents to consume.

npx workflow web is mostly for humans, and the cli npx workflow inspect is meant for agents

can we please include that somewhere so it knows :)

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments I'd love to include/address before we ship the first version - but I'm generally happy to just put it and keep iterating once it's out there!

johnlindquistand others added 10 commits January 26, 2026 19:18
Add custom slash commands for Claude Code:
- /pr command for creating PRs following repo conventions
Add workflow skill with comprehensive documentation:
- Main SKILL.md with core concepts and quick reference
- Reference docs for frameworks, AI agents, patterns, errors, and API
Signed-off-by: johnlindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Add documentation for custom class serialization using @workflow/serde
symbols (WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE) and clarify what can
and cannot be serialized based on recent PR #762.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update sleep() example date from 2025 to 2027 (future date)
- Fix getWorkflowMetadata() to use correct properties: workflowRunId,
workflowStartedAt, url (not runId, workflowName)
- Fix getStepMetadata() to use correct property: attempt (not attemptNumber)
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Reorganize skill files to support multiple skills under ./skill/<name>/
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update SKILL.md to direct agents to search node_modules/workflow/docs/
- Remove manually-maintained reference docs (ai-agents, api-reference, frameworks, patterns)
- Keep common-errors.md for practical troubleshooting
- Add prepack/postpack hooks to bundle docs in npm packages:
- workflow: All docs from docs/content/docs/
- @workflow/ai: AI-specific docs
- @workflow/core: foundations, how-it-works, api-reference
- @workflow/next: Next.js setup docs
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Use del-cli for postpack cleanup to match the AI SDK's cross-platform
approach. This ensures consistent tooling across both projects.
- Add del-cli ^5.1.0 to root devDependencies
- Update postpack in @workflow/core, @workflow/next, @workflow/ai, and
workflow packages from `rm -rf docs` to `del-cli docs`
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Document the CLI health check command for verifying workflow/step
endpoint connectivity during local development and production.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
@johnlindquist

Copy link
Copy Markdown
ContributorAuthor

Added workflow health command documentation to skills/workflow/references/common-errors.md - includes usage examples for local dev, specific endpoints, custom ports, and Vercel backend.

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna keep reviewing but leaving initial feedback

Comment threadpackages/ai/package.json Outdated
"clean": "tsc --build --clean && rm -rf docs ||:",
"test": "vitest run",
"prepack": "mkdir -p docs && cp -r ../../docs/content/docs/ai ./docs/ && cp -r ../../docs/content/docs/api-reference/workflow-ai ./docs/",
"postpack": "del-cli docs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's either use rm -rf OR del-cli, not both

Comment threadskills/workflow/SKILL.md Outdated

## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not do this. that was meant to be a specific example and actually with DurableAgent you don't need that

Comment threadskills/workflow/SKILL.md Outdated
## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries
2. Use `sleep()` instead of setTimeout/setInterval

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "workflow" context. in steps it should still use setTimeout/setInterval

maybe claude is smart enough but fyi

Comment threadskills/workflow/SKILL.md Outdated
2. Use `sleep()` instead of setTimeout/setInterval
3. Move Node.js modules (fs, crypto, etc.) to step functions
4. Use `FatalError` for permanent failures, `RetryableError` for retries
5. Use `use step` with AI SDK methods to avoid issues with OIDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this means and it seems weird to put this in the index/root of the skill

Comment threadpackages/core/package.json
Comment threadskills/workflow/references/common-errors.md Outdated
johnlindquistand others added 3 commits January 27, 2026 12:10
- Remove del-cli dependency, use rm -rf consistently in postpack scripts
- Restructure SKILL.md to lead with "Prefer Step Functions" pattern
- Add sandbox limitations table for workflow-context workarounds
- Consolidate examples and remove duplication
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Move useful tips (serialization, streaming, debugging) into main skill
file and remove the separate common-errors.md reference file.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@johnlindquist@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Workflow Skills for npx skills - #842

Merged
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands
Jan 28, 2026
Merged

Workflow Skills for npx skills#842
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands

Conversation

@johnlindquist

@johnlindquistjohnlindquist commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Code skills for the Workflow DevKit, enabling AI agents to assist with workflow development.

Documentation Bundling

This PR implements a documentation bundling pattern (similar to ai SDK) that includes docs in npm packages:

How it works

  1. prepack hook copies docs from docs/content/docs/ to package's ./docs/ directory
  2. npm pack includes docs/**/* in the tarball
  3. postpack hook removes the temporary ./docs/ directory

Packages updated

PackageDocs BundledPath in node_modules
workflowAll docsnode_modules/workflow/docs/
@workflow/aiAI + DurableAgent docsnode_modules/@workflow/ai/docs/
@workflow/corefoundations, how-it-works, APInode_modules/@workflow/core/docs/
@workflow/nextNext.js setup + APInode_modules/@workflow/next/docs/

Skill changes

The skills/workflow/SKILL.md now directs agents to search bundled docs instead of maintaining duplicate documentation:

glob "node_modules/workflow/docs/**/*.mdx"
grep "your query" node_modules/workflow/docs/

Removed manually-maintained reference files:

  • ai-agents.md → now in node_modules/@workflow/ai/docs/
  • api-reference.md → now in node_modules/workflow/docs/api-reference/
  • frameworks.md → now in node_modules/workflow/docs/getting-started/
  • patterns.md → now in node_modules/workflow/docs/foundations/

Kept common-errors.md for practical troubleshooting (not typically in official docs).

Test plan

  • Verify prepack scripts copy docs correctly
  • Verify npm pack --dry-run includes docs in tarball
  • Verify postpack scripts clean up docs directory
  • Verify docs are accessible after npm install workflow
  • Test skill with Claude Code agent

@vercel

vercelBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jan 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6006ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.032s (-25.4% 🟢)1.008s (~)0.977s101.00x
💻 LocalNext.js (Turbopack)0.039s (-8.7% 🟢)1.018s (~)0.979s101.22x
💻 LocalNitro0.043s (-0.7%)1.007s (~)0.964s101.34x
🐘 PostgresNext.js (Turbopack)0.187s (+12.8% 🔺)1.020s (~)0.832s105.91x
🐘 PostgresExpress0.254s (-17.3% 🟢)1.019s (~)0.765s108.02x
🐘 PostgresNitro0.289s (+22.5% 🔺)1.014s (~)0.725s109.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.667s (~)1.585s (+0.9%)0.917s101.00x
▲ VercelNext.js (Turbopack)0.699s (-17.7% 🟢)1.718s (-6.2% 🟢)1.020s101.05x
▲ VercelExpress0.710s (-1.3%)1.667s (+7.6% 🔺)0.957s101.06x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.081s (-3.1%)2.008s (~)0.927s101.00x
💻 LocalNext.js (Turbopack)1.089s (~)2.013s (~)0.923s101.01x
💻 LocalNitro1.116s (~)2.007s (~)0.891s101.03x
🐘 PostgresExpress2.148s (+0.9%)3.015s (~)0.867s101.99x
🐘 PostgresNitro2.158s (-1.4%)3.015s (~)0.857s102.00x
🐘 PostgresNext.js (Turbopack)2.298s (+16.8% 🔺)3.018s (+42.5% 🔺)0.720s102.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.817s (~)3.759s (+2.2%)0.942s101.00x
▲ VercelExpress2.943s (-3.2%)3.765s (~)0.823s101.04x
▲ VercelNext.js (Turbopack)3.149s (+9.1% 🔺)4.046s (+5.9% 🔺)0.897s101.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.607s (-2.1%)11.018s (~)0.411s51.00x
💻 LocalNext.js (Turbopack)10.703s (~)11.018s (~)0.315s51.01x
💻 LocalNitro10.835s (~)11.016s (~)0.181s51.02x
🐘 PostgresNext.js (Turbopack)15.761s (+6.8% 🔺)16.233s (+7.9% 🔺)0.472s51.49x
🐘 PostgresNitro20.390s (~)20.830s (-1.0%)0.440s51.92x
🐘 PostgresExpress20.457s (~)21.033s (~)0.576s51.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.562s (-6.3% 🟢)23.181s (-7.3% 🟢)0.620s51.00x
▲ VercelNext.js (Turbopack)22.704s (-5.4% 🟢)23.623s (-5.4% 🟢)0.919s51.01x
▲ VercelNitro23.263s (-1.7%)24.016s (-1.6%)0.753s51.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.392s (-0.7%)2.007s (~)0.615s151.00x
💻 LocalNitro1.415s (+0.6%)2.006s (~)0.591s151.02x
💻 LocalNext.js (Turbopack)1.416s (+2.2%)2.012s (~)0.596s151.02x
🐘 PostgresNext.js (Turbopack)2.063s (+2.3%)2.857s (+23.0% 🔺)0.794s111.48x
🐘 PostgresExpress2.165s (-3.3%)3.015s (~)0.850s101.56x
🐘 PostgresNitro2.228s (+1.7%)3.014s (~)0.786s101.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.207s (-9.2% 🟢)4.092s (-7.3% 🟢)0.886s81.00x
▲ VercelExpress3.270s (-8.5% 🟢)4.189s (-3.5%)0.919s81.02x
▲ VercelNitro3.302s (+9.9% 🔺)4.094s (+6.1% 🔺)0.792s81.03x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.301s (-7.4% 🟢)3.263s (+6.8% 🔺)0.962s101.00x
💻 LocalNext.js (Turbopack)2.460s (-0.8%)3.202s (+3.6%)0.742s101.07x
💻 LocalNitro2.506s (-0.9%)3.043s (+0.9%)0.537s101.09x
🐘 PostgresNitro8.156s (-5.3% 🟢)8.808s (-5.4% 🟢)0.651s43.54x
🐘 PostgresExpress8.474s (+11.8% 🔺)9.077s (+12.2% 🔺)0.603s43.68x
🐘 PostgresNext.js (Turbopack)12.674s (+7.0% 🔺)13.364s (+11.1% 🔺)0.690s35.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.099s (-7.8% 🟢)3.750s (-7.8% 🟢)0.651s81.00x
▲ VercelExpress3.414s (+12.4% 🔺)4.113s (+11.0% 🔺)0.699s81.10x
▲ VercelNext.js (Turbopack)3.536s (+5.3% 🔺)4.207s (+2.4%)0.671s81.14x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.381s (-4.7%)2.007s (~)0.625s151.00x
💻 LocalNext.js (Turbopack)1.420s (+0.6%)2.013s (~)0.593s151.03x
💻 LocalNitro1.434s (+0.9%)2.005s (~)0.572s151.04x
🐘 PostgresNitro2.000s (-7.0% 🟢)2.511s (-3.2%)0.511s121.45x
🐘 PostgresExpress2.005s (-4.7%)2.514s (-6.8% 🟢)0.509s121.45x
🐘 PostgresNext.js (Turbopack)2.161s (+21.2% 🔺)2.609s (+29.6% 🔺)0.448s121.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.831s (+3.5%)3.821s (+1.0%)0.990s81.00x
▲ VercelNext.js (Turbopack)2.834s (+2.3%)3.782s (-0.7%)0.948s81.00x
▲ VercelNitro3.054s (+7.2% 🔺)3.804s (+1.1%)0.750s81.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.266s (-10.2% 🟢)3.247s (+7.5% 🔺)0.982s101.00x
💻 LocalNext.js (Turbopack)2.531s (+1.6%)3.047s (~)0.516s101.12x
💻 LocalNitro2.689s (+4.8%)3.018s (~)0.329s101.19x
🐘 PostgresNitro10.928s (-15.3% 🟢)11.390s (-16.9% 🟢)0.462s34.82x
🐘 PostgresExpress12.232s (+12.3% 🔺)12.754s (+12.3% 🔺)0.523s35.40x
🐘 PostgresNext.js (Turbopack)12.663s (+6.9% 🔺)13.355s (+7.9% 🔺)0.693s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.013s (-2.5%)3.661s (-4.4%)0.648s91.00x
▲ VercelExpress3.084s (-13.3% 🟢)4.035s (-6.5% 🟢)0.951s81.02x
▲ VercelNext.js (Turbopack)3.101s (-9.8% 🟢)3.920s (-7.6% 🟢)0.818s81.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.127s (-30.1% 🟢)0.999s (+0.6%)0.013s (-7.7% 🟢)1.021s (~)0.894s101.00x
💻 LocalNext.js (Turbopack)0.149s (+2.6%)1.003s (~)0.016s (-18.3% 🟢)1.027s (~)0.879s101.17x
💻 LocalNitro0.185s (+1.9%)0.993s (~)0.015s (~)1.022s (~)0.837s101.46x
🐘 PostgresNext.js (Turbopack)1.138s (+24.0% 🔺)1.907s (+40.3% 🔺)0.000s (+Infinity% 🔺)2.017s (+32.7% 🔺)0.880s108.97x
🐘 PostgresExpress2.257s (-2.0%)2.784s (+1.5%)0.000s (-100.0% 🟢)3.015s (~)0.759s1017.78x
🐘 PostgresNitro2.303s (+2.5%)2.739s (-1.9%)0.000s (+Infinity% 🔺)3.015s (~)0.712s1018.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.024s (-5.2% 🟢)3.205s (-4.1%)0.825s (+19.3% 🔺)4.572s (-4.0%)1.549s101.00x
▲ VercelNext.js (Turbopack)3.175s (+5.6% 🔺)3.393s (+1.9%)0.861s (+119.8% 🔺)4.783s (+12.7% 🔺)1.607s101.05x
▲ VercelExpress3.493s (+15.1% 🔺)3.826s (+20.7% 🔺)0.507s (-28.4% 🟢)4.865s (+9.7% 🔺)1.371s101.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)4/8
▲ VercelNitro5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)💻 Local8/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@johnlindquist
johnlindquistforce-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0dCompareJanuary 23, 2026 19:51
@johnlindquistjohnlindquist changed the title Add Claude Code custom commands and workflow skillWorkflow Skills for npx skillsJan 23, 2026
@@ -0,0 +1,434 @@
# Complete API Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one particularly I'm worried about shipping since it will go outdated very fast as they're generated in the docs using tsdoc. were about to make big changes just in the next couple of days/weeks to the API and we constantly will

Comment on lines +277 to +283
**Verify connection:**
```bash
# Check your app responds to workflow endpoints
curl -s http://localhost:3000/.well-known/workflow/v1/flow \
-X POST -H "Content-Type: application/json"
# Should return: {"error": "Missing required headers"} (not 404)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a health command that's better for checking. npx health
cc @TooTallNate

writer.releaseLock();
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for essential APIs we can also show usage of getRun with an example of getting status, seeing the returnValue, or cancelling a run (all in the docs)

Comment threadskills/workflow/SKILL.md Outdated
Comment on lines +247 to +251
# Terminal 2: Open dashboard (connects to port 3000)
npx workflow web

# If app runs on different port:
npx workflow web --app-url http://localhost:3001

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the CLI can also be used to inspect all the runs/steps etc. without using the browser. npx workflow inspect runs, npx workflow inspect run wrun_sfnesf, npx workflow inspect --backend vercel etc.

this is specifically meant for agents to consume.

npx workflow web is mostly for humans, and the cli npx workflow inspect is meant for agents

can we please include that somewhere so it knows :)

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments I'd love to include/address before we ship the first version - but I'm generally happy to just put it and keep iterating once it's out there!

johnlindquistand others added 10 commits January 26, 2026 19:18
Add custom slash commands for Claude Code:
- /pr command for creating PRs following repo conventions
Add workflow skill with comprehensive documentation:
- Main SKILL.md with core concepts and quick reference
- Reference docs for frameworks, AI agents, patterns, errors, and API
Signed-off-by: johnlindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Add documentation for custom class serialization using @workflow/serde
symbols (WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE) and clarify what can
and cannot be serialized based on recent PR #762.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update sleep() example date from 2025 to 2027 (future date)
- Fix getWorkflowMetadata() to use correct properties: workflowRunId,
workflowStartedAt, url (not runId, workflowName)
- Fix getStepMetadata() to use correct property: attempt (not attemptNumber)
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Reorganize skill files to support multiple skills under ./skill/<name>/
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update SKILL.md to direct agents to search node_modules/workflow/docs/
- Remove manually-maintained reference docs (ai-agents, api-reference, frameworks, patterns)
- Keep common-errors.md for practical troubleshooting
- Add prepack/postpack hooks to bundle docs in npm packages:
- workflow: All docs from docs/content/docs/
- @workflow/ai: AI-specific docs
- @workflow/core: foundations, how-it-works, api-reference
- @workflow/next: Next.js setup docs
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Use del-cli for postpack cleanup to match the AI SDK's cross-platform
approach. This ensures consistent tooling across both projects.
- Add del-cli ^5.1.0 to root devDependencies
- Update postpack in @workflow/core, @workflow/next, @workflow/ai, and
workflow packages from `rm -rf docs` to `del-cli docs`
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Document the CLI health check command for verifying workflow/step
endpoint connectivity during local development and production.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
@johnlindquist

Copy link
Copy Markdown
ContributorAuthor

Added workflow health command documentation to skills/workflow/references/common-errors.md - includes usage examples for local dev, specific endpoints, custom ports, and Vercel backend.

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna keep reviewing but leaving initial feedback

Comment threadpackages/ai/package.json Outdated
"clean": "tsc --build --clean && rm -rf docs ||:",
"test": "vitest run",
"prepack": "mkdir -p docs && cp -r ../../docs/content/docs/ai ./docs/ && cp -r ../../docs/content/docs/api-reference/workflow-ai ./docs/",
"postpack": "del-cli docs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's either use rm -rf OR del-cli, not both

Comment threadskills/workflow/SKILL.md Outdated

## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not do this. that was meant to be a specific example and actually with DurableAgent you don't need that

Comment threadskills/workflow/SKILL.md Outdated
## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries
2. Use `sleep()` instead of setTimeout/setInterval

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "workflow" context. in steps it should still use setTimeout/setInterval

maybe claude is smart enough but fyi

Comment threadskills/workflow/SKILL.md Outdated
2. Use `sleep()` instead of setTimeout/setInterval
3. Move Node.js modules (fs, crypto, etc.) to step functions
4. Use `FatalError` for permanent failures, `RetryableError` for retries
5. Use `use step` with AI SDK methods to avoid issues with OIDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this means and it seems weird to put this in the index/root of the skill

Comment threadpackages/core/package.json
Comment threadskills/workflow/references/common-errors.md Outdated
johnlindquistand others added 3 commits January 27, 2026 12:10
- Remove del-cli dependency, use rm -rf consistently in postpack scripts
- Restructure SKILL.md to lead with "Prefer Step Functions" pattern
- Add sandbox limitations table for workflow-context workarounds
- Consolidate examples and remove duplication
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Move useful tips (serialization, streaming, debugging) into main skill
file and remove the separate common-errors.md reference file.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@johnlindquist@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Workflow Skills for npx skills - #842

Merged
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands
Jan 28, 2026
Merged

Workflow Skills for npx skills#842
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands

Conversation

@johnlindquist

@johnlindquistjohnlindquist commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Code skills for the Workflow DevKit, enabling AI agents to assist with workflow development.

Documentation Bundling

This PR implements a documentation bundling pattern (similar to ai SDK) that includes docs in npm packages:

How it works

  1. prepack hook copies docs from docs/content/docs/ to package's ./docs/ directory
  2. npm pack includes docs/**/* in the tarball
  3. postpack hook removes the temporary ./docs/ directory

Packages updated

PackageDocs BundledPath in node_modules
workflowAll docsnode_modules/workflow/docs/
@workflow/aiAI + DurableAgent docsnode_modules/@workflow/ai/docs/
@workflow/corefoundations, how-it-works, APInode_modules/@workflow/core/docs/
@workflow/nextNext.js setup + APInode_modules/@workflow/next/docs/

Skill changes

The skills/workflow/SKILL.md now directs agents to search bundled docs instead of maintaining duplicate documentation:

glob "node_modules/workflow/docs/**/*.mdx"
grep "your query" node_modules/workflow/docs/

Removed manually-maintained reference files:

  • ai-agents.md → now in node_modules/@workflow/ai/docs/
  • api-reference.md → now in node_modules/workflow/docs/api-reference/
  • frameworks.md → now in node_modules/workflow/docs/getting-started/
  • patterns.md → now in node_modules/workflow/docs/foundations/

Kept common-errors.md for practical troubleshooting (not typically in official docs).

Test plan

  • Verify prepack scripts copy docs correctly
  • Verify npm pack --dry-run includes docs in tarball
  • Verify postpack scripts clean up docs directory
  • Verify docs are accessible after npm install workflow
  • Test skill with Claude Code agent

@vercel

vercelBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jan 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6006ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.032s (-25.4% 🟢)1.008s (~)0.977s101.00x
💻 LocalNext.js (Turbopack)0.039s (-8.7% 🟢)1.018s (~)0.979s101.22x
💻 LocalNitro0.043s (-0.7%)1.007s (~)0.964s101.34x
🐘 PostgresNext.js (Turbopack)0.187s (+12.8% 🔺)1.020s (~)0.832s105.91x
🐘 PostgresExpress0.254s (-17.3% 🟢)1.019s (~)0.765s108.02x
🐘 PostgresNitro0.289s (+22.5% 🔺)1.014s (~)0.725s109.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.667s (~)1.585s (+0.9%)0.917s101.00x
▲ VercelNext.js (Turbopack)0.699s (-17.7% 🟢)1.718s (-6.2% 🟢)1.020s101.05x
▲ VercelExpress0.710s (-1.3%)1.667s (+7.6% 🔺)0.957s101.06x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.081s (-3.1%)2.008s (~)0.927s101.00x
💻 LocalNext.js (Turbopack)1.089s (~)2.013s (~)0.923s101.01x
💻 LocalNitro1.116s (~)2.007s (~)0.891s101.03x
🐘 PostgresExpress2.148s (+0.9%)3.015s (~)0.867s101.99x
🐘 PostgresNitro2.158s (-1.4%)3.015s (~)0.857s102.00x
🐘 PostgresNext.js (Turbopack)2.298s (+16.8% 🔺)3.018s (+42.5% 🔺)0.720s102.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.817s (~)3.759s (+2.2%)0.942s101.00x
▲ VercelExpress2.943s (-3.2%)3.765s (~)0.823s101.04x
▲ VercelNext.js (Turbopack)3.149s (+9.1% 🔺)4.046s (+5.9% 🔺)0.897s101.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.607s (-2.1%)11.018s (~)0.411s51.00x
💻 LocalNext.js (Turbopack)10.703s (~)11.018s (~)0.315s51.01x
💻 LocalNitro10.835s (~)11.016s (~)0.181s51.02x
🐘 PostgresNext.js (Turbopack)15.761s (+6.8% 🔺)16.233s (+7.9% 🔺)0.472s51.49x
🐘 PostgresNitro20.390s (~)20.830s (-1.0%)0.440s51.92x
🐘 PostgresExpress20.457s (~)21.033s (~)0.576s51.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.562s (-6.3% 🟢)23.181s (-7.3% 🟢)0.620s51.00x
▲ VercelNext.js (Turbopack)22.704s (-5.4% 🟢)23.623s (-5.4% 🟢)0.919s51.01x
▲ VercelNitro23.263s (-1.7%)24.016s (-1.6%)0.753s51.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.392s (-0.7%)2.007s (~)0.615s151.00x
💻 LocalNitro1.415s (+0.6%)2.006s (~)0.591s151.02x
💻 LocalNext.js (Turbopack)1.416s (+2.2%)2.012s (~)0.596s151.02x
🐘 PostgresNext.js (Turbopack)2.063s (+2.3%)2.857s (+23.0% 🔺)0.794s111.48x
🐘 PostgresExpress2.165s (-3.3%)3.015s (~)0.850s101.56x
🐘 PostgresNitro2.228s (+1.7%)3.014s (~)0.786s101.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.207s (-9.2% 🟢)4.092s (-7.3% 🟢)0.886s81.00x
▲ VercelExpress3.270s (-8.5% 🟢)4.189s (-3.5%)0.919s81.02x
▲ VercelNitro3.302s (+9.9% 🔺)4.094s (+6.1% 🔺)0.792s81.03x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.301s (-7.4% 🟢)3.263s (+6.8% 🔺)0.962s101.00x
💻 LocalNext.js (Turbopack)2.460s (-0.8%)3.202s (+3.6%)0.742s101.07x
💻 LocalNitro2.506s (-0.9%)3.043s (+0.9%)0.537s101.09x
🐘 PostgresNitro8.156s (-5.3% 🟢)8.808s (-5.4% 🟢)0.651s43.54x
🐘 PostgresExpress8.474s (+11.8% 🔺)9.077s (+12.2% 🔺)0.603s43.68x
🐘 PostgresNext.js (Turbopack)12.674s (+7.0% 🔺)13.364s (+11.1% 🔺)0.690s35.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.099s (-7.8% 🟢)3.750s (-7.8% 🟢)0.651s81.00x
▲ VercelExpress3.414s (+12.4% 🔺)4.113s (+11.0% 🔺)0.699s81.10x
▲ VercelNext.js (Turbopack)3.536s (+5.3% 🔺)4.207s (+2.4%)0.671s81.14x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.381s (-4.7%)2.007s (~)0.625s151.00x
💻 LocalNext.js (Turbopack)1.420s (+0.6%)2.013s (~)0.593s151.03x
💻 LocalNitro1.434s (+0.9%)2.005s (~)0.572s151.04x
🐘 PostgresNitro2.000s (-7.0% 🟢)2.511s (-3.2%)0.511s121.45x
🐘 PostgresExpress2.005s (-4.7%)2.514s (-6.8% 🟢)0.509s121.45x
🐘 PostgresNext.js (Turbopack)2.161s (+21.2% 🔺)2.609s (+29.6% 🔺)0.448s121.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.831s (+3.5%)3.821s (+1.0%)0.990s81.00x
▲ VercelNext.js (Turbopack)2.834s (+2.3%)3.782s (-0.7%)0.948s81.00x
▲ VercelNitro3.054s (+7.2% 🔺)3.804s (+1.1%)0.750s81.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.266s (-10.2% 🟢)3.247s (+7.5% 🔺)0.982s101.00x
💻 LocalNext.js (Turbopack)2.531s (+1.6%)3.047s (~)0.516s101.12x
💻 LocalNitro2.689s (+4.8%)3.018s (~)0.329s101.19x
🐘 PostgresNitro10.928s (-15.3% 🟢)11.390s (-16.9% 🟢)0.462s34.82x
🐘 PostgresExpress12.232s (+12.3% 🔺)12.754s (+12.3% 🔺)0.523s35.40x
🐘 PostgresNext.js (Turbopack)12.663s (+6.9% 🔺)13.355s (+7.9% 🔺)0.693s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.013s (-2.5%)3.661s (-4.4%)0.648s91.00x
▲ VercelExpress3.084s (-13.3% 🟢)4.035s (-6.5% 🟢)0.951s81.02x
▲ VercelNext.js (Turbopack)3.101s (-9.8% 🟢)3.920s (-7.6% 🟢)0.818s81.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.127s (-30.1% 🟢)0.999s (+0.6%)0.013s (-7.7% 🟢)1.021s (~)0.894s101.00x
💻 LocalNext.js (Turbopack)0.149s (+2.6%)1.003s (~)0.016s (-18.3% 🟢)1.027s (~)0.879s101.17x
💻 LocalNitro0.185s (+1.9%)0.993s (~)0.015s (~)1.022s (~)0.837s101.46x
🐘 PostgresNext.js (Turbopack)1.138s (+24.0% 🔺)1.907s (+40.3% 🔺)0.000s (+Infinity% 🔺)2.017s (+32.7% 🔺)0.880s108.97x
🐘 PostgresExpress2.257s (-2.0%)2.784s (+1.5%)0.000s (-100.0% 🟢)3.015s (~)0.759s1017.78x
🐘 PostgresNitro2.303s (+2.5%)2.739s (-1.9%)0.000s (+Infinity% 🔺)3.015s (~)0.712s1018.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.024s (-5.2% 🟢)3.205s (-4.1%)0.825s (+19.3% 🔺)4.572s (-4.0%)1.549s101.00x
▲ VercelNext.js (Turbopack)3.175s (+5.6% 🔺)3.393s (+1.9%)0.861s (+119.8% 🔺)4.783s (+12.7% 🔺)1.607s101.05x
▲ VercelExpress3.493s (+15.1% 🔺)3.826s (+20.7% 🔺)0.507s (-28.4% 🟢)4.865s (+9.7% 🔺)1.371s101.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)4/8
▲ VercelNitro5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)💻 Local8/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@johnlindquist
johnlindquistforce-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0dCompareJanuary 23, 2026 19:51
@johnlindquistjohnlindquist changed the title Add Claude Code custom commands and workflow skillWorkflow Skills for npx skillsJan 23, 2026
@@ -0,0 +1,434 @@
# Complete API Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one particularly I'm worried about shipping since it will go outdated very fast as they're generated in the docs using tsdoc. were about to make big changes just in the next couple of days/weeks to the API and we constantly will

Comment on lines +277 to +283
**Verify connection:**
```bash
# Check your app responds to workflow endpoints
curl -s http://localhost:3000/.well-known/workflow/v1/flow \
-X POST -H "Content-Type: application/json"
# Should return: {"error": "Missing required headers"} (not 404)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a health command that's better for checking. npx health
cc @TooTallNate

writer.releaseLock();
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for essential APIs we can also show usage of getRun with an example of getting status, seeing the returnValue, or cancelling a run (all in the docs)

Comment threadskills/workflow/SKILL.md Outdated
Comment on lines +247 to +251
# Terminal 2: Open dashboard (connects to port 3000)
npx workflow web

# If app runs on different port:
npx workflow web --app-url http://localhost:3001

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the CLI can also be used to inspect all the runs/steps etc. without using the browser. npx workflow inspect runs, npx workflow inspect run wrun_sfnesf, npx workflow inspect --backend vercel etc.

this is specifically meant for agents to consume.

npx workflow web is mostly for humans, and the cli npx workflow inspect is meant for agents

can we please include that somewhere so it knows :)

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments I'd love to include/address before we ship the first version - but I'm generally happy to just put it and keep iterating once it's out there!

johnlindquistand others added 10 commits January 26, 2026 19:18
Add custom slash commands for Claude Code:
- /pr command for creating PRs following repo conventions
Add workflow skill with comprehensive documentation:
- Main SKILL.md with core concepts and quick reference
- Reference docs for frameworks, AI agents, patterns, errors, and API
Signed-off-by: johnlindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Add documentation for custom class serialization using @workflow/serde
symbols (WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE) and clarify what can
and cannot be serialized based on recent PR #762.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update sleep() example date from 2025 to 2027 (future date)
- Fix getWorkflowMetadata() to use correct properties: workflowRunId,
workflowStartedAt, url (not runId, workflowName)
- Fix getStepMetadata() to use correct property: attempt (not attemptNumber)
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Reorganize skill files to support multiple skills under ./skill/<name>/
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update SKILL.md to direct agents to search node_modules/workflow/docs/
- Remove manually-maintained reference docs (ai-agents, api-reference, frameworks, patterns)
- Keep common-errors.md for practical troubleshooting
- Add prepack/postpack hooks to bundle docs in npm packages:
- workflow: All docs from docs/content/docs/
- @workflow/ai: AI-specific docs
- @workflow/core: foundations, how-it-works, api-reference
- @workflow/next: Next.js setup docs
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Use del-cli for postpack cleanup to match the AI SDK's cross-platform
approach. This ensures consistent tooling across both projects.
- Add del-cli ^5.1.0 to root devDependencies
- Update postpack in @workflow/core, @workflow/next, @workflow/ai, and
workflow packages from `rm -rf docs` to `del-cli docs`
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Document the CLI health check command for verifying workflow/step
endpoint connectivity during local development and production.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
@johnlindquist

Copy link
Copy Markdown
ContributorAuthor

Added workflow health command documentation to skills/workflow/references/common-errors.md - includes usage examples for local dev, specific endpoints, custom ports, and Vercel backend.

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna keep reviewing but leaving initial feedback

Comment threadpackages/ai/package.json Outdated
"clean": "tsc --build --clean && rm -rf docs ||:",
"test": "vitest run",
"prepack": "mkdir -p docs && cp -r ../../docs/content/docs/ai ./docs/ && cp -r ../../docs/content/docs/api-reference/workflow-ai ./docs/",
"postpack": "del-cli docs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's either use rm -rf OR del-cli, not both

Comment threadskills/workflow/SKILL.md Outdated

## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not do this. that was meant to be a specific example and actually with DurableAgent you don't need that

Comment threadskills/workflow/SKILL.md Outdated
## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries
2. Use `sleep()` instead of setTimeout/setInterval

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "workflow" context. in steps it should still use setTimeout/setInterval

maybe claude is smart enough but fyi

Comment threadskills/workflow/SKILL.md Outdated
2. Use `sleep()` instead of setTimeout/setInterval
3. Move Node.js modules (fs, crypto, etc.) to step functions
4. Use `FatalError` for permanent failures, `RetryableError` for retries
5. Use `use step` with AI SDK methods to avoid issues with OIDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this means and it seems weird to put this in the index/root of the skill

Comment threadpackages/core/package.json
Comment threadskills/workflow/references/common-errors.md Outdated
johnlindquistand others added 3 commits January 27, 2026 12:10
- Remove del-cli dependency, use rm -rf consistently in postpack scripts
- Restructure SKILL.md to lead with "Prefer Step Functions" pattern
- Add sandbox limitations table for workflow-context workarounds
- Consolidate examples and remove duplication
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Move useful tips (serialization, streaming, debugging) into main skill
file and remove the separate common-errors.md reference file.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@johnlindquist@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Workflow Skills for npx skills - #842

Merged
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands
Jan 28, 2026
Merged

Workflow Skills for npx skills#842
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands

Conversation

@johnlindquist

@johnlindquistjohnlindquist commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Code skills for the Workflow DevKit, enabling AI agents to assist with workflow development.

Documentation Bundling

This PR implements a documentation bundling pattern (similar to ai SDK) that includes docs in npm packages:

How it works

  1. prepack hook copies docs from docs/content/docs/ to package's ./docs/ directory
  2. npm pack includes docs/**/* in the tarball
  3. postpack hook removes the temporary ./docs/ directory

Packages updated

PackageDocs BundledPath in node_modules
workflowAll docsnode_modules/workflow/docs/
@workflow/aiAI + DurableAgent docsnode_modules/@workflow/ai/docs/
@workflow/corefoundations, how-it-works, APInode_modules/@workflow/core/docs/
@workflow/nextNext.js setup + APInode_modules/@workflow/next/docs/

Skill changes

The skills/workflow/SKILL.md now directs agents to search bundled docs instead of maintaining duplicate documentation:

glob "node_modules/workflow/docs/**/*.mdx"
grep "your query" node_modules/workflow/docs/

Removed manually-maintained reference files:

  • ai-agents.md → now in node_modules/@workflow/ai/docs/
  • api-reference.md → now in node_modules/workflow/docs/api-reference/
  • frameworks.md → now in node_modules/workflow/docs/getting-started/
  • patterns.md → now in node_modules/workflow/docs/foundations/

Kept common-errors.md for practical troubleshooting (not typically in official docs).

Test plan

  • Verify prepack scripts copy docs correctly
  • Verify npm pack --dry-run includes docs in tarball
  • Verify postpack scripts clean up docs directory
  • Verify docs are accessible after npm install workflow
  • Test skill with Claude Code agent

@vercel

vercelBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jan 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6006ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.032s (-25.4% 🟢)1.008s (~)0.977s101.00x
💻 LocalNext.js (Turbopack)0.039s (-8.7% 🟢)1.018s (~)0.979s101.22x
💻 LocalNitro0.043s (-0.7%)1.007s (~)0.964s101.34x
🐘 PostgresNext.js (Turbopack)0.187s (+12.8% 🔺)1.020s (~)0.832s105.91x
🐘 PostgresExpress0.254s (-17.3% 🟢)1.019s (~)0.765s108.02x
🐘 PostgresNitro0.289s (+22.5% 🔺)1.014s (~)0.725s109.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.667s (~)1.585s (+0.9%)0.917s101.00x
▲ VercelNext.js (Turbopack)0.699s (-17.7% 🟢)1.718s (-6.2% 🟢)1.020s101.05x
▲ VercelExpress0.710s (-1.3%)1.667s (+7.6% 🔺)0.957s101.06x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.081s (-3.1%)2.008s (~)0.927s101.00x
💻 LocalNext.js (Turbopack)1.089s (~)2.013s (~)0.923s101.01x
💻 LocalNitro1.116s (~)2.007s (~)0.891s101.03x
🐘 PostgresExpress2.148s (+0.9%)3.015s (~)0.867s101.99x
🐘 PostgresNitro2.158s (-1.4%)3.015s (~)0.857s102.00x
🐘 PostgresNext.js (Turbopack)2.298s (+16.8% 🔺)3.018s (+42.5% 🔺)0.720s102.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.817s (~)3.759s (+2.2%)0.942s101.00x
▲ VercelExpress2.943s (-3.2%)3.765s (~)0.823s101.04x
▲ VercelNext.js (Turbopack)3.149s (+9.1% 🔺)4.046s (+5.9% 🔺)0.897s101.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.607s (-2.1%)11.018s (~)0.411s51.00x
💻 LocalNext.js (Turbopack)10.703s (~)11.018s (~)0.315s51.01x
💻 LocalNitro10.835s (~)11.016s (~)0.181s51.02x
🐘 PostgresNext.js (Turbopack)15.761s (+6.8% 🔺)16.233s (+7.9% 🔺)0.472s51.49x
🐘 PostgresNitro20.390s (~)20.830s (-1.0%)0.440s51.92x
🐘 PostgresExpress20.457s (~)21.033s (~)0.576s51.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.562s (-6.3% 🟢)23.181s (-7.3% 🟢)0.620s51.00x
▲ VercelNext.js (Turbopack)22.704s (-5.4% 🟢)23.623s (-5.4% 🟢)0.919s51.01x
▲ VercelNitro23.263s (-1.7%)24.016s (-1.6%)0.753s51.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.392s (-0.7%)2.007s (~)0.615s151.00x
💻 LocalNitro1.415s (+0.6%)2.006s (~)0.591s151.02x
💻 LocalNext.js (Turbopack)1.416s (+2.2%)2.012s (~)0.596s151.02x
🐘 PostgresNext.js (Turbopack)2.063s (+2.3%)2.857s (+23.0% 🔺)0.794s111.48x
🐘 PostgresExpress2.165s (-3.3%)3.015s (~)0.850s101.56x
🐘 PostgresNitro2.228s (+1.7%)3.014s (~)0.786s101.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.207s (-9.2% 🟢)4.092s (-7.3% 🟢)0.886s81.00x
▲ VercelExpress3.270s (-8.5% 🟢)4.189s (-3.5%)0.919s81.02x
▲ VercelNitro3.302s (+9.9% 🔺)4.094s (+6.1% 🔺)0.792s81.03x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.301s (-7.4% 🟢)3.263s (+6.8% 🔺)0.962s101.00x
💻 LocalNext.js (Turbopack)2.460s (-0.8%)3.202s (+3.6%)0.742s101.07x
💻 LocalNitro2.506s (-0.9%)3.043s (+0.9%)0.537s101.09x
🐘 PostgresNitro8.156s (-5.3% 🟢)8.808s (-5.4% 🟢)0.651s43.54x
🐘 PostgresExpress8.474s (+11.8% 🔺)9.077s (+12.2% 🔺)0.603s43.68x
🐘 PostgresNext.js (Turbopack)12.674s (+7.0% 🔺)13.364s (+11.1% 🔺)0.690s35.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.099s (-7.8% 🟢)3.750s (-7.8% 🟢)0.651s81.00x
▲ VercelExpress3.414s (+12.4% 🔺)4.113s (+11.0% 🔺)0.699s81.10x
▲ VercelNext.js (Turbopack)3.536s (+5.3% 🔺)4.207s (+2.4%)0.671s81.14x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.381s (-4.7%)2.007s (~)0.625s151.00x
💻 LocalNext.js (Turbopack)1.420s (+0.6%)2.013s (~)0.593s151.03x
💻 LocalNitro1.434s (+0.9%)2.005s (~)0.572s151.04x
🐘 PostgresNitro2.000s (-7.0% 🟢)2.511s (-3.2%)0.511s121.45x
🐘 PostgresExpress2.005s (-4.7%)2.514s (-6.8% 🟢)0.509s121.45x
🐘 PostgresNext.js (Turbopack)2.161s (+21.2% 🔺)2.609s (+29.6% 🔺)0.448s121.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.831s (+3.5%)3.821s (+1.0%)0.990s81.00x
▲ VercelNext.js (Turbopack)2.834s (+2.3%)3.782s (-0.7%)0.948s81.00x
▲ VercelNitro3.054s (+7.2% 🔺)3.804s (+1.1%)0.750s81.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.266s (-10.2% 🟢)3.247s (+7.5% 🔺)0.982s101.00x
💻 LocalNext.js (Turbopack)2.531s (+1.6%)3.047s (~)0.516s101.12x
💻 LocalNitro2.689s (+4.8%)3.018s (~)0.329s101.19x
🐘 PostgresNitro10.928s (-15.3% 🟢)11.390s (-16.9% 🟢)0.462s34.82x
🐘 PostgresExpress12.232s (+12.3% 🔺)12.754s (+12.3% 🔺)0.523s35.40x
🐘 PostgresNext.js (Turbopack)12.663s (+6.9% 🔺)13.355s (+7.9% 🔺)0.693s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.013s (-2.5%)3.661s (-4.4%)0.648s91.00x
▲ VercelExpress3.084s (-13.3% 🟢)4.035s (-6.5% 🟢)0.951s81.02x
▲ VercelNext.js (Turbopack)3.101s (-9.8% 🟢)3.920s (-7.6% 🟢)0.818s81.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.127s (-30.1% 🟢)0.999s (+0.6%)0.013s (-7.7% 🟢)1.021s (~)0.894s101.00x
💻 LocalNext.js (Turbopack)0.149s (+2.6%)1.003s (~)0.016s (-18.3% 🟢)1.027s (~)0.879s101.17x
💻 LocalNitro0.185s (+1.9%)0.993s (~)0.015s (~)1.022s (~)0.837s101.46x
🐘 PostgresNext.js (Turbopack)1.138s (+24.0% 🔺)1.907s (+40.3% 🔺)0.000s (+Infinity% 🔺)2.017s (+32.7% 🔺)0.880s108.97x
🐘 PostgresExpress2.257s (-2.0%)2.784s (+1.5%)0.000s (-100.0% 🟢)3.015s (~)0.759s1017.78x
🐘 PostgresNitro2.303s (+2.5%)2.739s (-1.9%)0.000s (+Infinity% 🔺)3.015s (~)0.712s1018.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.024s (-5.2% 🟢)3.205s (-4.1%)0.825s (+19.3% 🔺)4.572s (-4.0%)1.549s101.00x
▲ VercelNext.js (Turbopack)3.175s (+5.6% 🔺)3.393s (+1.9%)0.861s (+119.8% 🔺)4.783s (+12.7% 🔺)1.607s101.05x
▲ VercelExpress3.493s (+15.1% 🔺)3.826s (+20.7% 🔺)0.507s (-28.4% 🟢)4.865s (+9.7% 🔺)1.371s101.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)4/8
▲ VercelNitro5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)💻 Local8/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@johnlindquist
johnlindquistforce-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0dCompareJanuary 23, 2026 19:51
@johnlindquistjohnlindquist changed the title Add Claude Code custom commands and workflow skillWorkflow Skills for npx skillsJan 23, 2026
@@ -0,0 +1,434 @@
# Complete API Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one particularly I'm worried about shipping since it will go outdated very fast as they're generated in the docs using tsdoc. were about to make big changes just in the next couple of days/weeks to the API and we constantly will

Comment on lines +277 to +283
**Verify connection:**
```bash
# Check your app responds to workflow endpoints
curl -s http://localhost:3000/.well-known/workflow/v1/flow \
-X POST -H "Content-Type: application/json"
# Should return: {"error": "Missing required headers"} (not 404)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a health command that's better for checking. npx health
cc @TooTallNate

writer.releaseLock();
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for essential APIs we can also show usage of getRun with an example of getting status, seeing the returnValue, or cancelling a run (all in the docs)

Comment threadskills/workflow/SKILL.md Outdated
Comment on lines +247 to +251
# Terminal 2: Open dashboard (connects to port 3000)
npx workflow web

# If app runs on different port:
npx workflow web --app-url http://localhost:3001

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the CLI can also be used to inspect all the runs/steps etc. without using the browser. npx workflow inspect runs, npx workflow inspect run wrun_sfnesf, npx workflow inspect --backend vercel etc.

this is specifically meant for agents to consume.

npx workflow web is mostly for humans, and the cli npx workflow inspect is meant for agents

can we please include that somewhere so it knows :)

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments I'd love to include/address before we ship the first version - but I'm generally happy to just put it and keep iterating once it's out there!

johnlindquistand others added 10 commits January 26, 2026 19:18
Add custom slash commands for Claude Code:
- /pr command for creating PRs following repo conventions
Add workflow skill with comprehensive documentation:
- Main SKILL.md with core concepts and quick reference
- Reference docs for frameworks, AI agents, patterns, errors, and API
Signed-off-by: johnlindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Add documentation for custom class serialization using @workflow/serde
symbols (WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE) and clarify what can
and cannot be serialized based on recent PR #762.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update sleep() example date from 2025 to 2027 (future date)
- Fix getWorkflowMetadata() to use correct properties: workflowRunId,
workflowStartedAt, url (not runId, workflowName)
- Fix getStepMetadata() to use correct property: attempt (not attemptNumber)
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Reorganize skill files to support multiple skills under ./skill/<name>/
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update SKILL.md to direct agents to search node_modules/workflow/docs/
- Remove manually-maintained reference docs (ai-agents, api-reference, frameworks, patterns)
- Keep common-errors.md for practical troubleshooting
- Add prepack/postpack hooks to bundle docs in npm packages:
- workflow: All docs from docs/content/docs/
- @workflow/ai: AI-specific docs
- @workflow/core: foundations, how-it-works, api-reference
- @workflow/next: Next.js setup docs
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Use del-cli for postpack cleanup to match the AI SDK's cross-platform
approach. This ensures consistent tooling across both projects.
- Add del-cli ^5.1.0 to root devDependencies
- Update postpack in @workflow/core, @workflow/next, @workflow/ai, and
workflow packages from `rm -rf docs` to `del-cli docs`
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Document the CLI health check command for verifying workflow/step
endpoint connectivity during local development and production.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
@johnlindquist

Copy link
Copy Markdown
ContributorAuthor

Added workflow health command documentation to skills/workflow/references/common-errors.md - includes usage examples for local dev, specific endpoints, custom ports, and Vercel backend.

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna keep reviewing but leaving initial feedback

Comment threadpackages/ai/package.json Outdated
"clean": "tsc --build --clean && rm -rf docs ||:",
"test": "vitest run",
"prepack": "mkdir -p docs && cp -r ../../docs/content/docs/ai ./docs/ && cp -r ../../docs/content/docs/api-reference/workflow-ai ./docs/",
"postpack": "del-cli docs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's either use rm -rf OR del-cli, not both

Comment threadskills/workflow/SKILL.md Outdated

## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not do this. that was meant to be a specific example and actually with DurableAgent you don't need that

Comment threadskills/workflow/SKILL.md Outdated
## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries
2. Use `sleep()` instead of setTimeout/setInterval

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "workflow" context. in steps it should still use setTimeout/setInterval

maybe claude is smart enough but fyi

Comment threadskills/workflow/SKILL.md Outdated
2. Use `sleep()` instead of setTimeout/setInterval
3. Move Node.js modules (fs, crypto, etc.) to step functions
4. Use `FatalError` for permanent failures, `RetryableError` for retries
5. Use `use step` with AI SDK methods to avoid issues with OIDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this means and it seems weird to put this in the index/root of the skill

Comment threadpackages/core/package.json
Comment threadskills/workflow/references/common-errors.md Outdated
johnlindquistand others added 3 commits January 27, 2026 12:10
- Remove del-cli dependency, use rm -rf consistently in postpack scripts
- Restructure SKILL.md to lead with "Prefer Step Functions" pattern
- Add sandbox limitations table for workflow-context workarounds
- Consolidate examples and remove duplication
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Move useful tips (serialization, streaming, debugging) into main skill
file and remove the separate common-errors.md reference file.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@johnlindquist@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Workflow Skills for npx skills - #842

Merged
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands
Jan 28, 2026
Merged

Workflow Skills for npx skills#842
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands

Conversation

@johnlindquist

@johnlindquistjohnlindquist commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Code skills for the Workflow DevKit, enabling AI agents to assist with workflow development.

Documentation Bundling

This PR implements a documentation bundling pattern (similar to ai SDK) that includes docs in npm packages:

How it works

  1. prepack hook copies docs from docs/content/docs/ to package's ./docs/ directory
  2. npm pack includes docs/**/* in the tarball
  3. postpack hook removes the temporary ./docs/ directory

Packages updated

PackageDocs BundledPath in node_modules
workflowAll docsnode_modules/workflow/docs/
@workflow/aiAI + DurableAgent docsnode_modules/@workflow/ai/docs/
@workflow/corefoundations, how-it-works, APInode_modules/@workflow/core/docs/
@workflow/nextNext.js setup + APInode_modules/@workflow/next/docs/

Skill changes

The skills/workflow/SKILL.md now directs agents to search bundled docs instead of maintaining duplicate documentation:

glob "node_modules/workflow/docs/**/*.mdx"
grep "your query" node_modules/workflow/docs/

Removed manually-maintained reference files:

  • ai-agents.md → now in node_modules/@workflow/ai/docs/
  • api-reference.md → now in node_modules/workflow/docs/api-reference/
  • frameworks.md → now in node_modules/workflow/docs/getting-started/
  • patterns.md → now in node_modules/workflow/docs/foundations/

Kept common-errors.md for practical troubleshooting (not typically in official docs).

Test plan

  • Verify prepack scripts copy docs correctly
  • Verify npm pack --dry-run includes docs in tarball
  • Verify postpack scripts clean up docs directory
  • Verify docs are accessible after npm install workflow
  • Test skill with Claude Code agent

@vercel

vercelBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jan 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6006ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.032s (-25.4% 🟢)1.008s (~)0.977s101.00x
💻 LocalNext.js (Turbopack)0.039s (-8.7% 🟢)1.018s (~)0.979s101.22x
💻 LocalNitro0.043s (-0.7%)1.007s (~)0.964s101.34x
🐘 PostgresNext.js (Turbopack)0.187s (+12.8% 🔺)1.020s (~)0.832s105.91x
🐘 PostgresExpress0.254s (-17.3% 🟢)1.019s (~)0.765s108.02x
🐘 PostgresNitro0.289s (+22.5% 🔺)1.014s (~)0.725s109.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.667s (~)1.585s (+0.9%)0.917s101.00x
▲ VercelNext.js (Turbopack)0.699s (-17.7% 🟢)1.718s (-6.2% 🟢)1.020s101.05x
▲ VercelExpress0.710s (-1.3%)1.667s (+7.6% 🔺)0.957s101.06x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.081s (-3.1%)2.008s (~)0.927s101.00x
💻 LocalNext.js (Turbopack)1.089s (~)2.013s (~)0.923s101.01x
💻 LocalNitro1.116s (~)2.007s (~)0.891s101.03x
🐘 PostgresExpress2.148s (+0.9%)3.015s (~)0.867s101.99x
🐘 PostgresNitro2.158s (-1.4%)3.015s (~)0.857s102.00x
🐘 PostgresNext.js (Turbopack)2.298s (+16.8% 🔺)3.018s (+42.5% 🔺)0.720s102.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.817s (~)3.759s (+2.2%)0.942s101.00x
▲ VercelExpress2.943s (-3.2%)3.765s (~)0.823s101.04x
▲ VercelNext.js (Turbopack)3.149s (+9.1% 🔺)4.046s (+5.9% 🔺)0.897s101.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.607s (-2.1%)11.018s (~)0.411s51.00x
💻 LocalNext.js (Turbopack)10.703s (~)11.018s (~)0.315s51.01x
💻 LocalNitro10.835s (~)11.016s (~)0.181s51.02x
🐘 PostgresNext.js (Turbopack)15.761s (+6.8% 🔺)16.233s (+7.9% 🔺)0.472s51.49x
🐘 PostgresNitro20.390s (~)20.830s (-1.0%)0.440s51.92x
🐘 PostgresExpress20.457s (~)21.033s (~)0.576s51.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.562s (-6.3% 🟢)23.181s (-7.3% 🟢)0.620s51.00x
▲ VercelNext.js (Turbopack)22.704s (-5.4% 🟢)23.623s (-5.4% 🟢)0.919s51.01x
▲ VercelNitro23.263s (-1.7%)24.016s (-1.6%)0.753s51.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.392s (-0.7%)2.007s (~)0.615s151.00x
💻 LocalNitro1.415s (+0.6%)2.006s (~)0.591s151.02x
💻 LocalNext.js (Turbopack)1.416s (+2.2%)2.012s (~)0.596s151.02x
🐘 PostgresNext.js (Turbopack)2.063s (+2.3%)2.857s (+23.0% 🔺)0.794s111.48x
🐘 PostgresExpress2.165s (-3.3%)3.015s (~)0.850s101.56x
🐘 PostgresNitro2.228s (+1.7%)3.014s (~)0.786s101.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.207s (-9.2% 🟢)4.092s (-7.3% 🟢)0.886s81.00x
▲ VercelExpress3.270s (-8.5% 🟢)4.189s (-3.5%)0.919s81.02x
▲ VercelNitro3.302s (+9.9% 🔺)4.094s (+6.1% 🔺)0.792s81.03x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.301s (-7.4% 🟢)3.263s (+6.8% 🔺)0.962s101.00x
💻 LocalNext.js (Turbopack)2.460s (-0.8%)3.202s (+3.6%)0.742s101.07x
💻 LocalNitro2.506s (-0.9%)3.043s (+0.9%)0.537s101.09x
🐘 PostgresNitro8.156s (-5.3% 🟢)8.808s (-5.4% 🟢)0.651s43.54x
🐘 PostgresExpress8.474s (+11.8% 🔺)9.077s (+12.2% 🔺)0.603s43.68x
🐘 PostgresNext.js (Turbopack)12.674s (+7.0% 🔺)13.364s (+11.1% 🔺)0.690s35.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.099s (-7.8% 🟢)3.750s (-7.8% 🟢)0.651s81.00x
▲ VercelExpress3.414s (+12.4% 🔺)4.113s (+11.0% 🔺)0.699s81.10x
▲ VercelNext.js (Turbopack)3.536s (+5.3% 🔺)4.207s (+2.4%)0.671s81.14x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.381s (-4.7%)2.007s (~)0.625s151.00x
💻 LocalNext.js (Turbopack)1.420s (+0.6%)2.013s (~)0.593s151.03x
💻 LocalNitro1.434s (+0.9%)2.005s (~)0.572s151.04x
🐘 PostgresNitro2.000s (-7.0% 🟢)2.511s (-3.2%)0.511s121.45x
🐘 PostgresExpress2.005s (-4.7%)2.514s (-6.8% 🟢)0.509s121.45x
🐘 PostgresNext.js (Turbopack)2.161s (+21.2% 🔺)2.609s (+29.6% 🔺)0.448s121.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.831s (+3.5%)3.821s (+1.0%)0.990s81.00x
▲ VercelNext.js (Turbopack)2.834s (+2.3%)3.782s (-0.7%)0.948s81.00x
▲ VercelNitro3.054s (+7.2% 🔺)3.804s (+1.1%)0.750s81.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.266s (-10.2% 🟢)3.247s (+7.5% 🔺)0.982s101.00x
💻 LocalNext.js (Turbopack)2.531s (+1.6%)3.047s (~)0.516s101.12x
💻 LocalNitro2.689s (+4.8%)3.018s (~)0.329s101.19x
🐘 PostgresNitro10.928s (-15.3% 🟢)11.390s (-16.9% 🟢)0.462s34.82x
🐘 PostgresExpress12.232s (+12.3% 🔺)12.754s (+12.3% 🔺)0.523s35.40x
🐘 PostgresNext.js (Turbopack)12.663s (+6.9% 🔺)13.355s (+7.9% 🔺)0.693s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.013s (-2.5%)3.661s (-4.4%)0.648s91.00x
▲ VercelExpress3.084s (-13.3% 🟢)4.035s (-6.5% 🟢)0.951s81.02x
▲ VercelNext.js (Turbopack)3.101s (-9.8% 🟢)3.920s (-7.6% 🟢)0.818s81.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.127s (-30.1% 🟢)0.999s (+0.6%)0.013s (-7.7% 🟢)1.021s (~)0.894s101.00x
💻 LocalNext.js (Turbopack)0.149s (+2.6%)1.003s (~)0.016s (-18.3% 🟢)1.027s (~)0.879s101.17x
💻 LocalNitro0.185s (+1.9%)0.993s (~)0.015s (~)1.022s (~)0.837s101.46x
🐘 PostgresNext.js (Turbopack)1.138s (+24.0% 🔺)1.907s (+40.3% 🔺)0.000s (+Infinity% 🔺)2.017s (+32.7% 🔺)0.880s108.97x
🐘 PostgresExpress2.257s (-2.0%)2.784s (+1.5%)0.000s (-100.0% 🟢)3.015s (~)0.759s1017.78x
🐘 PostgresNitro2.303s (+2.5%)2.739s (-1.9%)0.000s (+Infinity% 🔺)3.015s (~)0.712s1018.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.024s (-5.2% 🟢)3.205s (-4.1%)0.825s (+19.3% 🔺)4.572s (-4.0%)1.549s101.00x
▲ VercelNext.js (Turbopack)3.175s (+5.6% 🔺)3.393s (+1.9%)0.861s (+119.8% 🔺)4.783s (+12.7% 🔺)1.607s101.05x
▲ VercelExpress3.493s (+15.1% 🔺)3.826s (+20.7% 🔺)0.507s (-28.4% 🟢)4.865s (+9.7% 🔺)1.371s101.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)4/8
▲ VercelNitro5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)💻 Local8/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@johnlindquist
johnlindquistforce-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0dCompareJanuary 23, 2026 19:51
@johnlindquistjohnlindquist changed the title Add Claude Code custom commands and workflow skillWorkflow Skills for npx skillsJan 23, 2026
@@ -0,0 +1,434 @@
# Complete API Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one particularly I'm worried about shipping since it will go outdated very fast as they're generated in the docs using tsdoc. were about to make big changes just in the next couple of days/weeks to the API and we constantly will

Comment on lines +277 to +283
**Verify connection:**
```bash
# Check your app responds to workflow endpoints
curl -s http://localhost:3000/.well-known/workflow/v1/flow \
-X POST -H "Content-Type: application/json"
# Should return: {"error": "Missing required headers"} (not 404)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a health command that's better for checking. npx health
cc @TooTallNate

writer.releaseLock();
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for essential APIs we can also show usage of getRun with an example of getting status, seeing the returnValue, or cancelling a run (all in the docs)

Comment threadskills/workflow/SKILL.md Outdated
Comment on lines +247 to +251
# Terminal 2: Open dashboard (connects to port 3000)
npx workflow web

# If app runs on different port:
npx workflow web --app-url http://localhost:3001

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the CLI can also be used to inspect all the runs/steps etc. without using the browser. npx workflow inspect runs, npx workflow inspect run wrun_sfnesf, npx workflow inspect --backend vercel etc.

this is specifically meant for agents to consume.

npx workflow web is mostly for humans, and the cli npx workflow inspect is meant for agents

can we please include that somewhere so it knows :)

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments I'd love to include/address before we ship the first version - but I'm generally happy to just put it and keep iterating once it's out there!

johnlindquistand others added 10 commits January 26, 2026 19:18
Add custom slash commands for Claude Code:
- /pr command for creating PRs following repo conventions
Add workflow skill with comprehensive documentation:
- Main SKILL.md with core concepts and quick reference
- Reference docs for frameworks, AI agents, patterns, errors, and API
Signed-off-by: johnlindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Add documentation for custom class serialization using @workflow/serde
symbols (WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE) and clarify what can
and cannot be serialized based on recent PR #762.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update sleep() example date from 2025 to 2027 (future date)
- Fix getWorkflowMetadata() to use correct properties: workflowRunId,
workflowStartedAt, url (not runId, workflowName)
- Fix getStepMetadata() to use correct property: attempt (not attemptNumber)
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Reorganize skill files to support multiple skills under ./skill/<name>/
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update SKILL.md to direct agents to search node_modules/workflow/docs/
- Remove manually-maintained reference docs (ai-agents, api-reference, frameworks, patterns)
- Keep common-errors.md for practical troubleshooting
- Add prepack/postpack hooks to bundle docs in npm packages:
- workflow: All docs from docs/content/docs/
- @workflow/ai: AI-specific docs
- @workflow/core: foundations, how-it-works, api-reference
- @workflow/next: Next.js setup docs
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Use del-cli for postpack cleanup to match the AI SDK's cross-platform
approach. This ensures consistent tooling across both projects.
- Add del-cli ^5.1.0 to root devDependencies
- Update postpack in @workflow/core, @workflow/next, @workflow/ai, and
workflow packages from `rm -rf docs` to `del-cli docs`
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Document the CLI health check command for verifying workflow/step
endpoint connectivity during local development and production.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
@johnlindquist

Copy link
Copy Markdown
ContributorAuthor

Added workflow health command documentation to skills/workflow/references/common-errors.md - includes usage examples for local dev, specific endpoints, custom ports, and Vercel backend.

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna keep reviewing but leaving initial feedback

Comment threadpackages/ai/package.json Outdated
"clean": "tsc --build --clean && rm -rf docs ||:",
"test": "vitest run",
"prepack": "mkdir -p docs && cp -r ../../docs/content/docs/ai ./docs/ && cp -r ../../docs/content/docs/api-reference/workflow-ai ./docs/",
"postpack": "del-cli docs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's either use rm -rf OR del-cli, not both

Comment threadskills/workflow/SKILL.md Outdated

## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not do this. that was meant to be a specific example and actually with DurableAgent you don't need that

Comment threadskills/workflow/SKILL.md Outdated
## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries
2. Use `sleep()` instead of setTimeout/setInterval

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "workflow" context. in steps it should still use setTimeout/setInterval

maybe claude is smart enough but fyi

Comment threadskills/workflow/SKILL.md Outdated
2. Use `sleep()` instead of setTimeout/setInterval
3. Move Node.js modules (fs, crypto, etc.) to step functions
4. Use `FatalError` for permanent failures, `RetryableError` for retries
5. Use `use step` with AI SDK methods to avoid issues with OIDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this means and it seems weird to put this in the index/root of the skill

Comment threadpackages/core/package.json
Comment threadskills/workflow/references/common-errors.md Outdated
johnlindquistand others added 3 commits January 27, 2026 12:10
- Remove del-cli dependency, use rm -rf consistently in postpack scripts
- Restructure SKILL.md to lead with "Prefer Step Functions" pattern
- Add sandbox limitations table for workflow-context workarounds
- Consolidate examples and remove duplication
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Move useful tips (serialization, streaming, debugging) into main skill
file and remove the separate common-errors.md reference file.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@johnlindquist@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Workflow Skills for npx skills - #842

Merged
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands
Jan 28, 2026
Merged

Workflow Skills for npx skills#842
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands

Conversation

@johnlindquist

@johnlindquistjohnlindquist commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Code skills for the Workflow DevKit, enabling AI agents to assist with workflow development.

Documentation Bundling

This PR implements a documentation bundling pattern (similar to ai SDK) that includes docs in npm packages:

How it works

  1. prepack hook copies docs from docs/content/docs/ to package's ./docs/ directory
  2. npm pack includes docs/**/* in the tarball
  3. postpack hook removes the temporary ./docs/ directory

Packages updated

PackageDocs BundledPath in node_modules
workflowAll docsnode_modules/workflow/docs/
@workflow/aiAI + DurableAgent docsnode_modules/@workflow/ai/docs/
@workflow/corefoundations, how-it-works, APInode_modules/@workflow/core/docs/
@workflow/nextNext.js setup + APInode_modules/@workflow/next/docs/

Skill changes

The skills/workflow/SKILL.md now directs agents to search bundled docs instead of maintaining duplicate documentation:

glob "node_modules/workflow/docs/**/*.mdx"
grep "your query" node_modules/workflow/docs/

Removed manually-maintained reference files:

  • ai-agents.md → now in node_modules/@workflow/ai/docs/
  • api-reference.md → now in node_modules/workflow/docs/api-reference/
  • frameworks.md → now in node_modules/workflow/docs/getting-started/
  • patterns.md → now in node_modules/workflow/docs/foundations/

Kept common-errors.md for practical troubleshooting (not typically in official docs).

Test plan

  • Verify prepack scripts copy docs correctly
  • Verify npm pack --dry-run includes docs in tarball
  • Verify postpack scripts clean up docs directory
  • Verify docs are accessible after npm install workflow
  • Test skill with Claude Code agent

@vercel

vercelBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jan 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6006ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.032s (-25.4% 🟢)1.008s (~)0.977s101.00x
💻 LocalNext.js (Turbopack)0.039s (-8.7% 🟢)1.018s (~)0.979s101.22x
💻 LocalNitro0.043s (-0.7%)1.007s (~)0.964s101.34x
🐘 PostgresNext.js (Turbopack)0.187s (+12.8% 🔺)1.020s (~)0.832s105.91x
🐘 PostgresExpress0.254s (-17.3% 🟢)1.019s (~)0.765s108.02x
🐘 PostgresNitro0.289s (+22.5% 🔺)1.014s (~)0.725s109.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.667s (~)1.585s (+0.9%)0.917s101.00x
▲ VercelNext.js (Turbopack)0.699s (-17.7% 🟢)1.718s (-6.2% 🟢)1.020s101.05x
▲ VercelExpress0.710s (-1.3%)1.667s (+7.6% 🔺)0.957s101.06x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.081s (-3.1%)2.008s (~)0.927s101.00x
💻 LocalNext.js (Turbopack)1.089s (~)2.013s (~)0.923s101.01x
💻 LocalNitro1.116s (~)2.007s (~)0.891s101.03x
🐘 PostgresExpress2.148s (+0.9%)3.015s (~)0.867s101.99x
🐘 PostgresNitro2.158s (-1.4%)3.015s (~)0.857s102.00x
🐘 PostgresNext.js (Turbopack)2.298s (+16.8% 🔺)3.018s (+42.5% 🔺)0.720s102.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.817s (~)3.759s (+2.2%)0.942s101.00x
▲ VercelExpress2.943s (-3.2%)3.765s (~)0.823s101.04x
▲ VercelNext.js (Turbopack)3.149s (+9.1% 🔺)4.046s (+5.9% 🔺)0.897s101.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.607s (-2.1%)11.018s (~)0.411s51.00x
💻 LocalNext.js (Turbopack)10.703s (~)11.018s (~)0.315s51.01x
💻 LocalNitro10.835s (~)11.016s (~)0.181s51.02x
🐘 PostgresNext.js (Turbopack)15.761s (+6.8% 🔺)16.233s (+7.9% 🔺)0.472s51.49x
🐘 PostgresNitro20.390s (~)20.830s (-1.0%)0.440s51.92x
🐘 PostgresExpress20.457s (~)21.033s (~)0.576s51.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.562s (-6.3% 🟢)23.181s (-7.3% 🟢)0.620s51.00x
▲ VercelNext.js (Turbopack)22.704s (-5.4% 🟢)23.623s (-5.4% 🟢)0.919s51.01x
▲ VercelNitro23.263s (-1.7%)24.016s (-1.6%)0.753s51.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.392s (-0.7%)2.007s (~)0.615s151.00x
💻 LocalNitro1.415s (+0.6%)2.006s (~)0.591s151.02x
💻 LocalNext.js (Turbopack)1.416s (+2.2%)2.012s (~)0.596s151.02x
🐘 PostgresNext.js (Turbopack)2.063s (+2.3%)2.857s (+23.0% 🔺)0.794s111.48x
🐘 PostgresExpress2.165s (-3.3%)3.015s (~)0.850s101.56x
🐘 PostgresNitro2.228s (+1.7%)3.014s (~)0.786s101.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.207s (-9.2% 🟢)4.092s (-7.3% 🟢)0.886s81.00x
▲ VercelExpress3.270s (-8.5% 🟢)4.189s (-3.5%)0.919s81.02x
▲ VercelNitro3.302s (+9.9% 🔺)4.094s (+6.1% 🔺)0.792s81.03x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.301s (-7.4% 🟢)3.263s (+6.8% 🔺)0.962s101.00x
💻 LocalNext.js (Turbopack)2.460s (-0.8%)3.202s (+3.6%)0.742s101.07x
💻 LocalNitro2.506s (-0.9%)3.043s (+0.9%)0.537s101.09x
🐘 PostgresNitro8.156s (-5.3% 🟢)8.808s (-5.4% 🟢)0.651s43.54x
🐘 PostgresExpress8.474s (+11.8% 🔺)9.077s (+12.2% 🔺)0.603s43.68x
🐘 PostgresNext.js (Turbopack)12.674s (+7.0% 🔺)13.364s (+11.1% 🔺)0.690s35.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.099s (-7.8% 🟢)3.750s (-7.8% 🟢)0.651s81.00x
▲ VercelExpress3.414s (+12.4% 🔺)4.113s (+11.0% 🔺)0.699s81.10x
▲ VercelNext.js (Turbopack)3.536s (+5.3% 🔺)4.207s (+2.4%)0.671s81.14x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.381s (-4.7%)2.007s (~)0.625s151.00x
💻 LocalNext.js (Turbopack)1.420s (+0.6%)2.013s (~)0.593s151.03x
💻 LocalNitro1.434s (+0.9%)2.005s (~)0.572s151.04x
🐘 PostgresNitro2.000s (-7.0% 🟢)2.511s (-3.2%)0.511s121.45x
🐘 PostgresExpress2.005s (-4.7%)2.514s (-6.8% 🟢)0.509s121.45x
🐘 PostgresNext.js (Turbopack)2.161s (+21.2% 🔺)2.609s (+29.6% 🔺)0.448s121.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.831s (+3.5%)3.821s (+1.0%)0.990s81.00x
▲ VercelNext.js (Turbopack)2.834s (+2.3%)3.782s (-0.7%)0.948s81.00x
▲ VercelNitro3.054s (+7.2% 🔺)3.804s (+1.1%)0.750s81.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.266s (-10.2% 🟢)3.247s (+7.5% 🔺)0.982s101.00x
💻 LocalNext.js (Turbopack)2.531s (+1.6%)3.047s (~)0.516s101.12x
💻 LocalNitro2.689s (+4.8%)3.018s (~)0.329s101.19x
🐘 PostgresNitro10.928s (-15.3% 🟢)11.390s (-16.9% 🟢)0.462s34.82x
🐘 PostgresExpress12.232s (+12.3% 🔺)12.754s (+12.3% 🔺)0.523s35.40x
🐘 PostgresNext.js (Turbopack)12.663s (+6.9% 🔺)13.355s (+7.9% 🔺)0.693s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.013s (-2.5%)3.661s (-4.4%)0.648s91.00x
▲ VercelExpress3.084s (-13.3% 🟢)4.035s (-6.5% 🟢)0.951s81.02x
▲ VercelNext.js (Turbopack)3.101s (-9.8% 🟢)3.920s (-7.6% 🟢)0.818s81.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.127s (-30.1% 🟢)0.999s (+0.6%)0.013s (-7.7% 🟢)1.021s (~)0.894s101.00x
💻 LocalNext.js (Turbopack)0.149s (+2.6%)1.003s (~)0.016s (-18.3% 🟢)1.027s (~)0.879s101.17x
💻 LocalNitro0.185s (+1.9%)0.993s (~)0.015s (~)1.022s (~)0.837s101.46x
🐘 PostgresNext.js (Turbopack)1.138s (+24.0% 🔺)1.907s (+40.3% 🔺)0.000s (+Infinity% 🔺)2.017s (+32.7% 🔺)0.880s108.97x
🐘 PostgresExpress2.257s (-2.0%)2.784s (+1.5%)0.000s (-100.0% 🟢)3.015s (~)0.759s1017.78x
🐘 PostgresNitro2.303s (+2.5%)2.739s (-1.9%)0.000s (+Infinity% 🔺)3.015s (~)0.712s1018.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.024s (-5.2% 🟢)3.205s (-4.1%)0.825s (+19.3% 🔺)4.572s (-4.0%)1.549s101.00x
▲ VercelNext.js (Turbopack)3.175s (+5.6% 🔺)3.393s (+1.9%)0.861s (+119.8% 🔺)4.783s (+12.7% 🔺)1.607s101.05x
▲ VercelExpress3.493s (+15.1% 🔺)3.826s (+20.7% 🔺)0.507s (-28.4% 🟢)4.865s (+9.7% 🔺)1.371s101.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)4/8
▲ VercelNitro5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)💻 Local8/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@johnlindquist
johnlindquistforce-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0dCompareJanuary 23, 2026 19:51
@johnlindquistjohnlindquist changed the title Add Claude Code custom commands and workflow skillWorkflow Skills for npx skillsJan 23, 2026
@@ -0,0 +1,434 @@
# Complete API Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one particularly I'm worried about shipping since it will go outdated very fast as they're generated in the docs using tsdoc. were about to make big changes just in the next couple of days/weeks to the API and we constantly will

Comment on lines +277 to +283
**Verify connection:**
```bash
# Check your app responds to workflow endpoints
curl -s http://localhost:3000/.well-known/workflow/v1/flow \
-X POST -H "Content-Type: application/json"
# Should return: {"error": "Missing required headers"} (not 404)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a health command that's better for checking. npx health
cc @TooTallNate

writer.releaseLock();
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for essential APIs we can also show usage of getRun with an example of getting status, seeing the returnValue, or cancelling a run (all in the docs)

Comment threadskills/workflow/SKILL.md Outdated
Comment on lines +247 to +251
# Terminal 2: Open dashboard (connects to port 3000)
npx workflow web

# If app runs on different port:
npx workflow web --app-url http://localhost:3001

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the CLI can also be used to inspect all the runs/steps etc. without using the browser. npx workflow inspect runs, npx workflow inspect run wrun_sfnesf, npx workflow inspect --backend vercel etc.

this is specifically meant for agents to consume.

npx workflow web is mostly for humans, and the cli npx workflow inspect is meant for agents

can we please include that somewhere so it knows :)

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments I'd love to include/address before we ship the first version - but I'm generally happy to just put it and keep iterating once it's out there!

johnlindquistand others added 10 commits January 26, 2026 19:18
Add custom slash commands for Claude Code:
- /pr command for creating PRs following repo conventions
Add workflow skill with comprehensive documentation:
- Main SKILL.md with core concepts and quick reference
- Reference docs for frameworks, AI agents, patterns, errors, and API
Signed-off-by: johnlindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Add documentation for custom class serialization using @workflow/serde
symbols (WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE) and clarify what can
and cannot be serialized based on recent PR #762.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update sleep() example date from 2025 to 2027 (future date)
- Fix getWorkflowMetadata() to use correct properties: workflowRunId,
workflowStartedAt, url (not runId, workflowName)
- Fix getStepMetadata() to use correct property: attempt (not attemptNumber)
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Reorganize skill files to support multiple skills under ./skill/<name>/
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update SKILL.md to direct agents to search node_modules/workflow/docs/
- Remove manually-maintained reference docs (ai-agents, api-reference, frameworks, patterns)
- Keep common-errors.md for practical troubleshooting
- Add prepack/postpack hooks to bundle docs in npm packages:
- workflow: All docs from docs/content/docs/
- @workflow/ai: AI-specific docs
- @workflow/core: foundations, how-it-works, api-reference
- @workflow/next: Next.js setup docs
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Use del-cli for postpack cleanup to match the AI SDK's cross-platform
approach. This ensures consistent tooling across both projects.
- Add del-cli ^5.1.0 to root devDependencies
- Update postpack in @workflow/core, @workflow/next, @workflow/ai, and
workflow packages from `rm -rf docs` to `del-cli docs`
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Document the CLI health check command for verifying workflow/step
endpoint connectivity during local development and production.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
@johnlindquist

Copy link
Copy Markdown
ContributorAuthor

Added workflow health command documentation to skills/workflow/references/common-errors.md - includes usage examples for local dev, specific endpoints, custom ports, and Vercel backend.

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna keep reviewing but leaving initial feedback

Comment threadpackages/ai/package.json Outdated
"clean": "tsc --build --clean && rm -rf docs ||:",
"test": "vitest run",
"prepack": "mkdir -p docs && cp -r ../../docs/content/docs/ai ./docs/ && cp -r ../../docs/content/docs/api-reference/workflow-ai ./docs/",
"postpack": "del-cli docs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's either use rm -rf OR del-cli, not both

Comment threadskills/workflow/SKILL.md Outdated

## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not do this. that was meant to be a specific example and actually with DurableAgent you don't need that

Comment threadskills/workflow/SKILL.md Outdated
## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries
2. Use `sleep()` instead of setTimeout/setInterval

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "workflow" context. in steps it should still use setTimeout/setInterval

maybe claude is smart enough but fyi

Comment threadskills/workflow/SKILL.md Outdated
2. Use `sleep()` instead of setTimeout/setInterval
3. Move Node.js modules (fs, crypto, etc.) to step functions
4. Use `FatalError` for permanent failures, `RetryableError` for retries
5. Use `use step` with AI SDK methods to avoid issues with OIDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this means and it seems weird to put this in the index/root of the skill

Comment threadpackages/core/package.json
Comment threadskills/workflow/references/common-errors.md Outdated
johnlindquistand others added 3 commits January 27, 2026 12:10
- Remove del-cli dependency, use rm -rf consistently in postpack scripts
- Restructure SKILL.md to lead with "Prefer Step Functions" pattern
- Add sandbox limitations table for workflow-context workarounds
- Consolidate examples and remove duplication
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Move useful tips (serialization, streaming, debugging) into main skill
file and remove the separate common-errors.md reference file.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@johnlindquist@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Workflow Skills for npx skills - #842

Merged
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands
Jan 28, 2026
Merged

Workflow Skills for npx skills#842
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands

Conversation

@johnlindquist

@johnlindquistjohnlindquist commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Code skills for the Workflow DevKit, enabling AI agents to assist with workflow development.

Documentation Bundling

This PR implements a documentation bundling pattern (similar to ai SDK) that includes docs in npm packages:

How it works

  1. prepack hook copies docs from docs/content/docs/ to package's ./docs/ directory
  2. npm pack includes docs/**/* in the tarball
  3. postpack hook removes the temporary ./docs/ directory

Packages updated

PackageDocs BundledPath in node_modules
workflowAll docsnode_modules/workflow/docs/
@workflow/aiAI + DurableAgent docsnode_modules/@workflow/ai/docs/
@workflow/corefoundations, how-it-works, APInode_modules/@workflow/core/docs/
@workflow/nextNext.js setup + APInode_modules/@workflow/next/docs/

Skill changes

The skills/workflow/SKILL.md now directs agents to search bundled docs instead of maintaining duplicate documentation:

glob "node_modules/workflow/docs/**/*.mdx"
grep "your query" node_modules/workflow/docs/

Removed manually-maintained reference files:

  • ai-agents.md → now in node_modules/@workflow/ai/docs/
  • api-reference.md → now in node_modules/workflow/docs/api-reference/
  • frameworks.md → now in node_modules/workflow/docs/getting-started/
  • patterns.md → now in node_modules/workflow/docs/foundations/

Kept common-errors.md for practical troubleshooting (not typically in official docs).

Test plan

  • Verify prepack scripts copy docs correctly
  • Verify npm pack --dry-run includes docs in tarball
  • Verify postpack scripts clean up docs directory
  • Verify docs are accessible after npm install workflow
  • Test skill with Claude Code agent

@vercel

vercelBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jan 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6006ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.032s (-25.4% 🟢)1.008s (~)0.977s101.00x
💻 LocalNext.js (Turbopack)0.039s (-8.7% 🟢)1.018s (~)0.979s101.22x
💻 LocalNitro0.043s (-0.7%)1.007s (~)0.964s101.34x
🐘 PostgresNext.js (Turbopack)0.187s (+12.8% 🔺)1.020s (~)0.832s105.91x
🐘 PostgresExpress0.254s (-17.3% 🟢)1.019s (~)0.765s108.02x
🐘 PostgresNitro0.289s (+22.5% 🔺)1.014s (~)0.725s109.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.667s (~)1.585s (+0.9%)0.917s101.00x
▲ VercelNext.js (Turbopack)0.699s (-17.7% 🟢)1.718s (-6.2% 🟢)1.020s101.05x
▲ VercelExpress0.710s (-1.3%)1.667s (+7.6% 🔺)0.957s101.06x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.081s (-3.1%)2.008s (~)0.927s101.00x
💻 LocalNext.js (Turbopack)1.089s (~)2.013s (~)0.923s101.01x
💻 LocalNitro1.116s (~)2.007s (~)0.891s101.03x
🐘 PostgresExpress2.148s (+0.9%)3.015s (~)0.867s101.99x
🐘 PostgresNitro2.158s (-1.4%)3.015s (~)0.857s102.00x
🐘 PostgresNext.js (Turbopack)2.298s (+16.8% 🔺)3.018s (+42.5% 🔺)0.720s102.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.817s (~)3.759s (+2.2%)0.942s101.00x
▲ VercelExpress2.943s (-3.2%)3.765s (~)0.823s101.04x
▲ VercelNext.js (Turbopack)3.149s (+9.1% 🔺)4.046s (+5.9% 🔺)0.897s101.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.607s (-2.1%)11.018s (~)0.411s51.00x
💻 LocalNext.js (Turbopack)10.703s (~)11.018s (~)0.315s51.01x
💻 LocalNitro10.835s (~)11.016s (~)0.181s51.02x
🐘 PostgresNext.js (Turbopack)15.761s (+6.8% 🔺)16.233s (+7.9% 🔺)0.472s51.49x
🐘 PostgresNitro20.390s (~)20.830s (-1.0%)0.440s51.92x
🐘 PostgresExpress20.457s (~)21.033s (~)0.576s51.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.562s (-6.3% 🟢)23.181s (-7.3% 🟢)0.620s51.00x
▲ VercelNext.js (Turbopack)22.704s (-5.4% 🟢)23.623s (-5.4% 🟢)0.919s51.01x
▲ VercelNitro23.263s (-1.7%)24.016s (-1.6%)0.753s51.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.392s (-0.7%)2.007s (~)0.615s151.00x
💻 LocalNitro1.415s (+0.6%)2.006s (~)0.591s151.02x
💻 LocalNext.js (Turbopack)1.416s (+2.2%)2.012s (~)0.596s151.02x
🐘 PostgresNext.js (Turbopack)2.063s (+2.3%)2.857s (+23.0% 🔺)0.794s111.48x
🐘 PostgresExpress2.165s (-3.3%)3.015s (~)0.850s101.56x
🐘 PostgresNitro2.228s (+1.7%)3.014s (~)0.786s101.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.207s (-9.2% 🟢)4.092s (-7.3% 🟢)0.886s81.00x
▲ VercelExpress3.270s (-8.5% 🟢)4.189s (-3.5%)0.919s81.02x
▲ VercelNitro3.302s (+9.9% 🔺)4.094s (+6.1% 🔺)0.792s81.03x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.301s (-7.4% 🟢)3.263s (+6.8% 🔺)0.962s101.00x
💻 LocalNext.js (Turbopack)2.460s (-0.8%)3.202s (+3.6%)0.742s101.07x
💻 LocalNitro2.506s (-0.9%)3.043s (+0.9%)0.537s101.09x
🐘 PostgresNitro8.156s (-5.3% 🟢)8.808s (-5.4% 🟢)0.651s43.54x
🐘 PostgresExpress8.474s (+11.8% 🔺)9.077s (+12.2% 🔺)0.603s43.68x
🐘 PostgresNext.js (Turbopack)12.674s (+7.0% 🔺)13.364s (+11.1% 🔺)0.690s35.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.099s (-7.8% 🟢)3.750s (-7.8% 🟢)0.651s81.00x
▲ VercelExpress3.414s (+12.4% 🔺)4.113s (+11.0% 🔺)0.699s81.10x
▲ VercelNext.js (Turbopack)3.536s (+5.3% 🔺)4.207s (+2.4%)0.671s81.14x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.381s (-4.7%)2.007s (~)0.625s151.00x
💻 LocalNext.js (Turbopack)1.420s (+0.6%)2.013s (~)0.593s151.03x
💻 LocalNitro1.434s (+0.9%)2.005s (~)0.572s151.04x
🐘 PostgresNitro2.000s (-7.0% 🟢)2.511s (-3.2%)0.511s121.45x
🐘 PostgresExpress2.005s (-4.7%)2.514s (-6.8% 🟢)0.509s121.45x
🐘 PostgresNext.js (Turbopack)2.161s (+21.2% 🔺)2.609s (+29.6% 🔺)0.448s121.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.831s (+3.5%)3.821s (+1.0%)0.990s81.00x
▲ VercelNext.js (Turbopack)2.834s (+2.3%)3.782s (-0.7%)0.948s81.00x
▲ VercelNitro3.054s (+7.2% 🔺)3.804s (+1.1%)0.750s81.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.266s (-10.2% 🟢)3.247s (+7.5% 🔺)0.982s101.00x
💻 LocalNext.js (Turbopack)2.531s (+1.6%)3.047s (~)0.516s101.12x
💻 LocalNitro2.689s (+4.8%)3.018s (~)0.329s101.19x
🐘 PostgresNitro10.928s (-15.3% 🟢)11.390s (-16.9% 🟢)0.462s34.82x
🐘 PostgresExpress12.232s (+12.3% 🔺)12.754s (+12.3% 🔺)0.523s35.40x
🐘 PostgresNext.js (Turbopack)12.663s (+6.9% 🔺)13.355s (+7.9% 🔺)0.693s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.013s (-2.5%)3.661s (-4.4%)0.648s91.00x
▲ VercelExpress3.084s (-13.3% 🟢)4.035s (-6.5% 🟢)0.951s81.02x
▲ VercelNext.js (Turbopack)3.101s (-9.8% 🟢)3.920s (-7.6% 🟢)0.818s81.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.127s (-30.1% 🟢)0.999s (+0.6%)0.013s (-7.7% 🟢)1.021s (~)0.894s101.00x
💻 LocalNext.js (Turbopack)0.149s (+2.6%)1.003s (~)0.016s (-18.3% 🟢)1.027s (~)0.879s101.17x
💻 LocalNitro0.185s (+1.9%)0.993s (~)0.015s (~)1.022s (~)0.837s101.46x
🐘 PostgresNext.js (Turbopack)1.138s (+24.0% 🔺)1.907s (+40.3% 🔺)0.000s (+Infinity% 🔺)2.017s (+32.7% 🔺)0.880s108.97x
🐘 PostgresExpress2.257s (-2.0%)2.784s (+1.5%)0.000s (-100.0% 🟢)3.015s (~)0.759s1017.78x
🐘 PostgresNitro2.303s (+2.5%)2.739s (-1.9%)0.000s (+Infinity% 🔺)3.015s (~)0.712s1018.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.024s (-5.2% 🟢)3.205s (-4.1%)0.825s (+19.3% 🔺)4.572s (-4.0%)1.549s101.00x
▲ VercelNext.js (Turbopack)3.175s (+5.6% 🔺)3.393s (+1.9%)0.861s (+119.8% 🔺)4.783s (+12.7% 🔺)1.607s101.05x
▲ VercelExpress3.493s (+15.1% 🔺)3.826s (+20.7% 🔺)0.507s (-28.4% 🟢)4.865s (+9.7% 🔺)1.371s101.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)4/8
▲ VercelNitro5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)💻 Local8/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@johnlindquist
johnlindquistforce-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0dCompareJanuary 23, 2026 19:51
@johnlindquistjohnlindquist changed the title Add Claude Code custom commands and workflow skillWorkflow Skills for npx skillsJan 23, 2026
@@ -0,0 +1,434 @@
# Complete API Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one particularly I'm worried about shipping since it will go outdated very fast as they're generated in the docs using tsdoc. were about to make big changes just in the next couple of days/weeks to the API and we constantly will

Comment on lines +277 to +283
**Verify connection:**
```bash
# Check your app responds to workflow endpoints
curl -s http://localhost:3000/.well-known/workflow/v1/flow \
-X POST -H "Content-Type: application/json"
# Should return: {"error": "Missing required headers"} (not 404)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a health command that's better for checking. npx health
cc @TooTallNate

writer.releaseLock();
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for essential APIs we can also show usage of getRun with an example of getting status, seeing the returnValue, or cancelling a run (all in the docs)

Comment threadskills/workflow/SKILL.md Outdated
Comment on lines +247 to +251
# Terminal 2: Open dashboard (connects to port 3000)
npx workflow web

# If app runs on different port:
npx workflow web --app-url http://localhost:3001

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the CLI can also be used to inspect all the runs/steps etc. without using the browser. npx workflow inspect runs, npx workflow inspect run wrun_sfnesf, npx workflow inspect --backend vercel etc.

this is specifically meant for agents to consume.

npx workflow web is mostly for humans, and the cli npx workflow inspect is meant for agents

can we please include that somewhere so it knows :)

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments I'd love to include/address before we ship the first version - but I'm generally happy to just put it and keep iterating once it's out there!

johnlindquistand others added 10 commits January 26, 2026 19:18
Add custom slash commands for Claude Code:
- /pr command for creating PRs following repo conventions
Add workflow skill with comprehensive documentation:
- Main SKILL.md with core concepts and quick reference
- Reference docs for frameworks, AI agents, patterns, errors, and API
Signed-off-by: johnlindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Add documentation for custom class serialization using @workflow/serde
symbols (WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE) and clarify what can
and cannot be serialized based on recent PR #762.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update sleep() example date from 2025 to 2027 (future date)
- Fix getWorkflowMetadata() to use correct properties: workflowRunId,
workflowStartedAt, url (not runId, workflowName)
- Fix getStepMetadata() to use correct property: attempt (not attemptNumber)
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Reorganize skill files to support multiple skills under ./skill/<name>/
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update SKILL.md to direct agents to search node_modules/workflow/docs/
- Remove manually-maintained reference docs (ai-agents, api-reference, frameworks, patterns)
- Keep common-errors.md for practical troubleshooting
- Add prepack/postpack hooks to bundle docs in npm packages:
- workflow: All docs from docs/content/docs/
- @workflow/ai: AI-specific docs
- @workflow/core: foundations, how-it-works, api-reference
- @workflow/next: Next.js setup docs
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Use del-cli for postpack cleanup to match the AI SDK's cross-platform
approach. This ensures consistent tooling across both projects.
- Add del-cli ^5.1.0 to root devDependencies
- Update postpack in @workflow/core, @workflow/next, @workflow/ai, and
workflow packages from `rm -rf docs` to `del-cli docs`
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Document the CLI health check command for verifying workflow/step
endpoint connectivity during local development and production.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
@johnlindquist

Copy link
Copy Markdown
ContributorAuthor

Added workflow health command documentation to skills/workflow/references/common-errors.md - includes usage examples for local dev, specific endpoints, custom ports, and Vercel backend.

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna keep reviewing but leaving initial feedback

Comment threadpackages/ai/package.json Outdated
"clean": "tsc --build --clean && rm -rf docs ||:",
"test": "vitest run",
"prepack": "mkdir -p docs && cp -r ../../docs/content/docs/ai ./docs/ && cp -r ../../docs/content/docs/api-reference/workflow-ai ./docs/",
"postpack": "del-cli docs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's either use rm -rf OR del-cli, not both

Comment threadskills/workflow/SKILL.md Outdated

## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not do this. that was meant to be a specific example and actually with DurableAgent you don't need that

Comment threadskills/workflow/SKILL.md Outdated
## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries
2. Use `sleep()` instead of setTimeout/setInterval

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "workflow" context. in steps it should still use setTimeout/setInterval

maybe claude is smart enough but fyi

Comment threadskills/workflow/SKILL.md Outdated
2. Use `sleep()` instead of setTimeout/setInterval
3. Move Node.js modules (fs, crypto, etc.) to step functions
4. Use `FatalError` for permanent failures, `RetryableError` for retries
5. Use `use step` with AI SDK methods to avoid issues with OIDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this means and it seems weird to put this in the index/root of the skill

Comment threadpackages/core/package.json
Comment threadskills/workflow/references/common-errors.md Outdated
johnlindquistand others added 3 commits January 27, 2026 12:10
- Remove del-cli dependency, use rm -rf consistently in postpack scripts
- Restructure SKILL.md to lead with "Prefer Step Functions" pattern
- Add sandbox limitations table for workflow-context workarounds
- Consolidate examples and remove duplication
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Move useful tips (serialization, streaming, debugging) into main skill
file and remove the separate common-errors.md reference file.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@johnlindquist@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Workflow Skills for npx skills - #842

Merged
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands
Jan 28, 2026
Merged

Workflow Skills for npx skills#842
pranaygp merged 13 commits into
mainfrom
add-claude-code-skills-and-commands

Conversation

@johnlindquist

@johnlindquistjohnlindquist commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Claude Code skills for the Workflow DevKit, enabling AI agents to assist with workflow development.

Documentation Bundling

This PR implements a documentation bundling pattern (similar to ai SDK) that includes docs in npm packages:

How it works

  1. prepack hook copies docs from docs/content/docs/ to package's ./docs/ directory
  2. npm pack includes docs/**/* in the tarball
  3. postpack hook removes the temporary ./docs/ directory

Packages updated

PackageDocs BundledPath in node_modules
workflowAll docsnode_modules/workflow/docs/
@workflow/aiAI + DurableAgent docsnode_modules/@workflow/ai/docs/
@workflow/corefoundations, how-it-works, APInode_modules/@workflow/core/docs/
@workflow/nextNext.js setup + APInode_modules/@workflow/next/docs/

Skill changes

The skills/workflow/SKILL.md now directs agents to search bundled docs instead of maintaining duplicate documentation:

glob "node_modules/workflow/docs/**/*.mdx"
grep "your query" node_modules/workflow/docs/

Removed manually-maintained reference files:

  • ai-agents.md → now in node_modules/@workflow/ai/docs/
  • api-reference.md → now in node_modules/workflow/docs/api-reference/
  • frameworks.md → now in node_modules/workflow/docs/getting-started/
  • patterns.md → now in node_modules/workflow/docs/foundations/

Kept common-errors.md for practical troubleshooting (not typically in official docs).

Test plan

  • Verify prepack scripts copy docs correctly
  • Verify npm pack --dry-run includes docs in tarball
  • Verify postpack scripts clean up docs directory
  • Verify docs are accessible after npm install workflow
  • Test skill with Claude Code agent

@vercel

vercelBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Jan 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6006ba7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.032s (-25.4% 🟢)1.008s (~)0.977s101.00x
💻 LocalNext.js (Turbopack)0.039s (-8.7% 🟢)1.018s (~)0.979s101.22x
💻 LocalNitro0.043s (-0.7%)1.007s (~)0.964s101.34x
🐘 PostgresNext.js (Turbopack)0.187s (+12.8% 🔺)1.020s (~)0.832s105.91x
🐘 PostgresExpress0.254s (-17.3% 🟢)1.019s (~)0.765s108.02x
🐘 PostgresNitro0.289s (+22.5% 🔺)1.014s (~)0.725s109.11x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.667s (~)1.585s (+0.9%)0.917s101.00x
▲ VercelNext.js (Turbopack)0.699s (-17.7% 🟢)1.718s (-6.2% 🟢)1.020s101.05x
▲ VercelExpress0.710s (-1.3%)1.667s (+7.6% 🔺)0.957s101.06x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.081s (-3.1%)2.008s (~)0.927s101.00x
💻 LocalNext.js (Turbopack)1.089s (~)2.013s (~)0.923s101.01x
💻 LocalNitro1.116s (~)2.007s (~)0.891s101.03x
🐘 PostgresExpress2.148s (+0.9%)3.015s (~)0.867s101.99x
🐘 PostgresNitro2.158s (-1.4%)3.015s (~)0.857s102.00x
🐘 PostgresNext.js (Turbopack)2.298s (+16.8% 🔺)3.018s (+42.5% 🔺)0.720s102.12x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.817s (~)3.759s (+2.2%)0.942s101.00x
▲ VercelExpress2.943s (-3.2%)3.765s (~)0.823s101.04x
▲ VercelNext.js (Turbopack)3.149s (+9.1% 🔺)4.046s (+5.9% 🔺)0.897s101.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.607s (-2.1%)11.018s (~)0.411s51.00x
💻 LocalNext.js (Turbopack)10.703s (~)11.018s (~)0.315s51.01x
💻 LocalNitro10.835s (~)11.016s (~)0.181s51.02x
🐘 PostgresNext.js (Turbopack)15.761s (+6.8% 🔺)16.233s (+7.9% 🔺)0.472s51.49x
🐘 PostgresNitro20.390s (~)20.830s (-1.0%)0.440s51.92x
🐘 PostgresExpress20.457s (~)21.033s (~)0.576s51.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express22.562s (-6.3% 🟢)23.181s (-7.3% 🟢)0.620s51.00x
▲ VercelNext.js (Turbopack)22.704s (-5.4% 🟢)23.623s (-5.4% 🟢)0.919s51.01x
▲ VercelNitro23.263s (-1.7%)24.016s (-1.6%)0.753s51.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.392s (-0.7%)2.007s (~)0.615s151.00x
💻 LocalNitro1.415s (+0.6%)2.006s (~)0.591s151.02x
💻 LocalNext.js (Turbopack)1.416s (+2.2%)2.012s (~)0.596s151.02x
🐘 PostgresNext.js (Turbopack)2.063s (+2.3%)2.857s (+23.0% 🔺)0.794s111.48x
🐘 PostgresExpress2.165s (-3.3%)3.015s (~)0.850s101.56x
🐘 PostgresNitro2.228s (+1.7%)3.014s (~)0.786s101.60x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.207s (-9.2% 🟢)4.092s (-7.3% 🟢)0.886s81.00x
▲ VercelExpress3.270s (-8.5% 🟢)4.189s (-3.5%)0.919s81.02x
▲ VercelNitro3.302s (+9.9% 🔺)4.094s (+6.1% 🔺)0.792s81.03x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.301s (-7.4% 🟢)3.263s (+6.8% 🔺)0.962s101.00x
💻 LocalNext.js (Turbopack)2.460s (-0.8%)3.202s (+3.6%)0.742s101.07x
💻 LocalNitro2.506s (-0.9%)3.043s (+0.9%)0.537s101.09x
🐘 PostgresNitro8.156s (-5.3% 🟢)8.808s (-5.4% 🟢)0.651s43.54x
🐘 PostgresExpress8.474s (+11.8% 🔺)9.077s (+12.2% 🔺)0.603s43.68x
🐘 PostgresNext.js (Turbopack)12.674s (+7.0% 🔺)13.364s (+11.1% 🔺)0.690s35.51x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.099s (-7.8% 🟢)3.750s (-7.8% 🟢)0.651s81.00x
▲ VercelExpress3.414s (+12.4% 🔺)4.113s (+11.0% 🔺)0.699s81.10x
▲ VercelNext.js (Turbopack)3.536s (+5.3% 🔺)4.207s (+2.4%)0.671s81.14x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.381s (-4.7%)2.007s (~)0.625s151.00x
💻 LocalNext.js (Turbopack)1.420s (+0.6%)2.013s (~)0.593s151.03x
💻 LocalNitro1.434s (+0.9%)2.005s (~)0.572s151.04x
🐘 PostgresNitro2.000s (-7.0% 🟢)2.511s (-3.2%)0.511s121.45x
🐘 PostgresExpress2.005s (-4.7%)2.514s (-6.8% 🟢)0.509s121.45x
🐘 PostgresNext.js (Turbopack)2.161s (+21.2% 🔺)2.609s (+29.6% 🔺)0.448s121.56x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.831s (+3.5%)3.821s (+1.0%)0.990s81.00x
▲ VercelNext.js (Turbopack)2.834s (+2.3%)3.782s (-0.7%)0.948s81.00x
▲ VercelNitro3.054s (+7.2% 🔺)3.804s (+1.1%)0.750s81.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express2.266s (-10.2% 🟢)3.247s (+7.5% 🔺)0.982s101.00x
💻 LocalNext.js (Turbopack)2.531s (+1.6%)3.047s (~)0.516s101.12x
💻 LocalNitro2.689s (+4.8%)3.018s (~)0.329s101.19x
🐘 PostgresNitro10.928s (-15.3% 🟢)11.390s (-16.9% 🟢)0.462s34.82x
🐘 PostgresExpress12.232s (+12.3% 🔺)12.754s (+12.3% 🔺)0.523s35.40x
🐘 PostgresNext.js (Turbopack)12.663s (+6.9% 🔺)13.355s (+7.9% 🔺)0.693s35.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.013s (-2.5%)3.661s (-4.4%)0.648s91.00x
▲ VercelExpress3.084s (-13.3% 🟢)4.035s (-6.5% 🟢)0.951s81.02x
▲ VercelNext.js (Turbopack)3.101s (-9.8% 🟢)3.920s (-7.6% 🟢)0.818s81.03x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.127s (-30.1% 🟢)0.999s (+0.6%)0.013s (-7.7% 🟢)1.021s (~)0.894s101.00x
💻 LocalNext.js (Turbopack)0.149s (+2.6%)1.003s (~)0.016s (-18.3% 🟢)1.027s (~)0.879s101.17x
💻 LocalNitro0.185s (+1.9%)0.993s (~)0.015s (~)1.022s (~)0.837s101.46x
🐘 PostgresNext.js (Turbopack)1.138s (+24.0% 🔺)1.907s (+40.3% 🔺)0.000s (+Infinity% 🔺)2.017s (+32.7% 🔺)0.880s108.97x
🐘 PostgresExpress2.257s (-2.0%)2.784s (+1.5%)0.000s (-100.0% 🟢)3.015s (~)0.759s1017.78x
🐘 PostgresNitro2.303s (+2.5%)2.739s (-1.9%)0.000s (+Infinity% 🔺)3.015s (~)0.712s1018.15x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.024s (-5.2% 🟢)3.205s (-4.1%)0.825s (+19.3% 🔺)4.572s (-4.0%)1.549s101.00x
▲ VercelNext.js (Turbopack)3.175s (+5.6% 🔺)3.393s (+1.9%)0.861s (+119.8% 🔺)4.783s (+12.7% 🔺)1.607s101.05x
▲ VercelExpress3.493s (+15.1% 🔺)3.826s (+20.7% 🔺)0.507s (-28.4% 🟢)4.865s (+9.7% 🔺)1.371s101.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress8/8
🐘 PostgresNext.js (Turbopack)4/8
▲ VercelNitro5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)💻 Local8/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production457038495
✅ 💻 Local Development418032450
✅ 📦 Local Production418032450
✅ 🐘 Local Postgres418032450
✅ 🪟 Windows450045
❌ 🌍 Community Worlds311610192
✅ 📋 Other123012135
Total19101611462217

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4104
✅ example4104
✅ express4104
✅ fastify4104
✅ hono4104
✅ nextjs-turbopack4401
✅ nextjs-webpack4401
✅ nitro4104
✅ nuxt4104
✅ sveltekit4104
✅ vite4104
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4104
✅ express-stable4104
✅ fastify-stable4104
✅ hono-stable4104
✅ nextjs-turbopack-stable4500
✅ nextjs-webpack-stable4500
✅ nitro-stable4104
✅ nuxt-stable4104
✅ sveltekit-stable4104
✅ vite-stable4104
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4500
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb5400
✅ redis-dev300
❌ redis5400
✅ starter-dev300
❌ starter4410
✅ turso-dev300
❌ turso5400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable4104
✅ e2e-local-postgres-nest-stable4104
✅ e2e-local-prod-nest-stable4104

📋 View full workflow run

@johnlindquist
johnlindquistforce-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0dCompareJanuary 23, 2026 19:51
@johnlindquistjohnlindquist changed the title Add Claude Code custom commands and workflow skillWorkflow Skills for npx skillsJan 23, 2026
@@ -0,0 +1,434 @@
# Complete API Reference

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one particularly I'm worried about shipping since it will go outdated very fast as they're generated in the docs using tsdoc. were about to make big changes just in the next couple of days/weeks to the API and we constantly will

Comment on lines +277 to +283
**Verify connection:**
```bash
# Check your app responds to workflow endpoints
curl -s http://localhost:3000/.well-known/workflow/v1/flow \
-X POST -H "Content-Type: application/json"
# Should return: {"error": "Missing required headers"} (not 404)
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now have a health command that's better for checking. npx health
cc @TooTallNate

writer.releaseLock();
}
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for essential APIs we can also show usage of getRun with an example of getting status, seeing the returnValue, or cancelling a run (all in the docs)

Comment threadskills/workflow/SKILL.md Outdated
Comment on lines +247 to +251
# Terminal 2: Open dashboard (connects to port 3000)
npx workflow web

# If app runs on different port:
npx workflow web --app-url http://localhost:3001

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, the CLI can also be used to inspect all the runs/steps etc. without using the browser. npx workflow inspect runs, npx workflow inspect run wrun_sfnesf, npx workflow inspect --backend vercel etc.

this is specifically meant for agents to consume.

npx workflow web is mostly for humans, and the cli npx workflow inspect is meant for agents

can we please include that somewhere so it knows :)

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments I'd love to include/address before we ship the first version - but I'm generally happy to just put it and keep iterating once it's out there!

johnlindquistand others added 10 commits January 26, 2026 19:18
Add custom slash commands for Claude Code:
- /pr command for creating PRs following repo conventions
Add workflow skill with comprehensive documentation:
- Main SKILL.md with core concepts and quick reference
- Reference docs for frameworks, AI agents, patterns, errors, and API
Signed-off-by: johnlindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Add documentation for custom class serialization using @workflow/serde
symbols (WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE) and clarify what can
and cannot be serialized based on recent PR #762.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update sleep() example date from 2025 to 2027 (future date)
- Fix getWorkflowMetadata() to use correct properties: workflowRunId,
workflowStartedAt, url (not runId, workflowName)
- Fix getStepMetadata() to use correct property: attempt (not attemptNumber)
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Reorganize skill files to support multiple skills under ./skill/<name>/
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
- Update SKILL.md to direct agents to search node_modules/workflow/docs/
- Remove manually-maintained reference docs (ai-agents, api-reference, frameworks, patterns)
- Keep common-errors.md for practical troubleshooting
- Add prepack/postpack hooks to bundle docs in npm packages:
- workflow: All docs from docs/content/docs/
- @workflow/ai: AI-specific docs
- @workflow/core: foundations, how-it-works, api-reference
- @workflow/next: Next.js setup docs
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Use del-cli for postpack cleanup to match the AI SDK's cross-platform
approach. This ensures consistent tooling across both projects.
- Add del-cli ^5.1.0 to root devDependencies
- Update postpack in @workflow/core, @workflow/next, @workflow/ai, and
workflow packages from `rm -rf docs` to `del-cli docs`
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Document the CLI health check command for verifying workflow/step
endpoint connectivity during local development and production.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
@johnlindquist

Copy link
Copy Markdown
ContributorAuthor

Added workflow health command documentation to skills/workflow/references/common-errors.md - includes usage examples for local dev, specific endpoints, custom ports, and Vercel backend.

@pranaygppranaygp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gonna keep reviewing but leaving initial feedback

Comment threadpackages/ai/package.json Outdated
"clean": "tsc --build --clean && rm -rf docs ||:",
"test": "vitest run",
"prepack": "mkdir -p docs && cp -r ../../docs/content/docs/ai ./docs/ && cp -r ../../docs/content/docs/api-reference/workflow-ai ./docs/",
"postpack": "del-cli docs"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's either use rm -rf OR del-cli, not both

Comment threadskills/workflow/SKILL.md Outdated

## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not do this. that was meant to be a specific example and actually with DurableAgent you don't need that

Comment threadskills/workflow/SKILL.md Outdated
## Critical workflow rules

1. Always set `globalThis.fetch = fetch` when using AI SDK or HTTP libraries
2. Use `sleep()` instead of setTimeout/setInterval

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in "workflow" context. in steps it should still use setTimeout/setInterval

maybe claude is smart enough but fyi

Comment threadskills/workflow/SKILL.md Outdated
2. Use `sleep()` instead of setTimeout/setInterval
3. Move Node.js modules (fs, crypto, etc.) to step functions
4. Use `FatalError` for permanent failures, `RetryableError` for retries
5. Use `use step` with AI SDK methods to avoid issues with OIDC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this means and it seems weird to put this in the index/root of the skill

Comment threadpackages/core/package.json
Comment threadskills/workflow/references/common-errors.md Outdated
johnlindquistand others added 3 commits January 27, 2026 12:10
- Remove del-cli dependency, use rm -rf consistently in postpack scripts
- Restructure SKILL.md to lead with "Prefer Step Functions" pattern
- Add sandbox limitations table for workflow-context workarounds
- Consolidate examples and remove duplication
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
Move useful tips (serialization, streaming, debugging) into main skill
file and remove the separate common-errors.md reference file.
Signed-off-by: John Lindquist <johnlindquist@gmail.com>
…s-and-commands
* origin/main:
fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
Publish "workflow" and "@workflow/core" package versions in sync (#870)
Add SDK version to workflow run executionContext for observability (#868)
Allow recreateRun to accept an optional deploymentId parameter (#869)
Add support for top-level `using` declarations inside of step / workflow functions (#866)
docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
Add "classes" object to `manifest.json` file (#864)
Fix Nest workbench app build (#865)
Ignore Astro on local dev tests for source map e2e tests (#863)
Enable custom class serialization transformations for "client" mode (#860)
Submit request bodies with CBOR encoding (#844)
[world-vercel] Update queue to use VQS v3 API (#799)
NestJS framework support (#840)
Fix resolve hook theming and token fetching. (#856)
docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
docs: revamp World documentation pages (#763)
Remove unused `getWritable` stub function (#855)
# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@johnlindquist@pranaygp