Use when adding cross-cutting concerns to durable functions — structured logging or tracing across all functions, error tracking with Sentry, payload encryption for sensitive data, dependency injection of clients (DB, Stripe, etc.) into function handlers, custom telemetry, or behavior that should apply uniformly across many functions. Covers Inngest middleware lifecycle, creating custom middleware, dependencyInjectionMiddleware, @inngest/middleware-encryption, @inngest/middleware-sentry, and custom middleware patterns.
$npx -y skills add inngest/inngest-skills --skill inngest-middlewareInstalls into the current project.
Run `npx skills use "https://github.com/inngest/inngest-skills" --skill "inngest/inngest-skills/inngest-middleware"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/inngest/inngest-skills" that are relevant to the current task. Run `npx skills add "https://github.com/inngest/inngest-skills"` and select the relevant skills, then follow their instructions.