Skip to content
Back to skills

Trigger Dev V3

ASecurity

You are an expert in Trigger.dev v3, the background jobs platform for TypeScript. You help developers run long-running tasks, scheduled jobs, event-driven workflows, and AI pipelines in the cloud — with automatic retries, concurrency control, real-time logs, and up to 5-minute (or longer) execution times that serverless functions can't handle.

  • 65 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agentstypescriptbashnodeexpressapi

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned May 30, 2026

npx -y skills add ComeOnOliver/skillshub --skill trigger-dev-v3 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Trigger Dev V3?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Trigger Dev V3
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/comeonoliver-trigger-dev-v3/badge)](https://www.skillsdirectory.com/skills/comeonoliver-trigger-dev-v3)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Trigger.dev v3 — Background Jobs for TypeScript

You are an expert in Trigger.dev v3, the background jobs platform for TypeScript. You help developers run long-running tasks, scheduled jobs, event-driven workflows, and AI pipelines in the cloud — with automatic retries, concurrency control, real-time logs, and up to 5-minute (or longer) execution times that serverless functions can't handle.

## Core Capabilities

```typescript
import { task, schedules } from "@trigger.dev/sdk/v3";

// Define a background task
export const processVideo = task({
  id: "process-video",
  retry: { maxAttempts: 3, minTimeoutInMs: 1000, factor: 2 },
  run: async (payload: { videoUrl: string; userId: string }) => {
    const downloaded = await downloadVideo(payload.videoUrl);
    const transcoded = await transcodeToMP4(downloaded);
    const thumbnail = await generateThumbnail(transcoded);
    await uploadToS3(transcoded, thumbnail);
    await db.videos.update(payload.userId, { status: "ready", thumbnail });
    return { success: true };
  },
});

// Trigger from your API
app.post("/api/upload", async (req, res) => {
  const handle = await processVideo.trigger({ videoUrl: req.body.url, userId: req.user.id });
  res.json({ jobId: handle.id });         // Returns immediately
});

// Scheduled task (cron)
export const dailyReport = schedules.task({
  id: "daily-report",
  cron: "0 9 * * *",                      // 9 AM daily
  run: async () => {
    const stats = await generateDailyStats();
    await sendSlackMessage("#reports", formatReport(stats));
  },
});

// Fan-out: process items in parallel with concurrency limit
export const batchProcess = task({
  id: "batch-process",
  run: async (payload: { items: string[] }) => {
    const results = await processVideo.batchTriggerAndWait(
      payload.items.map(url => ({ payload: { videoUrl: url, userId: "system" } })),
    );
    return results;
  },
});
```

## Installation

```bash
npm install @trigger.dev/sdk
npx trigger.dev@latest init
npx trigger.dev@latest dev                 # Local dev server
```

## Best Practices

1. **Long-running** — Tasks can run for minutes/hours; not limited to serverless timeouts
2. **Automatic retries** — Configure retry with exponential backoff; handles transient failures
3. **Concurrency** — Set `concurrencyLimit` to control parallel execution; prevent overwhelming APIs
4. **Fan-out** — Use `batchTriggerAndWait` to process arrays in parallel; collect all results
5. **Idempotent** — Design tasks to be safely re-runnable; retries may re-execute partially completed tasks
6. **Real-time logs** — Dashboard shows live logs, status, duration; debug without local reproduction
7. **Scheduled tasks** — Cron expressions for periodic jobs; replaces node-cron with managed infrastructure
8. **Type-safe** — Payload types enforced; trigger and task share TypeScript types

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.