trigger-cost-savings

द्वारा triggerdotdev

Analyze Trigger.dev tasks, schedules, and runs for cost optimization opportunities. Use when asked to reduce spend, optimize costs, audit usage, right-size…

npx skills add https://github.com/triggerdotdev/trigger.dev --skill trigger-cost-savings

Trigger.dev Cost Savings Analysis

The full, version-pinned cost-audit workflow ships inside your installed @trigger.dev/sdk. Read it before giving recommendations so they match the SDK version in this project:

  • Skill: node_modules/@trigger.dev/sdk/skills/trigger-cost-savings/SKILL.md — the static-analysis checklist, the MCP run-analysis steps (list_runs, get_run_details, get_current_worker), the report format, and the machine-preset cost table.
  • Docs: the canonical guidance is bundled at node_modules/@trigger.dev/sdk/docs/how-to-reduce-your-spend.mdx, with supporting pages under node_modules/@trigger.dev/sdk/docs/ (machines.mdx, runs/max-duration.mdx, queue-concurrency.mdx, idempotency.mdx, triggering.mdx, errors-retrying.mdx).

If those paths don't exist, @trigger.dev/sdk isn't installed yet — install it first. In a non-hoisted layout, resolve the package with node -p "require.resolve('@trigger.dev/sdk/package.json')" and read skills/ + docs/ beside it.

Live run analysis needs the Trigger.dev MCP server (npx trigger.dev@latest install-mcp). Without it, do the static source analysis only — never fabricate run data.

Key principles

  • Waits > 5 seconds are free — checkpointed, no compute charge.
  • Start small, scale up — the default small-1x is right for most tasks; right-size down tasks stuck on large-* with short durations.
  • I/O-bound tasks don't need big machines — API calls and DB queries wait on the network.
  • Add maxDuration — cap runaway compute.
  • Debounce high-frequency triggers — consolidate bursts into single runs.
  • Idempotency keys prevent duplicate billed work.
  • AbortTaskRunError stops wasteful retries — don't pay to retry permanent failures.

References

Sibling skills: trigger-authoring-tasks (the task options these levers tune: machine, maxDuration, retry, queue, idempotency), trigger-realtime-and-frontend, trigger-authoring-chat-agent and trigger-chat-agent-advanced (AI agents).

triggerdotdev की और Skills

trigger-dev-tasks
triggerdotdev
Trigger.dev बैकग्राउंड टास्क और वर्कफ़्लो लिखने, डिज़ाइन करने या ऑप्टिमाइज़ करते समय इस स्किल का उपयोग करें। इसमें विश्वसनीय एसिंक टास्क बनाना, AI लागू करना... शामिल है।
official
trigger-authoring-chat-agent
triggerdotdev
@trigger.dev/sdk/ai से chat.agent के साथ एक टिकाऊ AI चैट एजेंट लिखें और चलाएं: प्रति-टर्न रन लूप, क्यों आपको ...chat.toStreamTextOptions() को फैलाना अनिवार्य है…
official
trigger-agents
triggerdotdev
Trigger.dev के साथ AI एजेंट पैटर्न - ऑर्केस्ट्रेशन, समानांतरीकरण, रूटिंग, मूल्यांकनकर्ता-अनुकूलक, और मानव-इन-द-लूप। LLM-संचालित कार्यों के निर्माण में उपयोग करें…
official
trigger-config
triggerdotdev
trigger.dev प्रोजेक्ट्स को trigger.config.ts के साथ कॉन्फ़िगर करें। Prisma, Playwright, FFmpeg, Python के लिए बिल्ड एक्सटेंशन सेट अप करते समय या डिप्लॉयमेंट को कस्टमाइज़ करते समय उपयोग करें…
official
trigger-cost-savings
triggerdotdev
Trigger.dev कार्यों, अनुसूचियों और रनों का लागत अनुकूलन अवसरों के लिए विश्लेषण करें। जब खर्च कम करने, लागत अनुकूलित करने, उपयोग का ऑडिट करने, सही आकार निर्धारित करने के लिए कहा जाए तो उपयोग करें…
official
trigger-realtime
triggerdotdev
फ्रंटएंड और बैकएंड से Trigger.dev टास्क रन को रीयल-टाइम में सब्सक्राइब करें। प्रोग्रेस इंडिकेटर, लाइव डैशबोर्ड, स्ट्रीमिंग AI/LLM रिस्पॉन्स बनाते समय उपयोग करें,…
official
trigger-setup
triggerdotdev
अपने प्रोजेक्ट में Trigger.dev सेट अप करें। पहली बार Trigger.dev जोड़ते समय, trigger.config.ts बनाते समय, या trigger निर्देशिका को आरंभ करते समय उपयोग करें।
official
trigger-tasks
triggerdotdev
Trigger.dev के साथ AI एजेंट, वर्कफ़्लो और टिकाऊ बैकग्राउंड कार्य बनाएँ। कार्य बनाते समय, जॉब ट्रिगर करते समय, रीट्राइज़ संभालते समय, क्रॉन जॉब शेड्यूल करते समय, या…
official