---
title: "triggerdotdev/skills"
description: "Best practices for building AI agents and background jobs with Trigger.dev. Use when creating durable tasks, scheduling workflows, or integrating with the Trigger.dev SDK."
source: https://github.com/triggerdotdev/skills
ref: main
license: null
licenseName: "No licence detected"
canonical: https://skillsdocs.com/triggerdotdev/skills
base: https://github.com/triggerdotdev/skills/blob/main/
chapters: 6
inlined: 0
withheld: 6
words: 1377
updated: 2026-06-15T11:16:43Z
generator: "Skills Docs"
---

> **triggerdotdev/skills** — every Agent Skill in this repository, inlined verbatim.
>
> Canonical HTML: https://skillsdocs.com/triggerdotdev/skills
> Per-chapter Markdown: https://skillsdocs.com/triggerdotdev/skills/<skill>.md
> Machine manifest: https://skillsdocs.com/triggerdotdev/skills/.well-known/agent-skills/index.json
> JSON: https://skillsdocs.com/api/v1/books/triggerdotdev/skills
> Install: `npx skills add triggerdotdev/skills`
> Upstream: https://github.com/triggerdotdev/skills @ `main`
> Licence: No licence detected — all rights reserved by its authors
>
> Content is mirrored from GitHub and © its authors, served unmodified. Takedown: https://github.com/kyleledbetter/skillsdocs/issues/new?labels=takedown&title=Takedown+request

# triggerdotdev/skills

Best practices for building AI agents and background jobs with Trigger.dev. Use when creating durable tasks, scheduling workflows, or integrating with the Trigger.dev SDK.

- **Chapters:** 6
- **Inlined:** 0 (licence detected)
- **Words:** 1,377
- **Reading time:** 7 min
- **Stars:** 31

## Table of contents

