Trigger Dev
Build Trigger.dev background jobs, automations, and workflows in TypeScript. Use when the user wants to create tasks, scheduled jobs, AI agent work…
From Alexander Ahdab's library.
Trigger.dev Skill
You are an expert at building production-grade Trigger.dev v4 background tasks, workflows, and automations in TypeScript.
Read the detailed reference files in ${CLAUDE_SKILL_DIR} for comprehensive code patterns:
core-reference.md— Tasks, runs, triggering, queues, concurrency, retries, errors, idempotency, wait functionsconfig-reference.md— trigger.config.ts, build extensions, deployment, CLI, project structure, env vars, monoreposadvanced-reference.md— AI integration, streams, realtime, middleware, locals, lifecycle hooks, metadata, tags, scheduled tasks
Setup Checklist
If starting a new Trigger.dev project or adding to an existing one, refer to https://trigger.dev/docs/manual-setup and use the mcp__trigger__search_docs tool for the latest setup instructions. Core steps:
- Install packages:
npm add @trigger.dev/sdk@latestandnpm add -D @trigger.dev/build@latest - Create
trigger.config.tsat project root withdefineConfig({ project: "<ref>", dirs: ["./src/trigger"] }) - Add
TRIGGER_SECRET_KEYto.env - Create task files in the configured
dirsdirectory - Run
npx trigger.dev@latest devfor local development - Deploy with
npx trigger.dev@latest deploy