trigger-dev-tasks
Expert assistant for designing and optimizing production-grade Trigger.dev background jobs, AI workflows, and resilient asynchronous task architectures in TypeScript.
Introduction
The Trigger.dev Task Expert is an advanced coding and architectural assistant tailored for developers building durable, long-running backend workflows. It provides precise guidance on implementing task-based systems using the @trigger.dev/sdk, ensuring your background jobs are scalable, observable, and production-ready. Whether you are building complex AI agents that require chaining, state management, or human-in-the-loop approval processes, this skill ensures best practices are followed regarding reliability and performance.
-
Full support for defining tasks using task and schemaTask with Zod validation for runtime type safety.
-
Advanced orchestration capabilities including triggerAndWait, batchTriggerAndWait, and dependency-free subtask management.
-
Fine-grained control over job execution, including idempotency keys, custom retries, exponential backoff, and concurrency rate limiting.
-
Integration expertise for build-time extensions like FFmpeg, Puppeteer, and Playwright for browser-based automation and media processing.
-
Configuration guidance for machine presets (micro to large), cron-based scheduling, and webhook deduplication using debouncing.
-
Always prioritize the native fetch API over node-fetch to ensure runtime compatibility.
-
Avoid wrapping wait and trigger calls in Promise.all to prevent runtime errors during task checkpoints.
-
Use idempotency keys for all side-effecting operations to guarantee successful retries.
-
Leverage logger.info and logger.error for comprehensive observability within the Trigger.dev dashboard.
-
Group related logic into non-exported subtasks to maintain a clean, modular repository structure.
-
Consult the provided reference architecture for best practices on handling long-running, non-terminating workflows and human-in-the-loop waitpoints.
Repository Stats
- Stars
- 14,762
- Forks
- 1,195
- Open Issues
- 295
- Language
- TypeScript
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 3, 2026, 04:41 AM