trigger-cost-savings

trigger-cost-savings is a skill for Claude Code, Codex from triggerdotdev/trigger.dev. It costs 68 tokens per session (583 once invoked), scanned A, original, Apache-2.0.

A cost-audit guide for Trigger.dev, a service that runs background tasks and scheduled jobs. It reviews code and, when connected, details from real task runs.

In plain words
What is it for?
Use it to review Trigger.dev task costs, machine sizes, run duration, schedules, retries, queues, and concurrency, then produce cost-saving recommendations.
Why use it?
It helps find unnecessary spending caused by oversized machines, inefficient tasks, long runs, or unsuitable schedules. Without live access, it reports only what can be learned from the source code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review Trigger.dev task costs, machine sizes, run duration, schedules, retries, queues, and concurrency, then produce cost-saving recommendations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/triggerdotdev/trigger.dev/trigger-cost-savings
About the project

Trigger.dev is an open-source TypeScript platform for running long-lived AI workflows and background tasks. Developers use it for jobs and agents that need queues, retries, schedules, human approval, monitoring, or resources such as browsers and Python scripts. The catalogue entries provide instructions, skills, agents, and commands for working with this platform.

triggerdotdev/trigger.dev · 16,558 stars · on GitHub · trigger.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add triggerdotdev/trigger.dev --skill trigger-cost-savings
Clone the repo
git clone --depth 1 https://github.com/triggerdotdev/trigger.dev

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for trigger-cost-savings

README.md
[![agentmods](https://agentmods.dev/badge/skills/triggerdotdev/trigger.dev/trigger-cost-savings/github.svg)](https://agentmods.dev/skills/triggerdotdev/trigger.dev/trigger-cost-savings)
Your own site
<a href="https://agentmods.dev/skills/triggerdotdev/trigger.dev/trigger-cost-savings"><img src="https://agentmods.dev/badge/skills/triggerdotdev/trigger.dev/trigger-cost-savings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for trigger-cost-savings

Your own site · 80×15
<a href="https://agentmods.dev/skills/triggerdotdev/trigger.dev/trigger-cost-savings"><img src="https://agentmods.dev/badge/skills/triggerdotdev/trigger.dev/trigger-cost-savings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 16
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium MCP Rug Pull · line 21
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00583
Opus 5.5 $0.00027 $0.00233
Sonnet 5.5 $0.00014 $0.00117
Haiku 4.5 $0.00007 $0.00058

Measured 1mo ago against content hash 3c5b38eaf140, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trigger-cost-savings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/cli-v3/skills/trigger-cost-savings/SKILL.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 36 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 36 lines · 68 tokens per session scan A 3c5b38eaf140

Subscribe to this mod's changes

trigger-cost-savings is a skill published in the GitHub repository triggerdotdev/trigger.dev (16,558 stars, last pushed today), licensed Apache-2.0. It adds 68 tokens to every session and 583 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

aws-iam

Provides verified corrections for IAM behaviors that AI agents frequently get wrong — policy evaluation edge cases, trust policy gotchas, STS session limits, Organizations quirks, and SAML/MFA specifics. Also provides structured workflows for IAM role management and baseline policy generation from application source…

TracecatHQ/tracecat · 194 tokens

aws-incident-response

Investigate AWS credential compromise, STS session abuse, and API breaches; produce an evidence-backed timeline, containment plan, and incident handoff.

TracecatHQ/tracecat · 34 tokens

skypilot-multi-cloud-orchestration

Multi-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage spot instances with auto-recovery, or optimize GPU costs across providers.

davila7/claude-code-templates · 51 tokens

migrating-world-v4-to-v5

Upgrades a custom Workflow SDK World implementation from the v4 spec to v5. Use when a package implements the World interface from @workflow/world and is moving to 5.x — event IDs that are ULIDs rather than slot positions, Event id is not slot-numbered at replay time, a specVersion the runtime refuses, writeToStream /…

vercel/workflow · 166 tokens

modal-serverless-gpu

Run approved CPU or GPU work through OpenScience computejob on the user's configured Modal account. Use for isolated scientific scripts, dependency provisioning, durable outputs, logs, status, cancellation, and recovery. Never invoke the Modal SDK or CLI directly.

synthetic-sciences/openscience · 54 tokens

atmos-terraform

Terraform and OpenTofu orchestration: plan/apply/deploy, workspace management, backend config, varfile generation, authentication, binary selection (terraform/tofu), mixed-binary setups.

cloudposse/atmos · 42 tokens