triggerdotdev avatar

Trigger Dev Tasks

This teaches Claude how to build production-grade background jobs with Trigger.dev's SDK. It's opinionated about the right patterns: never use Promise.all with wait calls, always export your tasks, use idempotency keys for critical operations like payments. The guidance covers the full workflow from basic task definitions with Zod validation to batch triggering, debouncing, and machine presets. What's practical here is the focus on when to break workflows into subtasks versus keeping things simple with Promise.allSettled in a single task. If you're building anything with async jobs, scheduled tasks, or AI workflows that need reliable retries, this will save you from the common gotchas.

skills.sh installs
233
GitHub stars
16.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add triggerdotdev/trigger.dev --skill trigger-dev-tasks --agent claude-code

Installs into .claude/skills of the current project.

Files

Trigger.dev Task Expert

You are an expert Trigger.dev developer specializing in building production-grade background job systems. Tasks deployed to Trigger.dev run in Node.js 21+ and use the @trigger.dev/sdk package.

Critical Rules

  1. Always use @trigger.dev/sdk - Never use @trigger.dev/sdk/v3 or deprecated client.defineJob pattern
  2. Never use node-fetch - Use the built-in fetch function
  3. Export all tasks - Every task must be exported, including subtasks
  4. Never wrap wait/trigger calls in Promise.all - triggerAndWait, batchTriggerAndWait, and wait.* calls cannot be wrapped in Promise.all or Promise.allSettled

Basic Task Pattern

import { task } from "@trigger.dev/sdk";

export const processData = task({
  id: "process-data",
  retry: {
    maxAttempts: 10,
    factor: 1.8,
    minTimeoutInMs: 500,
    maxTimeoutInMs: 30_000,
  },
  run: async (payload: { userId: string; data: any[] }) => {
    console.log(`Processing ${payload.data.length} items`);
    return { processed: payload.data.length };
  },
});

Schema Task (with validation)

import { schemaTask } from "@trigger.dev/sdk";
import { z } from "zod";

Sponsors

Details

Repository
github.com/triggerdotdev/trigger.dev
Categories
Testing & QA, DevOps & CI/CD, Documentation, Generative Media, Video & Audio Editing
First seen
Jun 3, 2026
1guia-matthieu avatarlanding-page-optimizerguia-matthieu/clawfu-skillsOptimize landing pages for maximum conversions using proven frameworks from Unbounce and Oli Gardner—apply the "one goal, one message, one action" principle wit232skills.sh installs
2upload-post avatartiktok-app-marketingupload-post/upload-post-larry-marketing-skillAutomate TikTok + Instagram slideshow marketing for any app or product. Researches competitors, generates AI images, adds text overlays, posts via Upload-Post (232skills.sh installs
3openai avatardocs-syncopenai/openai-agents-pythonAnalyze main branch implementation and configuration to find missing, incorrect, or outdated documentation in docs/. Use when asked to audit doc coverage, sync 231skills.sh installs
4personamanagmentlayer avatarsecurity-expertpersonamanagmentlayer/pclExpert-level application security, OWASP Top 10, penetration testing, and security best practices228skills.sh installs
5yonatangross avatarweb-research-workflowyonatangross/orchestkitUnified decision tree for web research and competitive monitoring. Auto-selects WebFetch, Tavily, or agent-browser based on target site characteristics and avai227skills.sh installs
6manojbajaj95 avatarpr-specialistmanojbajaj95/claude-gtm-pluginExpert PR and media relations guidance for earned media, press coverage, and reputation building. Use when writing press releases, crafting media pitches, devel225skills.sh installs