All skills

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…

Websites, reels and sales3 min read

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 functions
  • config-reference.md — trigger.config.ts, build extensions, deployment, CLI, project structure, env vars, monorepos
  • advanced-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:

  1. Install packages: npm add @trigger.dev/sdk@latest and npm add -D @trigger.dev/build@latest
  2. Create trigger.config.ts at project root with defineConfig({ project: "<ref>", dirs: ["./src/trigger"] })
  3. Add TRIGGER_SECRET_KEY to .env
  4. Create task files in the configured dirs directory
  5. Run npx trigger.dev@latest dev for local development
  6. Deploy with npx trigger.dev@latest deploy

Free, for your email

Unlock the full skill and get it by email

The rest opens right here, and a copy comes to your inbox too. One email unlocks every guide and every skill. Use your real address.

Unlocks: Core Patterns · Basic Task · Schema-Validated Task · Scheduled Task (Cron) · Trigger from Backend · Trigger from Inside a Task · Critical Rules · Machine Presets

No spam. Reply "unsubscribe" any time and I delete your address.