trigger-dev/SKILL.md
Trigger.dev — open-source background jobs platform for TypeScript with durable execution, retries, scheduling, and real-time monitoring. Use when building with Trigger.dev or asking about its task definitions, schedules, delays, batching, concurrency, or deployment. Fetch live documentation for up-to-date details.
npx skillsauth add mikkelkrogsholm/dev-skills trigger-devInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
CRITICAL: Your training data for Trigger.dev is unreliable. APIs change between versions and memorized patterns may be wrong or deprecated. Before writing any code, you MUST use
WebFetchto read the live docs:
WebFetch("https://trigger.dev/llms.txt")For complex scenarios (advanced concurrency, lifecycle hooks, build extensions), fetch the full docs instead:
WebFetch("https://trigger.dev/docs/llms-full.txt")Do not proceed without fetching first. Never assume an API exists — verify against current docs.
Trigger.dev is an open-source background jobs platform for TypeScript with durable execution, built-in retries, scheduling, and real-time monitoring.
wait.for({ seconds: 30 }), wait.until({ date }), and wait.forToken() suspend execution without consuming timeout — the run resumes after the wait, not a new invocation.maxDuration per task or globally in config if a limit is needed.tasks.batchTrigger() accepts up to 1,000 items in a single call.childTask.triggerAndWait() suspends the parent until the child completes and returns a typed Result object — check .ok before accessing .output, or call .unwrap().onStart, onSuccess, onFailure, and init in config handle cross-cutting concerns without modifying task code.@trigger.dev/build/extensions provides first-party support for Prisma, FFmpeg, Playwright, and system packages — use instead of manual Docker layers.triggerAndWait or batchTriggerAndWait in Promise.all — this pattern is explicitly unsupported and will cause failures.AbortTaskRunError to fail a run without retrying (e.g., for validation failures). Throwing any other error triggers the retry policy.TRIGGER_SECRET_KEY — using the wrong key triggers runs in the wrong environment with no obvious error.processKeepAlive reduces cold starts but the process can be killed at any time; do not rely on in-memory state persisting between task runs.development
Zod — TypeScript-first schema validation with static type inference. Use when building with Zod or asking about schema definitions, type inference, parsing, transformations, refinements, coercion, error handling, or integration with forms, APIs, or tRPC. Fetch live documentation for up-to-date details.
tools
Vite — next-generation frontend build tool with instant dev server and optimized production builds. Use when building with Vite or asking about its APIs, configuration, plugins, SSR, environment variables, or integration with frameworks. Fetch live documentation for up-to-date details.
tools
Upstash — serverless Redis, QStash, and Vector database with per-request pricing optimized for edge and serverless environments. Use when building with Upstash or asking about its Redis client, QStash message queuing, rate limiting, workflows, or vector search. Fetch live documentation for up-to-date details.
tools
Turso — edge-hosted SQLite database built on libSQL with embedded replicas, multi-tenancy, and low-latency global distribution. Use when building with Turso or asking about its libSQL client, embedded replicas, database-per-tenant patterns, auth tokens, sync, or integration with Drizzle or other ORMs. Fetch live documentation for up-to-date details.