trigger-dev-tasks
Skill16k starsChanged 4 months agoApache-2.0View on GitHub
Use this skill when writing, designing, or optimizing Trigger.dev background tasks and workflows. This includes creating reliable async tasks, implementing AI workflows, setting up scheduled jobs, structuring complex task hierarchies with subtasks, configuring build extensions for tools like ffmpeg or Puppeteer/Playwright, and handling task schemas with Zod validation.
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- agentset-ai/agentsetword for word, first seen Jan 26, 2026
Who's talking about triggerdotdev/trigger.dev
- coollabsio/coolify“[Bug]: Various problems with Trigger template”GitHub · May 16, 2025 · 3 reactions
- @github-trending-js.bsky.social“📦 triggerdotdev / trigger.dev ⭐ 13,747 (+48) 🗒 TypeScript Trigger.dev – build and deploy fully‑managed AI …”Bluesky · Feb 21, 2026 · 2 likes
- @github-trending-js.bsky.social“📦 triggerdotdev / trigger.dev ⭐ 13,027 (+33) 🗒 TypeScript Trigger.dev – build and deploy fully‑managed AI …”Bluesky · Dec 18, 2025 · 2 likes
- @github-trending-js.bsky.social“📦 triggerdotdev / trigger.dev ⭐ 11,333 (+46) 🗒 TypeScript Trigger.dev – open source background jobs and …”Bluesky · Jun 3, 2025 · 2 likes
- coollabsio/coolify“[Bug]: Trigger.dev Error: Build failed: 401 "No authorization header provided"”GitHub · Jan 22, 2025 · 2 reactions
The biggest 5 of 60 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 60
Talked about on GitHub and Bluesky (60 times).
On GitHub · 50
- May 16, 2025[Bug]: Various problems with Trigger template — coollabsio/coolify3 reactions · 3 comments
- Jan 22, 2025[Bug]: Trigger.dev Error: Build failed: 401 "No authorization header provided" — coollabsio/coolify2 reactions · 1 comment
- Jan 8, 2026Strange error (i think) due to some git symlinked file that doesn't exist — nrjdalal/gitpick1 reaction · 2 comments
- Nov 2, 2026chore(deps): bump zod, @chronark/zod-bird, @trigger.dev/python, @trigger.dev/core, @trigger.dev/sdk, @trigger.dev/build and zod-openapi — HeliosEnergy/papermark0 reactions
- Nov 2, 2026chore(deps-dev): bump trigger.dev from 4.8.1 to 4.8.2 in the trigger-dev group — bodkul/faceit-deaf0 reactions · 1 comment
45 more on GitHub
- Nov 1, 2026Bump zod and @trigger.dev/sdk — caameliaz/Psi-dashboard-et-site-vitrine-0 reactions · 1 comment
- Oct 30, 2026The Trigger.dev pin is behind its newest release — Robbes/Ownpace0 reactions
- Oct 28, 2026● relit: triggerdotdev/trigger.dev — 🗺️ Observability Map — fitzyracing1/darks0 reactions · 1 comment
- Oct 26, 2026Bump the weekly group with 5 updates — markmoran/wushu-schools-scraper0 reactions
- Oct 26, 2026● relit: triggerdotdev/trigger.dev — 🦋 Changesets PR — fitzyracing1/darks0 reactions · 1 comment
- Oct 24, 2026Bump zod, @ai-sdk/openai, @trigger.dev/react-hooks, @trigger.dev/sdk and @trigger.dev/build in /vercel-ai-sdk-image-generator — orderofmagnitude1/use-for-smartsheet-examples0 reactions
- Oct 21, 2026The Trigger.dev pin is behind its newest release — Robbes/Ownpace0 reactions · 3 comments
- Oct 20, 2026chore(deps-dev): bump trigger.dev from 4.3.3 to 4.5.9 in the security-development group across 1 directory — Dargon789/ethereum-org-website0 reactions · 2 comments
- Oct 19, 2026Port upstream Trigger.dev self-hosting changes (v4.7.3...v4.8.3) — dodi-smart/coolify-trigger-v40 reactions
- Oct 14, 2026● relit: triggerdotdev/trigger.dev — 🚀 Publish Trigger.dev Docker — fitzyracing1/darks0 reactions · 5 comments
- Oct 13, 2026○ dark: triggerdotdev/trigger.dev — 🛡️ E2E Tests: Webapp Auth (full) — fitzyracing1/darks0 reactions · 1 comment
- Oct 12, 2026Port upstream Trigger.dev self-hosting changes (v4.6.4...v4.7.3) — dodi-smart/coolify-trigger-v40 reactions
- Oct 10, 2026chore(deps-dev): bump trigger.dev from 4.5.1 to 4.5.9 in /clickhouse-chat-agent — triggerdotdev/examples0 reactions · 1 comment
- Oct 10, 2026chore(deps-dev): bump trigger.dev from 4.0.0-v4-beta.0 to 4.5.9 in /article-summary-workflow — triggerdotdev/examples0 reactions · 1 comment
- Oct 10, 2026chore(deps-dev): bump trigger.dev from 3.3.5 to 4.5.9 in /batch-llm-evaluator — triggerdotdev/examples0 reactions · 1 comment
- Oct 10, 2026Bump trigger.dev from 4.0.2 to 4.5.9 in /anchor-browser-web-scraper — orderofmagnitude1/use-for-smartsheet-examples0 reactions
- Oct 10, 2026Bump trigger.dev from 4.1.0 to 4.5.9 in /claude-agent-github-wiki — orderofmagnitude1/use-for-smartsheet-examples0 reactions
- Oct 10, 2026Bump trigger.dev from 4.0.0-v4-beta.0 to 4.5.9 in /article-summary-workflow — orderofmagnitude1/use-for-smartsheet-examples0 reactions
- Oct 10, 2026Bump trigger.dev from 4.3.0 to 4.5.9 in /changelog-generator — orderofmagnitude1/use-for-smartsheet-examples0 reactions
- Oct 10, 2026Bump trigger.dev from 3.3.9 to 4.5.9 in /realtime-csv-importer — orderofmagnitude1/use-for-smartsheet-examples0 reactions
- Oct 10, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 — RothBlueprint/rbp-cal.diy0 reactions · 2 comments
- Oct 10, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 — forky-mcforkface/cal.com0 reactions
- Oct 9, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 in /packages/features — forky-mcforkface/calcom-cal.com0 reactions
- Oct 9, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 in /packages/features — codedeeply/cal.diy0 reactions · 1 comment
- Oct 9, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 — forky-mcforkface/calcom-cal.com-e7578750 reactions
- Oct 9, 2026Bump trigger.dev from 3.3.5 to 4.5.9 in /batch-llm-evaluator — orderofmagnitude1/use-for-smartsheet-examples0 reactions
- Oct 9, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 in /packages/features — RothBlueprint/rbp-cal.diy0 reactions · 2 comments
- Oct 9, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 — forky-mcforkface/calcom-cal.com0 reactions
- Oct 9, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 in /packages/features — forky-mcforkface/cal.com0 reactions
- Oct 9, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 — codedeeply/cal.diy0 reactions · 1 comment
- Oct 9, 2026build(deps-dev): bump trigger.dev from 4.3.3 to 4.5.9 — beaconchain-horizon/ethereum-org-website0 reactions
- Oct 9, 2026Bump trigger.dev from 4.4.3 to 4.5.9 in /packages/jobs — appsmithorg/midday0 reactions
- Oct 9, 2026chore(deps): bump trigger.dev from 4.4.3 to 4.5.9 in /packages/jobs — KB-Helios/midday0 reactions · 2 comments
- Oct 9, 2026chore(deps-dev): bump trigger.dev from 4.3.2 to 4.5.9 in /packages/features — forky-mcforkface/calcom-cal.com-e7578750 reactions
- Oct 5, 2026chore(deps): bump engine.io, @trigger.dev/python, @trigger.dev/core, @trigger.dev/sdk and @trigger.dev/build — HeliosEnergy/papermark0 reactions
- Sep 28, 2026chore(deps): bump the trigger-dev group with 4 updates — renatomf/nextjs-switchboard0 reactions · 2 comments
- Sep 20, 2026chore(deps): bump nanoid and @trigger.dev/sdk — shrikrishna-lab/noska0 reactions · 1 comment
- Sep 5, 2026chore(deps): bump nanoid, @trigger.dev/sdk, @trigger.dev/build and trigger.dev — evanjob2005-ux/savrio-dev-hq0 reactions
- Sep 5, 2026Bump nanoid, @trigger.dev/sdk, @trigger.dev/build and trigger.dev — andrewfowl/compound_app_data_api0 reactions
- Sep 5, 2026chore(deps): bump @trigger.dev/react-hooks from 4.5.12 to 4.6.3 — ameisw667/Casino0 reactions · 1 comment
- Sep 1, 2026Bump engine.io, @trigger.dev/python, @trigger.dev/core, @trigger.dev/sdk and @trigger.dev/build — aebq/papermark0 reactions · 1 comment
- Sep 1, 2026chore(deps): bump engine.io and @trigger.dev/sdk — shrikrishna-lab/noska0 reactions · 1 comment
- Sep 1, 2026chore(deps): bump engine.io, @trigger.dev/python, @trigger.dev/core, @trigger.dev/sdk and @trigger.dev/build — Ai-Systems-Australia/papermark0 reactions
- Sep 1, 2026chore(deps): bump engine.io, @trigger.dev/sdk and @trigger.dev/build in /trigger — Gabrielvilabracho/OCR-Prossesin-System0 reactions
- Sep 1, 2026Bump engine.io, @trigger.dev/sdk, @trigger.dev/build and trigger.dev — andrewfowl/compound_app_data_api0 reactions
On Bluesky · 10
- Feb 21, 2026📦 triggerdotdev / trigger.dev ⭐ 13,747 (+48) 🗒 TypeScript Trigger.dev – build and deploy fully‑managed AI agents and workflows — @github-trending-js.bsky.social2 likes and reposts
- Dec 18, 2025📦 triggerdotdev / trigger.dev ⭐ 13,027 (+33) 🗒 TypeScript Trigger.dev – build and deploy fully‑managed AI agents and workflows — @github-trending-js.bsky.social2 likes and reposts
- Jun 3, 2025📦 triggerdotdev / trigger.dev ⭐ 11,333 (+46) 🗒 TypeScript Trigger.dev – open source background jobs and AI infrastructure — @github-trending-js.bsky.social2 likes and reposts
- Aug 19, 2024📦 triggerdotdev / trigger.dev ⭐ 8,006 (+48) 🗒 TypeScript Trigger.dev is the open source background jobs platform for TypeScript. — @github-trending-js.bsky.social2 likes and reposts
- Dec 12, 2023📦 triggerdotdev / trigger.dev ⭐ 6,072 (+32) 🗒 TypeScript ✨ Trigger.dev is the open source background jobs framework for TypeScript. With… — @github-trending-js.bsky.social2 likes and reposts
5 more on Bluesky
- Apr 25, 2026https://github.com/triggerdotdev/trigger.dev — @tom-doerr.bsky.social1 likes and repost
- Nov 11, 2023📦 triggerdotdev / trigger.dev ⭐ 5,676 (+34) 🗒 TypeScript ✨ Trigger.dev is the open source background jobs framework for TypeScript. With… — @github-trending-js.bsky.social1 likes and repost
- Oct 4, 2023🔥 Hot Repo! 🔥 (100+ new stars) 📦 triggerdotdev / trigger.dev ⭐ 4,774 (+170) 🗒 TypeScript ✨ Trigger.dev is the open source background… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Aug 26, 2023📦 triggerdotdev / trigger.dev ⭐ 4,159 (+52) 🗒 TypeScript ✨ Trigger.dev is an open-source platform to create long-running jobs directly in… — @github-trending-js.bsky.social1 likes and repost
- Aug 27, 2025⭐️ Check out and star our open source GitHub repo here: github.com/triggerdotd... — @triggerdev.bsky.social0 likes and reposts · 1 reply
Other versions1 project uses a version of this.
Word for word · 1
- agentset-ai/agentset★ 2.1k100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/executing-commands.mdcCursor rule
- .cursor/rules/migrations.mdcCursor rule
- .cursor/rules/otel-metrics.mdcCursor rule
- .cursor/rules/repo.mdcCursor rule
- .cursor/rules/webapp.mdcCursor rule
- .cursor/rules/writing-tasks.mdcCursor rule
- .cursor/rules/writing-tests.mdcCursor rule
- drizzleSkill
- errors-api-e2eSkill
- span-timeline-eventsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Always use
@trigger.dev/sdk: - Never use @trigger.dev/sdk/v3 or deprecated client.defineJob pattern - Very specific: line 14
Never use
node-fetch: - Use the built-in fetch function - Distinctive: line 15
Export all tasks: - Every task must be exported, including subtasks
- Distinctive: line 93
Always use idempotency keys when triggering tasks from inside other tasks:
- Distinctive: line 154
Use cases: user activity updates, webhook deduplication, search indexing, notification batching.
- Distinctive: line 189
Group related subtasks: - Keep subtasks only used by one parent in the same file, don't export them
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
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
- Always use
@trigger.dev/sdk- Never use@trigger.dev/sdk/v3or deprecatedclient.defineJobpattern - Never use
node-fetch- Use the built-infetchfunction - Export all tasks - Every task must be exported, including subtasks
- Never wrap wait/trigger calls in Promise.all -
triggerAndWait,batchTriggerAndWait, andwait.*calls cannot be wrapped inPromise.allorPromise.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";
export const validatedTask = schemaTask({
id: "validated-task",
schema: z.object({
name: z.string(),
email: z.string().email(),
}),
run: async (payload) => {
// Payload is automatically validated and typed
return { message: `Hello ${payload.name}` };
},
});Triggering Tasks
From Backend Code (type-only import to prevent dependency leakage)
import { tasks } from "@trigger.dev/sdk";
import type { processData } from "./trigger/tasks";
const handle = await tasks.trigger<typeof processData>("process-data", {
userId: "123",
data: [{ id: 1 }],
});From Inside Tasks
export const parentTask = task({
id: "parent-task",
run: async (payload) => {
// Trigger and wait - returns Result object, NOT direct output
const result = await childTask.triggerAndWait({ data: "value" });
if (result.ok) {
console.log("Output:", result.output);
} else {
console.error("Failed:", result.error);
}
// Or unwrap directly (throws on error)
const output = await childTask.triggerAndWait({ data: "value" }).unwrap();
},
});Idempotency (Critical for Retries)
Always use idempotency keys when triggering tasks from inside other tasks:
import { idempotencyKeys } from "@trigger.dev/sdk";
export const paymentTask = task({
id: "process-payment",
run: async (payload: { orderId: string }) => {
// Scoped to current run - survives retries
const key = await idempotencyKeys.create(`payment-${payload.orderId}`);
await chargeCustomer.trigger(payload, {
idempotencyKey: key,
idempotencyKeyTTL: "24h",
});
},
});Trigger Options
await myTask.trigger(payload, {
delay: "1h", // Delay execution
ttl: "10m", // Cancel if not started within TTL
idempotencyKey: key,
queue: "my-queue",
machine: "large-1x", // micro, small-1x, small-2x, medium-1x, medium-2x, large-1x, large-2x
maxAttempts: 3,
tags: ["user_123"], // Max 10 tags
debounce: { // Consolidate rapid triggers
key: "unique-key",
delay: "5s",
mode: "trailing", // "leading" (default) or "trailing"
},
});Debouncing
Consolidate multiple triggers into a single execution:
// Rapid triggers with same key = single execution
await myTask.trigger({ userId: "123" }, {
debounce: {
key: "user-123-update",
delay: "5s",
},
});
// Trailing mode: use payload from LAST trigger
await myTask.trigger({ data: "latest" }, {
debounce: {
key: "my-key",
delay: "10s",
mode: "trailing",
},
});Use cases: user activity updates, webhook deduplication, search indexing, notification batching.
Batch Triggering
Up to 1,000 items per batch, 3MB per payload:
const results = await myTask.batchTriggerAndWait([
{ payload: { userId: "1" } },
{ payload: { userId: "2" } },
]);
for (const result of results) {
if (result.ok) console.log(result.output);
}Machine Presets
| Preset | vCPU | Memory |
| micro | 0.25 | 0.25GB |
| small-1x | 0.5 | 0.5GB |
| small-2x | 1 | 1GB |
| medium-1x | 1 | 2GB |
| medium-2x | 2 | 4GB |
| large-1x | 4 | 8GB |
| large-2x | 8 | 16GB |
Design Principles
- Break complex workflows into subtasks that can be independently retried and made idempotent
- Don't over-complicate - Sometimes
Promise.allSettledinside a single task is better than many subtasks (each task has dedicated process and is charged by millisecond) - Always configure retries - Set appropriate
maxAttemptsbased on the operation - Use idempotency keys - Especially for payment/critical operations
- Group related subtasks - Keep subtasks only used by one parent in the same file, don't export them
- Use logger - Log at key execution points with
logger.info(),logger.error(), etc.
Reference Documentation
For detailed documentation on specific topics, read these files:
basic-tasks.md- Task basics, triggering, waitsadvanced-tasks.md- Tags, queues, concurrency, metadata, error handlingscheduled-tasks.md- Cron schedules, declarative and imperativerealtime.md- Real-time subscriptions, streams, React hooksconfig.md- trigger.config.ts, build extensions (Prisma, Playwright, FFmpeg, etc.)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

