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
Copy link
Copy Markdown
Contributor

@johnlindquist johnlindquist commented Jan 23, 2026

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

Package Docs Bundled Path in node_modules
workflow All docs node_modules/workflow/docs/
@workflow/ai AI + DurableAgent docs node_modules/@workflow/ai/docs/
@workflow/core foundations, how-it-works, API node_modules/@workflow/core/docs/
@workflow/next Next.js setup + API node_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
Copy link
Copy Markdown
Contributor

vercel Bot commented Jan 23, 2026

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 23, 2026

🦋 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
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 23, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.032s (-25.4% 🟢) 1.008s (~) 0.977s 10 1.00x
💻 Local Next.js (Turbopack) 0.039s (-8.7% 🟢) 1.018s (~) 0.979s 10 1.22x
💻 Local Nitro 0.043s (-0.7%) 1.007s (~) 0.964s 10 1.34x
🐘 Postgres Next.js (Turbopack) 0.187s (+12.8% 🔺) 1.020s (~) 0.832s 10 5.91x
🐘 Postgres Express 0.254s (-17.3% 🟢) 1.019s (~) 0.765s 10 8.02x
🐘 Postgres Nitro 0.289s (+22.5% 🔺) 1.014s (~) 0.725s 10 9.11x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.667s (~) 1.585s (+0.9%) 0.917s 10 1.00x
▲ Vercel Next.js (Turbopack) 0.699s (-17.7% 🟢) 1.718s (-6.2% 🟢) 1.020s 10 1.05x
▲ Vercel Express 0.710s (-1.3%) 1.667s (+7.6% 🔺) 0.957s 10 1.06x

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

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.081s (-3.1%) 2.008s (~) 0.927s 10 1.00x
💻 Local Next.js (Turbopack) 1.089s (~) 2.013s (~) 0.923s 10 1.01x
💻 Local Nitro 1.116s (~) 2.007s (~) 0.891s 10 1.03x
🐘 Postgres Express 2.148s (+0.9%) 3.015s (~) 0.867s 10 1.99x
🐘 Postgres Nitro 2.158s (-1.4%) 3.015s (~) 0.857s 10 2.00x
🐘 Postgres Next.js (Turbopack) 2.298s (+16.8% 🔺) 3.018s (+42.5% 🔺) 0.720s 10 2.12x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.817s (~) 3.759s (+2.2%) 0.942s 10 1.00x
▲ Vercel Express 2.943s (-3.2%) 3.765s (~) 0.823s 10 1.04x
▲ Vercel Next.js (Turbopack) 3.149s (+9.1% 🔺) 4.046s (+5.9% 🔺) 0.897s 10 1.12x

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

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 10.607s (-2.1%) 11.018s (~) 0.411s 5 1.00x
💻 Local Next.js (Turbopack) 10.703s (~) 11.018s (~) 0.315s 5 1.01x
💻 Local Nitro 10.835s (~) 11.016s (~) 0.181s 5 1.02x
🐘 Postgres Next.js (Turbopack) 15.761s (+6.8% 🔺) 16.233s (+7.9% 🔺) 0.472s 5 1.49x
🐘 Postgres Nitro 20.390s (~) 20.830s (-1.0%) 0.440s 5 1.92x
🐘 Postgres Express 20.457s (~) 21.033s (~) 0.576s 5 1.93x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 22.562s (-6.3% 🟢) 23.181s (-7.3% 🟢) 0.620s 5 1.00x
▲ Vercel Next.js (Turbopack) 22.704s (-5.4% 🟢) 23.623s (-5.4% 🟢) 0.919s 5 1.01x
▲ Vercel Nitro 23.263s (-1.7%) 24.016s (-1.6%) 0.753s 5 1.03x

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

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.392s (-0.7%) 2.007s (~) 0.615s 15 1.00x
💻 Local Nitro 1.415s (+0.6%) 2.006s (~) 0.591s 15 1.02x
💻 Local Next.js (Turbopack) 1.416s (+2.2%) 2.012s (~) 0.596s 15 1.02x
🐘 Postgres Next.js (Turbopack) 2.063s (+2.3%) 2.857s (+23.0% 🔺) 0.794s 11 1.48x
🐘 Postgres Express 2.165s (-3.3%) 3.015s (~) 0.850s 10 1.56x
🐘 Postgres Nitro 2.228s (+1.7%) 3.014s (~) 0.786s 10 1.60x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 3.207s (-9.2% 🟢) 4.092s (-7.3% 🟢) 0.886s 8 1.00x
▲ Vercel Express 3.270s (-8.5% 🟢) 4.189s (-3.5%) 0.919s 8 1.02x
▲ Vercel Nitro 3.302s (+9.9% 🔺) 4.094s (+6.1% 🔺) 0.792s 8 1.03x

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

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 2.301s (-7.4% 🟢) 3.263s (+6.8% 🔺) 0.962s 10 1.00x
💻 Local Next.js (Turbopack) 2.460s (-0.8%) 3.202s (+3.6%) 0.742s 10 1.07x
💻 Local Nitro 2.506s (-0.9%) 3.043s (+0.9%) 0.537s 10 1.09x
🐘 Postgres Nitro 8.156s (-5.3% 🟢) 8.808s (-5.4% 🟢) 0.651s 4 3.54x
🐘 Postgres Express 8.474s (+11.8% 🔺) 9.077s (+12.2% 🔺) 0.603s 4 3.68x
🐘 Postgres Next.js (Turbopack) 12.674s (+7.0% 🔺) 13.364s (+11.1% 🔺) 0.690s 3 5.51x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.099s (-7.8% 🟢) 3.750s (-7.8% 🟢) 0.651s 8 1.00x
▲ Vercel Express 3.414s (+12.4% 🔺) 4.113s (+11.0% 🔺) 0.699s 8 1.10x
▲ Vercel Next.js (Turbopack) 3.536s (+5.3% 🔺) 4.207s (+2.4%) 0.671s 8 1.14x

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

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.381s (-4.7%) 2.007s (~) 0.625s 15 1.00x
💻 Local Next.js (Turbopack) 1.420s (+0.6%) 2.013s (~) 0.593s 15 1.03x
💻 Local Nitro 1.434s (+0.9%) 2.005s (~) 0.572s 15 1.04x
🐘 Postgres Nitro 2.000s (-7.0% 🟢) 2.511s (-3.2%) 0.511s 12 1.45x
🐘 Postgres Express 2.005s (-4.7%) 2.514s (-6.8% 🟢) 0.509s 12 1.45x
🐘 Postgres Next.js (Turbopack) 2.161s (+21.2% 🔺) 2.609s (+29.6% 🔺) 0.448s 12 1.56x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.831s (+3.5%) 3.821s (+1.0%) 0.990s 8 1.00x
▲ Vercel Next.js (Turbopack) 2.834s (+2.3%) 3.782s (-0.7%) 0.948s 8 1.00x
▲ Vercel Nitro 3.054s (+7.2% 🔺) 3.804s (+1.1%) 0.750s 8 1.08x

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

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 2.266s (-10.2% 🟢) 3.247s (+7.5% 🔺) 0.982s 10 1.00x
💻 Local Next.js (Turbopack) 2.531s (+1.6%) 3.047s (~) 0.516s 10 1.12x
💻 Local Nitro 2.689s (+4.8%) 3.018s (~) 0.329s 10 1.19x
🐘 Postgres Nitro 10.928s (-15.3% 🟢) 11.390s (-16.9% 🟢) 0.462s 3 4.82x
🐘 Postgres Express 12.232s (+12.3% 🔺) 12.754s (+12.3% 🔺) 0.523s 3 5.40x
🐘 Postgres Next.js (Turbopack) 12.663s (+6.9% 🔺) 13.355s (+7.9% 🔺) 0.693s 3 5.59x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.013s (-2.5%) 3.661s (-4.4%) 0.648s 9 1.00x
▲ Vercel Express 3.084s (-13.3% 🟢) 4.035s (-6.5% 🟢) 0.951s 8 1.02x
▲ Vercel Next.js (Turbopack) 3.101s (-9.8% 🟢) 3.920s (-7.6% 🟢) 0.818s 8 1.03x

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

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.127s (-30.1% 🟢) 0.999s (+0.6%) 0.013s (-7.7% 🟢) 1.021s (~) 0.894s 10 1.00x
💻 Local Next.js (Turbopack) 0.149s (+2.6%) 1.003s (~) 0.016s (-18.3% 🟢) 1.027s (~) 0.879s 10 1.17x
💻 Local Nitro 0.185s (+1.9%) 0.993s (~) 0.015s (~) 1.022s (~) 0.837s 10 1.46x
🐘 Postgres Next.js (Turbopack) 1.138s (+24.0% 🔺) 1.907s (+40.3% 🔺) 0.000s (+Infinity% 🔺) 2.017s (+32.7% 🔺) 0.880s 10 8.97x
🐘 Postgres Express 2.257s (-2.0%) 2.784s (+1.5%) 0.000s (-100.0% 🟢) 3.015s (~) 0.759s 10 17.78x
🐘 Postgres Nitro 2.303s (+2.5%) 2.739s (-1.9%) 0.000s (+Infinity% 🔺) 3.015s (~) 0.712s 10 18.15x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.024s (-5.2% 🟢) 3.205s (-4.1%) 0.825s (+19.3% 🔺) 4.572s (-4.0%) 1.549s 10 1.00x
▲ Vercel Next.js (Turbopack) 3.175s (+5.6% 🔺) 3.393s (+1.9%) 0.861s (+119.8% 🔺) 4.783s (+12.7% 🔺) 1.607s 10 1.05x
▲ Vercel Express 3.493s (+15.1% 🔺) 3.826s (+20.7% 🔺) 0.507s (-28.4% 🟢) 4.865s (+9.7% 🔺) 1.371s 10 1.16x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Express 8/8
🐘 Postgres Next.js (Turbopack) 4/8
▲ Vercel Nitro 5/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 💻 Local 8/8
Next.js (Turbopack) 💻 Local 8/8
Nitro 💻 Local 8/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
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 23, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 457 0 38 495
✅ 💻 Local Development 418 0 32 450
✅ 📦 Local Production 418 0 32 450
✅ 🐘 Local Postgres 418 0 32 450
✅ 🪟 Windows 45 0 0 45
❌ 🌍 Community Worlds 31 161 0 192
✅ 📋 Other 123 0 12 135
Total 1910 161 146 2217

