Inngest - Orchestration d'événements serverless

VérifiéSûr

Directives pour utiliser Inngest et construire des workflows événementiels sans serveur avec exécution durable. Couvre les bonnes pratiques pour les fonctions par étapes, les schémas d'événements, la gestion des erreurs et l'orchestration efficace. Utile pour développer des tâches de fond, des workflows d'IA ou tout processus nécessitant une résilience aux pannes.

Spar Skills Guide Bot
DeveloppementIntermédiaire
02/06/2026
Claude Code
#inngest#serverless#event-driven#workflows#orchestration

Recommandé pour

Synthèse automatique

Ce skill fournit des bonnes pratiques et directives pour utiliser Inngest, une plateforme d'orchestration de workflows événementiels serverless.

Points forts

  • Guide l'utilisation correcte des étapes (step.run) pour éviter les problèmes de sérialisation et de performances.
  • Explique les concepts clés comme l'exécution durable, le contrôle de flux et l'observabilité.
  • Propose des motifs utiles (Promise.all, step.fetch vs fetch direct, utilisation de step.waitForEvent).

Limites

  • Ne couvre pas la configuration initiale ou le déploiement d'Inngest.
  • Peut ne pas être à jour avec les dernières fonctionnalités d'Inngest.
  • Se concentre sur les bonnes pratiques générales sans exemples concrets de code complet.
Quand l'utiliser

Utilisez ce skill lorsque vous écrivez ou refactorisez des fonctions Inngest, gérez des événements, ou optimisez des workflows existants.

Quand l'éviter

Ne l'utilisez pas pour des tâches sans rapport avec Inngest, ou si vous avez besoin d'un guide pas à pas pour débuter avec la plateforme.

Analyse de sécurité

Sûr
Score qualité95/100

This 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.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Create an event-driven Inngest function
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 a workflow to avoid step nesting
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 a function with step.fetch and error handling
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 step as a separete, self-fulfilling, serverless-like function.
  • Do not nest calls to step. The step object must never be nested.
  • Do not send step as argument to function calls. Keep the use of step constrained within the Inngest function.
  • Returns from calls to step are serialized and deserialized by Inngest's infrastructure. This means that complex objects and functions cannot be returned by a call to step.
  • 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 to fetch directly; a busy-wait loop can probably leverage step.waitForEvent(), step.sleept(), step.sleepUntil(), step.delay(), etc depending on the scenario
  • When breaking down functionality, prefer step.run() over step.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, consider step.invoke() when you specifically need independent concurrency control, as inline step.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.all resolution.

On events schemas

  • Make sure to always type the events and returns using the Zod infrastructure 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 logger and not console.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

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

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. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

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 doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg'

openskills read 'inngest-serverless-event-driven-workflow-orchestration-mm8o52gg'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/inngest-serverless-event-driven-workflow-orchestration-mm8o52gg/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires