trigger-dev

trigger-dev is a skill for Claude Code, Codex from ashish7802/awesome-api-skills. It costs 0 tokens per session (533 once invoked), scanned A, original, MIT.

A TypeScript platform for running background jobs outside a web request. It handles tasks that may run for a long time, repeat after failures, process batches, run AI pipelines, or start on a schedule.

In plain words
What is it for?
Use it to define and trigger TypeScript jobs, process videos or other batches, run long AI workflows, retry failed work, and schedule recurring tasks.
Why use it?
It removes the need to fit slow work within normal serverless request time limits. This lets an application move processing out of the request that started it and track it as a separate task.

Skill for Claude CodeCodex

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

Good fit Use it to define and trigger TypeScript jobs, process videos or other batches, run long AI workflows, retry failed work, and schedule recurring tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ashish7802/awesome-api-skills/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 ashish7802/awesome-api-skills --skill trigger-dev
Clone the repo
git clone --depth 1 https://github.com/ashish7802/awesome-api-skills

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-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/trigger-dev/github.svg)](https://agentmods.dev/skills/ashish7802/awesome-api-skills/trigger-dev)
Your own site
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/trigger-dev"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/trigger-dev/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-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/trigger-dev"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/trigger-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 533 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.
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.00000 $0.00533
Opus 5 $0.00000 $0.00267
Sonnet 5 $0.00000 $0.00107
Haiku 4.5 $0.00000 $0.00053

Measured yesterday against content hash 0f9949b45a49, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

trigger-dev 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 yesterday.

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.

skills/trigger-dev/SKILL.md · 73 lines

How it starts

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

Trigger.dev v3 API Skill

Overview

Trigger.dev v3 is a full-featured background jobs platform for TypeScript, enabling long-running tasks (hours), AI generation pipelines, chunked batch jobs, and crons without serverless timeout limits.

Installation

npm install @trigger.dev/sdk@latest

Configuration

// trigger.config.ts
import { defineConfig } from '@trigger.dev/sdk/v3';

export default defineConfig({
  project: 'proj_myproject123',
  runtime: 'node',
  maxDuration: 3600, // 1 hour max execution
});

Task Definition (v3)

// src/trigger/video-processor.ts
import { task, logger } from '@trigger.dev/sdk/v3';

export const processVideoTask = task({
  id: 'process-video-task',
  retry: {
    maxAttempts: 3,
  },
  run: async (payload: { videoUrl: string; quality: '1080p' | '4k' }) => {
    logger.info('Starting video encoding', { url: payload.videoUrl });

    // Execute long-running processing without timeout constraints
    const resultUrl = await encodeVideo(payload.videoUrl, payload.quality);

    logger.info('Video encoding completed', { resultUrl });
    return { success: true, resultUrl };
  },
});

Triggering Tasks from Application Backend

import { tasks } from '@trigger.dev/sdk/v3';
import { processVideoTask } from '@/trigger/video-processor';

// Trigger async job
const handle = await tasks.trigger<typeof processVideoTask>(
  'process-video-task',
  {
    videoUrl: 'https://storage.example.com/raw.mp4',
    quality: '1080p',
  }
);

console.log('Task run ID:', handle.id);

AI Pitfalls & Anti-Hallucination Guidelines

  • v2 vs v3 Architecture: Trigger.dev v3 eliminated HTTP webhook roundtrips and runs direct Node worker processes. Do not use legacy client.defineJob(). Use task({ id, run }).
  • Logging: Use logger.info() from @trigger.dev/sdk/v3 to stream real-time logs to the Trigger.dev dashboard.

Production Verification Checklist

  • trigger.config.ts specifies active project reference
  • Deployments sync tasks via npx trigger.dev@latest deploy
  • Task payload types validated with TypeScript

Read the full file on GitHub · 73 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 73 lines · 0 tokens per session scan A 0f9949b45a49

Subscribe to this mod's changes

trigger-dev is a skill published in the GitHub repository ashish7802/awesome-api-skills (13 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 533 tokens. 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-09-10.

Related

Other skills, from other repositories

composio

Build AI agents and apps with Composio - access 200+ external tools with Tool Router or direct execution.

aAAaqwq/AGI-Super-Team · 26 tokens

event-driven-architecture

Kafka, RabbitMQ, SQS/SNS, event sourcing, CQRS, saga patterns, dead letter queues, and idempotency. Use when designing asynchronous systems, implementing message-driven workflows, or building event streaming pipelines.

travisjneuman/.claude · 50 tokens

edge-computing

Edge computing with Cloudflare Workers, Deno Deploy, Bun, Vercel Edge Functions, AWS Lambda@Edge, and edge databases (Turso, D1, DynamoDB Global Tables). Use when building low-latency edge applications, edge-side rendering, or globally distributed compute.

travisjneuman/.claude · 63 tokens

API Designer

Skill "API Designer" from databayt/hogwarts, covering api design skill, server action pattern and checklist.

databayt/hogwarts · 6 tokens

analyzing-api-gateway-access-logs

Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass, credential scanning, and injection attempts. Uses pandas for statistical analysis of request patterns and anomaly detection. Use when investigating API abuse or building API-specific threat detection rules.

pinkpixel-dev/skills-collection-1 · 72 tokens

mobile-backend-infra

Baseline infrastructure for a mobile backend -- edge caching, feature flags, and multi-region strategy. Use when planning or auditing the deployment shape of a mobile backend.

almasumdev/awesome-mobile-backend-agent-skills · 37 tokens