Automated summary
This skill provides best practices and guidelines for using Inngest, a serverless event-driven workflow orchestration platform.
Strengths
- Guides proper use of steps (step.run) to avoid serialization and performance issues.
- Explains key concepts like durable execution, flow control, and observability.
- Suggests useful patterns (Promise.all, step.fetch vs raw fetch, using step.waitForEvent).
Limitations
- Does not cover initial setup or deployment of Inngest.
- May not be up-to-date with latest Inngest features.
- Focuses on general best practices without full code examples.
Use this skill when writing or refactoring Inngest functions, managing events, or optimizing existing workflows.
Do not use it for tasks unrelated to Inngest, or if you need a step-by-step guide to getting started with the platform.
Security analysis
SafeThis skill provides guidelines and best practices for using the Inngest platform. It contains no executable commands, no destructive instructions, and no security-sensitive operations. It is purely educational and advisory.
No concerns found
How this analysis is madeExamples
Create an Inngest function that triggers on a 'user/signed-up' event, validates the payload with Zod, and sends a welcome email using a step.run call. Follow Inngest best practices for serialization and non-deterministic logic placement.Refactor this Inngest workflow that currently nests step.run calls inside each other. Explain why nesting is problematic and restructure it using proper step invocations or Promise.all for parallel steps.Optimize an Inngest function that performs multiple API calls. Replace raw fetch with step.fetch, add rate limiting via concurrency options, and handle failures with NonRetriableError where appropriate. Ensure all non-deterministic logic is inside step.run.name: theo-inngest description: Inngest is a serverless event-driven workflow orchestration platform. It lets you build durable, stateful background jobs and workflows without managing infrastructure. Use this skill when working with Inngest functions, events, schemas, testing, or anything else Inngest-related. metadata: author: "Theo Ai" version: "1.0.0"
Theo Ai's Inngest Guidelines and Best Practices
Comprehensive best practices and guidelines for creating, refactoring, and maintaining Inngest code - maintained by Theo Ai.
When to use
Use this skill when working with Inngest functions and anything Inngest related. This includes, but is not limited to:
- Creating new Inngest functions
- Editing existing Inngest functions
- Managing/editing or creating Inngest events
- Optimizing Inngest code
- Using Inngest built-in tools
- Troubleshooting Inngest-specific issues
Core Inngest concepts:
- Event-driven functions - trigger on events, schedules, or webhooks
- Durable execution - automatic retries, state preservation across failures
- Flow control - concurrency limits, rate limiting, debouncing, prioritization
- Observability - built-in logging, metrics, and tracing
Why use it: You write business logic as "step functions" and Inngest handles reliability, retries, and orchestration. Great for long-running processes, AI workflows, and background jobs that need to survive failures.
Instructions
On how to use step
- In Inngest functions, each step is executed as a separate HTTP
request. To ensure efficient and correct execution, place any
non-deterministic logic (such as DB calls, API calls, random number
generators, etc) within a
step.run()call. - Think of each call to
stepas a separete, self-fulfilling, serverless-like function. - Do not nest calls to
step. Thestepobject must never be nested. - Do not send
stepas argument to function calls. Keep the use ofstepconstrained within the Inngest function. - Returns from calls to
stepare serialized and deserialized by Inngest's infrastructure. This means that complex objects and functions cannot be returned by a call tostep. - Be cognizant of the fact that each call to step is a separate HTTP request and that this adds infrastructure and execution time overheads. With that said, prefer to create algorithms that smartly and efficiently combine functionality within single steps. In other words, try to avoid micro steps. On the other hand, be sensitive to steps that might block execution for too long and become operational bottlenecks. Find a balance.
On serialization caveats
- Serialized returns are also limited to 4MB so, do make sure that returns are within those limits.
On useful patterns
- Come up with algorithms that levarage Inngest's primitives as much
as possible. I.e.
step.fetch()is better than calls tofetchdirectly; a busy-wait loop can probably leveragestep.waitForEvent(),step.sleept(),step.sleepUntil(),step.delay(), etc depending on the scenario - When breaking down functionality, prefer
step.run()overstep.invoke()when possible, as the former allows fanout operations to be aggregated and visualized under the same function call in the Inngest WebUI, improving traceability. However, considerstep.invoke()when you specifically need independent concurrency control, as inlinestep.run()calls cannot have their own concurrency limits separate from the parent function. - In situations where multiple steps can run in parallel, utilize a
Promise.allresolution.
On events schemas
- Make sure to always type the events and returns using the
Zodinfrastructure in place.
On Error-handling and debugging
- Be attentive of when to use
NonRetriableError - When utilizing and event/response pattern, make sure to return events in case of failure and treat them at the waiting side accordingly.
- When logging, use Inngest's
loggerand notconsole.log
On anything else
- Refer to Inngest's documentation (feel free to search the web extensivelly and/or fetch from https://www.inngest.com/docs ) for anything else you need
Anti-patterns to avoid
- Not using Steps
- Not typing events
- Nested steps
- Huge event payloads (must be 4MB or less)
- Ignoring concurrency
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/download' --output '.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md.part' && mv '.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md.part' '.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md' && test -s '.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/theo-inngest' && cp -R '.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg' '.claude/skills/theo-inngest'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg'openskills read 'inngest-serverless-event-driven-workflow-orchestration-mm8o52gg'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.