# trigger-cost-savings

Reads your Trigger.dev tasks, schedules and runs, then points at what costs money: oversized machines, wasted retries, crons firing too often.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2300 installs · ★ 35
- Author: triggerdotdev
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/triggerdotdev/skills/tree/HEAD/trigger-cost-savings/SKILL.md
- Updated: 2026-10-19
- HTML: https://affpapa.org/en/nevibecode/skills/trigger-cost-savings

## What it does

The skill runs in two passes. First it scans source files for tasks pinned to `large-1x` or `large-2x` without an obvious reason, missing `maxDuration`, `maxAttempts` above 5, triggers with no debounce, payment or critical tasks without idempotency keys, `setTimeout`/`setInterval` loops standing in for `wait.for()`, and sequential `triggerAndWait()` calls that could be `batchTriggerAndWait()`. Second, with the Trigger.dev MCP server connected, it looks at live runs through `list_runs`, `get_run_details` and `get_current_worker`: expensive tasks over a period, failures split into transient and permanent, machine utilisation, schedule frequency.

What comes back is a prioritised report with estimated impact — what to change, to what, and which line of code it touches. Fixes arrive as concrete values, like `machine: { preset: "small-2x" }` in place of `large-2x`, or `debounce: { key: ..., delay: "5s" }`.

Live run analysis needs the MCP server. Without those tools the skill tells you to install them with `npx trigger.dev@latest install-mcp` and falls back to static source review; it will not invent run data. One more thing worth knowing: the skill ships inside `@trigger.dev/sdk` and is read straight from `node_modules`, so its advice tracks the SDK version you actually have installed. Update the package and the recommendations update with it.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add triggerdotdev/skills --skill trigger-cost-savings -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/trigger-cost-savings/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/trigger-cost-savings/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add triggerdotdev/skills --skill trigger-cost-savings -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/trigger-cost-savings/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add triggerdotdev/skills --skill trigger-cost-savings -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/trigger-cost-savings/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install triggerdotdev/skills trigger-cost-savings
```

2. **Manually: put the files in place**
- File: `.github/skills/trigger-cost-savings/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add triggerdotdev/skills --skill trigger-cost-savings -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/triggerdotdev/skills --path trigger-cost-savings
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/trigger-cost-savings/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add triggerdotdev/skills --skill trigger-cost-savings -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/triggerdotdev/skills/tree/HEAD/trigger-cost-savings/SKILL.md

## When to use it
- spot tasks burning budget on oversized machines
- add `maxDuration` where no timeout is set
- cut retries on permanent failures with `AbortTaskRunError`
- replace sleep loops with `wait.for()` so waiting stops costing compute
- consolidate bursty triggers into single runs with debounce

## Example prompts
- analyze my Trigger.dev tasks and tell me where I can cut spend
- why did my run costs go up? check the live runs via MCP
- review my schedules and flag the crons that fire too often

## Similar
- [aws-billing-and-cost-management](https://affpapa.org/en/nevibecode/skills/aws-billing-and-cost-management.md) — skill · 9000 installs
- [az-cost-optimize](https://affpapa.org/en/nevibecode/skills/az-cost-optimize.md) — skill · 8700 installs
- [gke-cost-optimization](https://affpapa.org/en/nevibecode/skills/gke-cost-optimization.md) — skill · 5100 installs
- [cx-cost-optimization](https://affpapa.org/en/nevibecode/skills/cx-cost-optimization.md) — skill · 3300 installs
- [llm-cost-optimization](https://affpapa.org/en/nevibecode/skills/llm-cost-optimization.md) — skill · 334 installs
- [aws-cost-optimization](https://affpapa.org/en/nevibecode/skills/aws-cost-optimization.md) — skill · 318 installs

From the same set: [triggerdotdev/skills](https://affpapa.org/en/nevibecode/by/triggerdotdev/skills.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
