workflow-init
Original:🇺🇸 English
Translated
Install and configure Vercel Workflow DevKit before it exists in node_modules. Use when the user asks to "install workflow", "set up workflow", "add durable workflows", "configure workflow devkit", or "init workflow" for Next.js, Express, Hono, Fastify, NestJS, Nitro, Nuxt, Astro, SvelteKit, or Vite.
19installs
Sourcevercel/workflow
Added on
NPX Install
npx skill4agent add vercel/workflow workflow-initTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →workflow-init
Initial setup of Vercel Workflow DevKit before is installed. Fetch the official getting-started guide for the user's framework.
workflowDecision Flow
0) Sanity check
Read . If is already a dependency, tell the user to use instead (it reads versioned docs from ). Only continue if workflow is missing.
package.jsonworkflow/workflownode_modules/workflow/docs/1) Determine the framework
Non-interactive: If the user named a framework in their prompt, use it directly.
Auto-detect: Inspect deps and config files. Use the first match:
package.json- Next.js - dep or
nextnext.config.* - Nuxt - dep or
nuxtnuxt.config.* - SvelteKit - dep or
@sveltejs/kitsvelte.config.* - Astro - dep or
astroastro.config.* - NestJS - dep or
@nestjs/corenest-cli.json - Nitro - dep or
nitronitro.config.* - Express - dep
express - Fastify - dep
fastify - Hono - dep
hono - Vite - dep (and not matched above)
vite
If no match or multiple matches, ask the user to pick.
2) Fetch and follow the getting-started guide
Fetch exactly one of these URLs and follow the guide step-by-step:
Each guide covers: install deps, configure framework, create first workflow, create route handler, run + verify.
3) Verify setup
- Start the dev server per the guide.
- Trigger the example endpoint with the provided .
curl - Confirm logs show the workflow and steps executing.
- Optional: or
npx workflow web.npx workflow inspect runs
4) No framework yet?
If no framework exists, ask what the user wants:
- Web app: Next.js / Nuxt / SvelteKit / Astro
- API server: Express / Fastify / Hono
- Minimal server: Nitro or Vite
Then follow the "Create Your Project" section of the chosen guide.
Concept questions (pre-install)
If the user asks conceptual questions before installing, fetch:
- https://useworkflow.dev/docs/foundations/workflows-and-steps
- https://useworkflow.dev/docs/foundations/common-patterns
Handoff
When setup is complete, tell the user: Use for ongoing development - it reads the versioned docs bundled in .
/workflownode_modules/workflow/docs/