1. [trigger-agents](https://skillsdocs.com/triggerdotdev/skills/trigger-agents.md) — Not licensed for republication — link only.
2. [trigger-config](https://skillsdocs.com/triggerdotdev/skills/trigger-config.md) — Not licensed for republication — link only.
3. [trigger-cost-savings](https://skillsdocs.com/triggerdotdev/skills/trigger-cost-savings.md) — Not licensed for republication — link only.
4. [trigger-realtime](https://skillsdocs.com/triggerdotdev/skills/trigger-realtime.md) — Not licensed for republication — link only.
5. [trigger-setup](https://skillsdocs.com/triggerdotdev/skills/trigger-setup.md) — Not licensed for republication — link only.
6. [trigger-tasks](https://skillsdocs.com/triggerdotdev/skills/trigger-tasks.md) — Not licensed for republication — link only.

## Licence notice

6 of 6 chapters in this book have no licence that we could detect, at either the repository or the skill level. Their bodies are **not** reproduced here and they are **not** listed in the Agent Skills manifest. Read them upstream:

- trigger-agents — https://github.com/triggerdotdev/skills/blob/main/trigger-agents/SKILL.md
- trigger-config — https://github.com/triggerdotdev/skills/blob/main/trigger-config/SKILL.md
- trigger-cost-savings — https://github.com/triggerdotdev/skills/blob/main/trigger-cost-savings/SKILL.md
- trigger-realtime — https://github.com/triggerdotdev/skills/blob/main/trigger-realtime/SKILL.md
- trigger-setup — https://github.com/triggerdotdev/skills/blob/main/trigger-setup/SKILL.md
- trigger-tasks — https://github.com/triggerdotdev/skills/blob/main/trigger-tasks/SKILL.md

## Front matter

_The repository README, verbatim except that relative links are resolved against https://github.com/triggerdotdev/skills/blob/main/._

![Trigger.dev logo](https://content.trigger.dev/github-header-banner.jpg)

# Trigger.dev agent skills

Agent skills for building AI agents, workflows and durable background tasks with [Trigger.dev](https://trigger.dev).

## Installation

```bash
# Install all skills
npx skills add triggerdotdev/skills

# Or install specific skills
npx skills add triggerdotdev/skills --skill trigger-setup
npx skills add triggerdotdev/skills --skill trigger-tasks
npx skills add triggerdotdev/skills --skill trigger-config
npx skills add triggerdotdev/skills --skill trigger-agents
npx skills add triggerdotdev/skills --skill trigger-realtime
npx skills add triggerdotdev/skills --skill trigger-cost-savings
```

## Available Skills

### trigger-setup

Use when getting started with Trigger.dev:

- Installing the SDK
- Running `npx trigger init`
- Creating trigger.config.ts
- Project structure
- First task walkthrough
- Environment variables

### trigger-tasks

Use when creating background jobs, async workflows, or scheduled tasks. Core patterns for building durable tasks:

- Basic and schema-validated tasks
- Triggering tasks (single, batch, with wait)
- Waits and checkpointing
- Concurrency and queues
- Debouncing and idempotency
- Error handling and retries
- Scheduled tasks (cron)
- Metadata and progress tracking

### trigger-config

Use when setting up `trigger.config.ts` or adding build extensions:

- Build extensions (Prisma, Playwright, FFmpeg, Python)
- System packages and additional files
- Environment variable sync
- Telemetry integration
- Global lifecycle hooks

### trigger-agents

Use when building LLM-powered workflows, orchestration, or multi-step AI agents:

- Prompt chaining with validation gates
- Routing (classify → dispatch)
- Parallelization with batch operations
- Orchestrator-workers (fan-out/fan-in)
- Evaluator-optimizer loops
- Human-in-the-loop with waitpoints

### trigger-realtime

Use when subscribing to task runs in real-time from frontend or backend:

- Progress indicators and live dashboards
- React hooks for triggering and monitoring tasks
- Streaming AI/LLM responses to UI
- Wait tokens for human-in-the-loop workflows

### trigger-cost-savings

Use when analyzing tasks and runs for cost optimization. Requires [Trigger.dev MCP tools](https://trigger.dev/docs/mcp-introduction) for run analysis:

- Right-sizing machine presets
- Identifying excessive retries and missing abort conditions
- Finding missing debounce, idempotency, and maxDuration
- Detecting polling loops that should use waitpoints
- Analyzing run data for high-cost tasks and failure patterns
- Schedule frequency review

Install MCP tools: `npx trigger.dev@latest install-mcp`

## What is Trigger.dev?

Trigger.dev is a durable execution platform for AI agents, workflows and background tasks. Long-running TypeScript functions with automatic retries, queuing, and real-time observability.

**Key features:**

- **Durable execution** — Tasks survive restarts and scale automatically
- **Automatic retries** — Exponential backoff with configurable retry policies
- **Concurrency control** — Queues and rate limiting built-in
- **Long waits** — Tasks can wait for up to a year
- **Real-time** — Subscribe to task progress from anywhere
- **Multi-environment** — Dev, staging, and production from one dashboard
- **No infrastructure to manage** — our cloud product is fully managed
- **Open-source** — The platform can also be self-hosted on your own infrastructure

## Resources

- [Documentation](https://trigger.dev/docs)
- [GitHub](https://github.com/triggerdotdev/trigger.dev)
- [Discord](https://trigger.dev/discord)

---

<!-- chapter:begin slug=trigger-agents position=1 -->

## 1. trigger-agents

AI agent patterns with Trigger.dev - orchestration, parallelization, routing, evaluator-optimizer, and human-in-the-loop. Use when building LLM-powered tasks that need parallel workers, approval gates, tool calling, or multi-step agent workflows.

- **Source:** https://github.com/triggerdotdev/skills/blob/main/trigger-agents/SKILL.md
- **Raw:** https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-agents/SKILL.md
- **Markdown:** https://skillsdocs.com/triggerdotdev/skills/trigger-agents.md
- **Licence:** No licence detected — all rights reserved by its authors

Bundled files (4), referenced from this skill's directory:
  - `references/ai-tool.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-agents/references/ai-tool.md
  - `references/orchestration.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-agents/references/orchestration.md
  - `references/streaming.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-agents/references/streaming.md
  - `references/waitpoints.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-agents/references/waitpoints.md

_Body withheld: no licence could be detected for this skill. Read it upstream._

<!-- chapter:end slug=trigger-agents -->

---

<!-- chapter:begin slug=trigger-config position=2 -->

## 2. trigger-config

Configure Trigger.dev projects with trigger.config.ts. Use when setting up build extensions for Prisma, Playwright, FFmpeg, Python, or customizing deployment settings.

- **Source:** https://github.com/triggerdotdev/skills/blob/main/trigger-config/SKILL.md
- **Raw:** https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-config/SKILL.md
- **Markdown:** https://skillsdocs.com/triggerdotdev/skills/trigger-config.md
- **Licence:** No licence detected — all rights reserved by its authors

Bundled files (1), referenced from this skill's directory:
  - `references/config.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-config/references/config.md

_Body withheld: no licence could be detected for this skill. Read it upstream._

<!-- chapter:end slug=trigger-config -->

---

<!-- chapter:begin slug=trigger-cost-savings position=3 -->

## 3. trigger-cost-savings

Analyze Trigger.dev tasks, schedules, and runs for cost optimization opportunities. Use when asked to reduce spend, optimize costs, audit usage, right-size machines, or review task efficiency. Requires Trigger.dev MCP tools for run analysis.

- **Source:** https://github.com/triggerdotdev/skills/blob/main/trigger-cost-savings/SKILL.md
- **Raw:** https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-cost-savings/SKILL.md
- **Markdown:** https://skillsdocs.com/triggerdotdev/skills/trigger-cost-savings.md
- **Licence:** No licence detected — all rights reserved by its authors

Bundled files (1), referenced from this skill's directory:
  - `references/cost-reduction.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-cost-savings/references/cost-reduction.md

_Body withheld: no licence could be detected for this skill. Read it upstream._

<!-- chapter:end slug=trigger-cost-savings -->

---

<!-- chapter:begin slug=trigger-realtime position=4 -->

## 4. trigger-realtime

Subscribe to Trigger.dev task runs in real-time from frontend and backend. Use when building progress indicators, live dashboards, streaming AI/LLM responses, or React components that display task status.

- **Source:** https://github.com/triggerdotdev/skills/blob/main/trigger-realtime/SKILL.md
- **Raw:** https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-realtime/SKILL.md
- **Markdown:** https://skillsdocs.com/triggerdotdev/skills/trigger-realtime.md
- **Licence:** No licence detected — all rights reserved by its authors

Bundled files (1), referenced from this skill's directory:
  - `references/realtime.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-realtime/references/realtime.md

_Body withheld: no licence could be detected for this skill. Read it upstream._

<!-- chapter:end slug=trigger-realtime -->

---

<!-- chapter:begin slug=trigger-setup position=5 -->

## 5. trigger-setup

Set up Trigger.dev in your project. Use when adding Trigger.dev for the first time, creating trigger.config.ts, or initializing the trigger directory.

- **Source:** https://github.com/triggerdotdev/skills/blob/main/trigger-setup/SKILL.md
- **Raw:** https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-setup/SKILL.md
- **Markdown:** https://skillsdocs.com/triggerdotdev/skills/trigger-setup.md
- **Licence:** No licence detected — all rights reserved by its authors

Bundled files (2), referenced from this skill's directory:
  - `references/environment-setup.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-setup/references/environment-setup.md
  - `references/project-structure.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-setup/references/project-structure.md

_Body withheld: no licence could be detected for this skill. Read it upstream._

<!-- chapter:end slug=trigger-setup -->

---

<!-- chapter:begin slug=trigger-tasks position=6 -->

## 6. trigger-tasks

Build AI agents, workflows and durable background tasks with Trigger.dev. Use when creating tasks, triggering jobs, handling retries, scheduling cron jobs, or implementing queues and concurrency control.

- **Source:** https://github.com/triggerdotdev/skills/blob/main/trigger-tasks/SKILL.md
- **Raw:** https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-tasks/SKILL.md
- **Markdown:** https://skillsdocs.com/triggerdotdev/skills/trigger-tasks.md
- **Licence:** No licence detected — all rights reserved by its authors

Bundled files (3), referenced from this skill's directory:
  - `references/advanced-tasks.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-tasks/references/advanced-tasks.md
  - `references/basic-tasks.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-tasks/references/basic-tasks.md
  - `references/scheduled-tasks.md` — https://raw.githubusercontent.com/triggerdotdev/skills/main/trigger-tasks/references/scheduled-tasks.md

_Body withheld: no licence could be detected for this skill. Read it upstream._

<!-- chapter:end slug=trigger-tasks -->
