trigger-dev-tasks

Implements Trigger.dev background tasks, scheduled jobs, and realtime workflows with Zod validation.

Updated Jul 17, 2026
One-click install
npx skills add https://github.com/usmangurowa/socialmocks --skill trigger-dev-tasks-usmangurowa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trigger-dev-tasks
Source: https://github.com/usmangurowa/socialmocks/tree/main/.agents/skills/trigger-dev-tasks
Command: npx skills add https://github.com/usmangurowa/socialmocks --skill trigger-dev-tasks-usmangurowa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @trigger.dev/sdk, zod, @trigger.dev/react-hooks, and includes references (resource) components.

What problem does it solve? Building reliable background jobs and async workflows requires handling retries, idempotency, concurrency, and scheduling correctly, and mistakes in these areas cause duplicate payments, lost jobs, or broken deployments. ## Core Features & Use Cases - Task Authoring: Create basic and schema-validated tasks using @trigger.dev/sdk with retry policies, machine presets, and structured logging. - Workflow Orchestration: Compose parent/child subtasks, batch triggers up to 1,000 items, debounce rapid triggers, and enforce idempotency keys for critical operations. - Scheduling & Realtime: Define cron-based scheduled tasks with timezone support and subscribe to run status or stream AI output into React frontends. - Use Case: Imagine you need to process uploaded videos with FFmpeg on a schedule and stream progress to a dashboard. This Skill guides you through configuring the FFmpeg build extension, writing the task with retries, and wiring realtime subscriptions. ## Quick Start Ask the AI to create a Trigger.dev schema task with Zod validation, retry configuration, and an idempotency key for processing a specific payload.

Frequently Asked Questions about trigger-dev-tasks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Trigger.dev task with Zod validation?

Use schemaTask from @trigger.dev/sdk and pass a Zod schema in the schema field. The payload is automatically validated and typed before the run function executes, so invalid inputs are rejected before your logic runs.

How do I trigger a Trigger.dev task from backend code?

Import tasks from @trigger.dev/sdk and call tasks.trigger with the task ID and payload, using a type-only import of the task for type safety. This prevents dependency leakage of the SDK into your backend bundle.

Why can't I wrap triggerAndWait in Promise.all in Trigger.dev?

Trigger.dev does not support wrapping triggerAndWait, batchTriggerAndWait, or wait calls in Promise.all or Promise.allSettled because of how the runtime checkpoints execution. Call them sequentially or restructure the workflow into subtasks.

Does Trigger.dev support scheduled cron jobs with timezones?

Yes, schedules.task accepts a cron expression and an IANA timezone such as America/New_York, with DST-aware execution. Schedules can be declared in code or created imperatively via the SDK with deduplication keys.

How do I add FFmpeg or Playwright to Trigger.dev deployments?

Add the corresponding build extension from @trigger.dev/build/extensions to the extensions array in trigger.config.ts. FFmpeg sets FFMPEG_PATH automatically, and Playwright lets you choose browsers like chromium, firefox, or webkit.

What are the batch triggering limits in Trigger.dev?

Batch triggering supports up to 1,000 items per batch with 3MB per payload, and payloads over 512KB are offloaded to object storage automatically. Rate limits and concurrent batch counts depend on your pricing tier.