❌ 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
App Passed Failed Skipped
✅ astro 41 0 4
✅ example 41 0 4
✅ express 41 0 4
✅ fastify 41 0 4
✅ hono 41 0 4
✅ nextjs-turbopack 44 0 1
✅ nextjs-webpack 44 0 1
✅ nitro 41 0 4
✅ nuxt 41 0 4
✅ sveltekit 41 0 4
✅ vite 41 0 4
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 45 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
❌ mongodb 5 40 0
✅ redis-dev 3 0 0
❌ redis 5 40 0
✅ starter-dev 3 0 0
❌ starter 4 41 0
✅ turso-dev 3 0 0
❌ turso 5 40 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 41 0 4
✅ e2e-local-postgres-nest-stable 41 0 4
✅ e2e-local-prod-nest-stable 41 0 4

📋 View full workflow run

@johnlindquist johnlindquist force-pushed the add-claude-code-skills-and-commands branch from 2a611a0 to 5aa4a0d Compare January 23, 2026 19:51
@johnlindquist johnlindquist changed the title Add Claude Code custom commands and workflow skill Workflow Skills for npx skills Jan 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

Comment thread skills/workflow/SKILL.md
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 thread skills/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 :)

Copy link
Copy Markdown
Contributor

@pranaygp pranaygp left a comment

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!

johnlindquist and 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
Contributor Author

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.

Copy link
Copy Markdown
Contributor

@pranaygp pranaygp left a comment

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 thread packages/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 thread skills/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 thread skills/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 thread skills/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 thread packages/core/package.json
Comment thread skills/workflow/references/common-errors.md Outdated
johnlindquist and 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 free to 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