New advertisers: 50% off your first month with code FIRSTMONTHSee slots
vercel avatar

Workflow Init

Guided setup for Vercel Workflow SDK across ten frameworks, run before the workflow package is installed.

skills.sh installs
3.9K
GitHub stars
2.5K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the pre-install path: checks package.json for an existing workflow dependency, then detects or asks for the target framework
  • Supports Next.js, Nuxt, SvelteKit, Astro, NestJS, Nitro, Express, Fastify, Hono, and Vite, each with its official getting-started guide
  • Verifies the setup by starting the dev server, triggering the example endpoint, and checking logs for workflow and step execution
  • Designed for projects that do not yet have workflow in node_modules; hands off to /workflow for ongoing development

Install

$ npx -y skills add vercel/workflow --skill workflow-init -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

workflow-init

Initial setup of Vercel Workflow SDK before workflow is installed. Fetch the official getting-started guide for the user's framework.

Decision flow

0) Sanity check

Read package.json. If workflow is already a dependency, tell the user to use /workflow instead (it reads versioned docs from node_modules/workflow/docs/). Only continue if workflow is missing.

1) Determine the framework

Non-interactive: If the user named a framework in their prompt, use it directly.

Auto-detect: Inspect package.json deps and config files. Use the first match:

  1. Next.js - next dep or next.config.*
  2. Nuxt - nuxt dep or nuxt.config.*
  3. SvelteKit - @sveltejs/kit dep or svelte.config.*
  4. Astro - astro dep or astro.config.*
  5. NestJS - @nestjs/core dep or nest-cli.json
  6. Nitro - nitro dep or nitro.config.*
  7. Express - express dep
  8. Fastify - fastify dep
  9. Hono - hono dep
  10. Vite - vite dep (and not matched above)

If no match or multiple matches, ask the user to pick.

Details

Repository
github.com/vercel/workflow
Categories
Backend & APIs, Frontend & UI Code, Workflow Automation
First seen
Apr 16, 2026

More from vercel/workflow

All 3

Similar to Workflow Init

More Backend & APIs