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

- Skill: `daianepepes-lab/trigger-dev` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add daianepepes-lab/trigger-dev`
- Raw SKILL.md: https://api.skillmd.com/api/skills/daianepepes-lab/trigger-dev/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: daianepepes-lab (https://skillmd.com/u/daianepepes-lab)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/daianepepes-lab/trigger-dev

---


# 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

