trigger-cost-savings
Audit and optimize Trigger.dev costs by analyzing static code and live run data.
Install
mkdir -p .claude/skills/trigger-cost-savings && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18562" && unzip -o skill.zip -d .claude/skills/trigger-cost-savings && rm skill.zipInstalls to .claude/skills/trigger-cost-savings
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Analyze Trigger.dev tasks, schedules, and runs for cost optimization opportunities. Use when asked to reduce spend, optimize costs, audit usage, right-size machines, or review task efficiency. Combines static source analysis with live run analysis via the Trigger.dev MCP tools (list_runs, get_run_details, get_current_worker).Key capabilities
- →Analyze Trigger.dev tasks, schedules, and runs for cost optimization
- →Identify opportunities to reduce cloud spend
- →Suggest machine right-sizing for tasks
- →Improve task efficiency through `maxDuration`, debounce, and idempotency
- →Review run data for cost-saving opportunities
How it works
The skill combines static source analysis with live run analysis via Trigger.dev MCP tools to identify cost optimization opportunities in task execution.
Inputs & outputs
When to use trigger-cost-savings
- →Reducing cloud infrastructure spend
- →Auditing Trigger.dev task efficiency
- →Right-sizing workers for specific task loads
- →Reviewing run data for cost-saving opportunities
About this skill
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 undernode_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-1xis right for most tasks; right-size down tasks stuck onlarge-*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.
AbortTaskRunErrorstops 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).
When not to use it
- →When `@trigger.dev/sdk` is not installed
- →When the Trigger.dev MCP server is not running for live run analysis
- →When fabricating run data is acceptable without MCP
Limitations
- →Requires `@trigger.dev/sdk` to be installed to access the cost-audit workflow and documentation
- →Live run analysis requires the Trigger.dev MCP server (`npx trigger.dev@latest install-mcp`)
- →Cannot fabricate run data without the MCP server
How it compares
This skill provides a structured approach to cost optimization specifically for Trigger.dev tasks, use both static code analysis and live execution data to offer tailored recommendations.
Compared to similar skills
trigger-cost-savings side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| trigger-cost-savings (this skill) | 0 | 17d | No flags | Intermediate |
| omh | 0 | 2mo | Review | Beginner |
| posthog-automation | 0 | 3mo | No flags | Intermediate |
| feishu-drive | 3 | 5mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
omh
netil
Generate oh-my-hi dashboard. Visual catalog and usage/token analysis of skills, agents, plugins, hooks, memory, MCP servers, rules, and principles. Triggered by "/omh", "harness status", "dashboard", etc.
posthog-automation
Anhvu1107
ALWAYS use this when the request matches Posthog Automation: Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations.
feishu-drive
openclaw
Feishu cloud storage file management. Activate when user mentions cloud space, folders, drive.
calculator
Code-and-Sorts
Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.
speech-to-text
benchflow-ai
Transcribe video to timestamped text using Whisper tiny model (pre-installed).
transactionsyncing
AojdevStudio
Import Fidelity transaction history CSV into Google Sheets with smart categorization. USE WHEN user mentions "sync transactions", "import transactions", "transaction history", OR wants to import Fidelity History CSV. Routes debit card purchases to Expense Tracker with auto-categorization.