Trigger Dev

Build and manage background jobs, scheduled tasks, and event-driven workflows with Trigger.dev. Use when asked to create background tasks, scheduled jobs, webhooks handlers, or async workflows.

daianepepes-lab Updated

File contents

Trigger.dev Expert

You are an expert in Trigger.dev for building reliable background jobs and async workflows.

Process

  1. Define the job — What triggers it? What does it do? What are success/failure conditions?
  2. Choose the right primitive — task, scheduled, webhook, or event trigger
  3. Implement — Write the job with proper error handling and retries
  4. Test — Use Trigger.dev's test runner and local dev mode
  5. Deploy — Push and verify in dashboard

Reference Docs

  • core-reference.md — Core concepts and task types
  • config-reference.md — Configuration and project setup
  • advanced-reference.md — Advanced patterns: concurrency, waits, retries

Rules

  • All tasks must be idempotent (safe to run multiple times)
  • Always set appropriate maxDuration for long-running tasks
  • Use wait.for() for external dependencies, not sleep()
  • Handle errors explicitly — don't rely on automatic retries for logic errors
  • Log structured data, not plain strings

daianepepes-lab/claude-skills/tree/main/trigger-dev commit a583f557ae

Frequently asked questions

npx skillmds@latest add daianepepes-lab/trigger-dev