Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Trigger Dev

ASecurity

Build reliable background jobs with Trigger.dev: task definition, scheduling, retries, and observability. Use when adding durable background work to a TypeScript application.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentstypescriptrustgonextjstestingdebuggingapi

Works with

api

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill trigger-dev --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Trigger Dev?

Add the live security badge to your README — it updates automatically with every re-scan.

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

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

Download with Pro
Files
SKILL.md
---
name: trigger-dev
description: Build reliable background jobs with Trigger.dev: task definition, scheduling, retries, and observability. Use when adding durable background work to a TypeScript application.
category: workflow-automation
---

# Trigger.dev

## Overview

Trigger.dev is an open-source background job platform for TypeScript: define tasks in code, trigger via events/schedules, get retries and observability built in.

It solves the classic pain: background work (emails, webhooks, data syncs, AI pipelines) that's reliable, visible, and retryable — without building job infrastructure.

Model: tasks as code, runs as durable executions, dashboard for monitoring, schedules and event triggers built in.

## When to use

- Adding background jobs to a TypeScript/Next.js app
- Replacing fragile cron scripts or queue DIY
- Scheduled tasks (reports, syncs, cleanups) with monitoring
- Event-driven workflows (on signup -> onboard sequence)
- Long-running tasks (AI pipelines, video processing, bulk ops)

## Core concepts

- **Tasks as code.**
  Define tasks with schemas (e.g., zod) for type-safe payloads. Tasks live with your app code — versioned, reviewed, tested like the rest.
- **Triggers.**
  Event triggers (from your app), schedules (cron), and manual. One task, multiple trigger sources — reuse the logic.
- **Retries and idempotency.**
  Automatic retries with backoff; design task bodies idempotent (safe on retry). Use idempotency keys for external side effects.
- **Concurrency and queues.**
  Control parallelism per task; queues for ordering and rate-limiting. Protect downstream APIs from thundering herds.
- **Runs dashboard.**
  Every execution visible: inputs, logs, timing, retries. Debugging production jobs without SSH-ing into servers.
- **Schedules.**
  Cron-like scheduling with timezone support. Replace scattered cron jobs with visible, monitored scheduled tasks.
- **Environments.**
  Dev/staging/prod separation for tasks. Test tasks safely before they touch production data.
- **Self-hosting option.**
  Open source — self-host for data control. Managed cloud for zero ops. Choose by your constraints.

## Practical workflow

1. **Identify background work.**
   List: what runs async today (crons, scripts, queue hacks)? What should? Prioritize by pain (failures, invisibility).
2. **Define tasks.**
   One task per job with typed payload schema. Name clearly (`send-welcome-email`, `sync-crm-contacts`). Keep tasks focused.
3. **Wire triggers.**
   Events from app code, schedules for periodic work. Start with one trigger per task; add more as patterns emerge.
4. **Build idempotent bodies.**
   Each task: validate input, check-before-act where possible, external calls with idempotency keys, structured logging.
5. **Configure retries/queues.**
   Retry policy per task criticality; concurrency limits protecting downstream APIs; queues where ordering matters.
6. **Test in dev.**
   Run tasks locally/with dev environment using real-shaped payloads. Verify retries by simulating failures.
7. **Deploy and monitor.**
   Ship with dashboard bookmarks; set up failure alerts to a watched channel. First week: watch runs closely.
8. **Migrate crons gradually.**
   Move one cron/script at a time. Keep old and new running in parallel briefly; verify parity, then cut over.

## Common pitfalls

- **Non-idempotent tasks.**
  Retries creating duplicate emails/charges/records. Idempotency isn't optional with automatic retries.
- **No payload validation.**
  Untrusted event data crashing tasks. Schema-validate at the boundary, every time.
- **Unbounded concurrency.**
  1,000 parallel tasks hammering a rate-limited API. Concurrency limits and queues exist — use them.
- **Ignoring the dashboard.**
  Failures visible in the dashboard, nobody watching. Alerts to a real channel, reviewed daily.
- **Cron sprawl migration.**
  Moving 30 crons at once. One at a time, verified, or you'll debug 30 new failure modes simultaneously.
- **Secrets in task code.**
  API keys hardcoded in task definitions. Environment secrets, never in code or logs.
- **No dev/prod separation.**
  Testing tasks against production data/APIs. Environments exist for a reason — use them.
- **Fire-and-forget events.**
  Triggering without confirming the task ran. For critical flows, verify completion or alert on absence.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →