trigger-cost-savings

tarafından 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 tarafından daha fazla skill

trigger-dev-tasks
triggerdotdev
Trigger.dev arka plan görevleri ve iş akışlarını yazarken, tasarlarken veya optimize ederken bu beceriyi kullanın. Bu, güvenilir asenkron görevler oluşturmayı, yapay zeka uygulamayı… içerir.
official
trigger-authoring-chat-agent
triggerdotdev
@trigger.dev/sdk/ai ile chat.agent kullanarak dayanıklı bir AI sohbet ajanı yazın ve çalıştırın: her turdaki çalışma döngüsü, neden ...chat.toStreamTextOptions()'ı yaymanız GEREKTİĞİ…
official
trigger-agents
triggerdotdev
Trigger.dev ile AI ajan desenleri - orkestrasyon, paralelleştirme, yönlendirme, değerlendirici-optimize edici ve insan döngüde. LLM destekli görevler oluştururken kullanın…
official
trigger-config
triggerdotdev
trigger.config.ts ile Trigger.dev projelerini yapılandırın. Prisma, Playwright, FFmpeg, Python için derleme uzantıları kurarken veya dağıtımı özelleştirirken kullanın…
official
trigger-cost-savings
triggerdotdev
Trigger.dev görevlerini, zamanlamalarını ve çalıştırmalarını maliyet optimizasyonu fırsatları için analiz edin. Harcamaları azaltmak, maliyetleri optimize etmek, kullanımı denetlemek, doğru boyutlandırmak istendiğinde kullanın…
official
trigger-realtime
triggerdotdev
Trigger.dev görev çalıştırmalarına ön uç ve arka uçtan gerçek zamanlı olarak abone olun. İlerleme göstergeleri, canlı panolar, akış yapan AI/LLM yanıtları oluştururken kullanın,…
official
trigger-setup
triggerdotdev
Projenizde Trigger.dev'i kurun. Trigger.dev'i ilk kez eklerken, trigger.config.ts oluştururken veya trigger dizinini başlatırken kullanın.
official
trigger-tasks
triggerdotdev
Trigger.dev ile AI ajanları, iş akışları ve dayanıklı arka plan görevleri oluşturun. Görevler oluştururken, işleri tetiklerken, yeniden denemeleri yönetirken, cron işlerini planlarken veya…
official