trigger-cost-savings

Analiza las tareas, programaciones y ejecuciones de Trigger.dev para identificar oportunidades de optimización de costos. Úsalo cuando se te pida reducir gastos, optimizar costos, auditar el uso, ajustar…

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).

Más skills de triggerdotdev

trigger-dev-tasks
triggerdotdev
Usa esta habilidad al escribir, diseñar u optimizar tareas y flujos de trabajo en segundo plano de Trigger.dev. Esto incluye crear tareas asíncronas confiables, implementar IA…
official
trigger-authoring-chat-agent
triggerdotdev
Crea y ejecuta un agente de chat de IA duradero con chat.agent de @trigger.dev/sdk/ai: el bucle de ejecución por turno, por qué DEBES propagar ...chat.toStreamTextOptions()…
official
trigger-agents
triggerdotdev
Patrones de agente de IA con Trigger.dev: orquestación, paralelización, enrutamiento, evaluador-optimizador y humano en el bucle. Úselo al construir tareas impulsadas por LLM…
official
trigger-config
triggerdotdev
Configura proyectos de Trigger.dev con trigger.config.ts. Úsalo al configurar extensiones de compilación para Prisma, Playwright, FFmpeg, Python o al personalizar el despliegue…
official
trigger-cost-savings
triggerdotdev
Analizar tareas, horarios y ejecuciones de Trigger.dev para identificar oportunidades de optimización de costos. Úsalo cuando te pidan reducir gastos, optimizar costos, auditar el uso, ajustar recursos…
official
trigger-realtime
triggerdotdev
Suscríbete a las ejecuciones de tareas de Trigger.dev en tiempo real desde el frontend y el backend. Úsalo al construir indicadores de progreso, paneles en vivo, respuestas de transmisión de IA/LLM,…
official
trigger-setup
triggerdotdev
Configura Trigger.dev en tu proyecto. Úsalo al agregar Trigger.dev por primera vez, crear trigger.config.ts o inicializar el directorio trigger.
official
trigger-tasks
triggerdotdev
Construye agentes de IA, flujos de trabajo y tareas de fondo duraderas con Trigger.dev. Úsalo al crear tareas, activar trabajos, manejar reintentos, programar trabajos cron, o…
official