inngest-v3-v4-migration
Use when upgrading an existing TypeScript codebase from Inngest SDK v3 to v4, or when fixing mixed v3/v4 API usage. Covers detecting current SDK usage, moving…
от Asymmetric-al★ 354 звезды на GitHub
Установить inngest-v3-v4-migration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Inngest v3 to v4 Migration
Use this skill when the user asks to upgrade Inngest, fix v3/v4 errors, migrate realtime, or clean up a codebase that has mixed SDK patterns.
Primary reference: https://www.inngest.com/docs/reference/typescript/v4/migrations/v3-to-v4
This skill is agent-first: detect actual usage first, make mechanical API changes in a controlled order, then typecheck and run focused tests.
When to Trigger
Use this skill for requests like:
- "Upgrade Inngest from v3 to v4"
- "Fix our Inngest v4 migration"
- "We're getting signing key required / cloud mode errors after upgrading"
- "
step.invokewith a string function ID stopped working" - "
@inngest/realtimebroke after installinginngest@4" - "Move from EventSchemas to eventType"
- "Make this existing Inngest repo v4-compatible"
If the user asks for a broad codebase reliability audit first, use
inngest-brownfield-audit to choose scope, then return here for the v4 changes.
Migration Scan
Start by locating all Inngest surfaces:
rg -n '"inngest"|"@inngest/realtime"|"@inngest/agent-kit"' package.json **/package.json
rg -n 'new Inngest|EventSchemas|eventType|staticSchema|createFunction\\(|serve\\(|connect\\(|step\\.invoke|referenceFunction|@inngest/realtime|realtimeMiddleware|useInngestSubscription|serveHost|rewriteGatewayEndpoint|logLevel|streaming:|signingKey|signingKeyFallback|baseUrl|INNGEST_DEV|INNGEST_SIGNING_KEY' .
Then classify the repo:
- No Inngest yet: use
inngest-setup, not this migration skill. - v3 only: migrate the SDK and all breaking changes together.
- mixed v3/v4: prioritize removing broken v3 APIs from v4 code.
- v4 mostly done: focus on missed runtime gotchas like local dev mode,
serverless
maxRuntime, realtime package imports, and stringstep.invoke.
Before editing, record:
Inngest migration scan:
- Current package versions:
- Client files:
- Serve/connect entrypoints:
- Functions using old trigger syntax:
- EventSchemas usage:
- Realtime v3 package usage:
- step.invoke string IDs:
- Serverless runtime constraints:
- Tests/checks available:
Upgrade Order
- Update package versions.
- Fix client construction and local/prod mode.
- Move serve options to the client.
- Move triggers into
createFunctionoptions. - Replace
EventSchemaswitheventType()/staticSchema(). - Rewrite
step.invoke()string IDs. - Migrate realtime from
@inngest/realtimeto v4 native APIs. - Update middleware and logging.
- Configure checkpointing/serverless runtime.
- Typecheck, run tests, and optionally sync with the dev server.
Package and Environment
Install the latest v4 SDK:
npm install inngest@latest
# or pnpm add inngest@latest
# or yarn add inngest@latest
If the repo uses v3 realtime, remove @inngest/realtime; v4 realtime lives in
the inngest package and subpaths such as inngest/realtime, inngest/react,
and native step.realtime / inngest.realtime.
v4 defaults to Cloud mode. For local development, use an env var:
INNGEST_DEV=1 npm run dev
Do not hardcode isDev: true in source unless the repo's existing environment
pattern clearly scopes it to local-only code. Production should use
INNGEST_SIGNING_KEY.
Client and Serve Options
In v4, options such as signingKey, signingKeyFallback, and baseUrl belong
on new Inngest(...), not on serve(...).
// Old v3
app.use(
"/api/inngest",
serve({
client: inngest,
functions,
signingKey: process.env.INNGEST_SIGNING_KEY,
baseUrl: process.env.INNGEST_BASE_URL,
}),
);
// New v4
export const inngest = new Inngest({
id: "my-app",
signingKey: process.env.INNGEST_SIGNING_KEY,
baseUrl: process.env.INNGEST_BASE_URL,
});
app.use("/api/inngest", serve({ client: inngest, functions }));
If the repo already relies on supported environment variables and does not pass serve options explicitly, no code change may be required for those keys.
Other renames:
serveHost->serveOriginstreaming: "force"->streaming: truestreaming: "allow"->streaming: truestreaming: falsestaysfalselogLevelis removed; pass aloggersuch asnew ConsoleLogger({ level })
createFunction Triggers
Triggers move into the first argument's options object.
// Old v3
inngest.createFunction(
{ id: "send-welcome" },
{ event: "user/created" },
async ({ event, step }) => {},
);
// New v4
inngest.createFunction(
{ id: "send-welcome", triggers: [{ event: "user/created" }] },
async ({ event, step }) => {},
);
Cron triggers move the same way:
inngest.createFunction(
{ id: "nightly-sync", triggers: [{ cron: "0 2 * * *" }] },
async ({ step }) => {},
);
If a function is invoked only via step.invoke, it may be triggerless.
EventSchemas to eventType/staticSchema
Replace centralized EventSchemas with event-specific definitions.
import { Inngest, e
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл inngest-v3-v4-migration?
Use when upgrading an existing TypeScript codebase from Inngest SDK v3 to v4, or when fixing mixed v3/v4 API usage. Covers detecting current SDK usage, moving triggers into createFunction options, replacing EventSchemas with eventType/staticSchema, moving serve options to the client, updating realtime imports, rewriting step.invoke string IDs, checkpointing/serverless runtime settings, Connect option changes, and verification.
Как установить скилл inngest-v3-v4-migration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл inngest-v3-v4-migration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…