Skip to content
agents.store
devdevelopment

trigger-dev

Trigger.dev dev plugin for Agents Store. Comprehensive development knowledge for building background tasks, AI agent workflows, and durable execution on self-hosted Trigger.dev v4 (baseline server 4.4.4; newer features are marked with the server version they need) — SDK patterns, CLI recipes, deployment, full 41-tool MCP reference, TRQL queries and dashboards, managed prompts, chat agents, dev-server control, realtime API, and troubleshooting.

v1.5.7Updated

  • trigger.dev
  • trigger-dev
  • dev
  • agents-store
  • background-jobs
  • task-queue
  • self-hosted
  • durable-execution
  • ai-agents
  • trql
  • managed-prompts
  • observability
  • chat-agents

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install trigger-dev@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (14)

  • ai-agent-patterns

    Build AI agent workflows on Trigger.dev — prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer, and human-in-the-loop. Use when the user asks to "build an AI agent with trigger.dev", "chain LLM calls", "parallelize AI tasks", "create an orchestrator", "add human approval to workflow", or needs patterns for LLM-powered durable execution.

  • ai-chat-agents

    Build durable AI chat agents on Trigger.dev with chat.agent, sessions and the useTriggerChatTransport React transport (requires server 4.5.0 or newer and AI SDK 5+). Use when the user asks about "chat.agent", "trigger.dev chat agent", "AI chat on trigger.dev", "useTriggerChatTransport", "trigger.dev sessions", "start_agent_chat", "human in the loop chat", or migrating a streamText route to Trigger.dev.

  • cli-recipes

    Trigger.dev CLI commands for development, deployment, MCP setup, agent skills, env vars, runs and project management. Use when the user asks about "trigger.dev CLI", "npx trigger.dev", "trigger.dev dev server", "trigger.dev deploy command", "trigger.dev mcp install", "trigger.dev mcp readonly", "trigger.dev skills", "trigger.dev profiles", or needs ready-to-use CLI commands.

  • config-and-build

    Configure Trigger.dev projects with trigger.config.ts, add build extensions for Prisma, Playwright, FFmpeg, Python, or customize deployment settings. Use when the user asks to "configure trigger.config.ts", "add Prisma to trigger.dev", "set up build extensions", "add FFmpeg to tasks", "configure Python in trigger.dev", or needs to customize project configuration.

  • deployment

    Deploy Trigger.dev tasks to staging, production, or preview environments. Use when the user asks to "deploy trigger.dev tasks", "set up CI/CD for trigger.dev", "deploy to production", "deploy self-hosted trigger", "manage environments", or needs deployment workflows and self-hosted infrastructure guidance.

  • examples

    Trigger.dev code examples, end-to-end workflow templates, MCP tool usage patterns, and scenario walkthroughs. Use when the user asks for "trigger.dev examples", "task templates", "MCP tool patterns", "trigger.dev workflow examples", or needs reference implementations.

  • managed-prompts

    Define, version and override Trigger.dev managed prompts — prompts.define() in code, resolve() at runtime, and MCP tools to list, inspect, promote code versions, create dashboard overrides, hotfix, and revert. Use when the user asks about "trigger.dev prompt", "managed prompts", "prompts.define", "prompt version", "prompt override", "hotfix prompt", "promote prompt version", "list prompts", or "revert prompt override".

  • mcp-patterns

    Trigger.dev MCP tools reference — all 41 tools, parameters, usage patterns, and common workflows (CLI 4.7.x). Use when the user asks about "trigger.dev MCP tools", "which trigger.dev tools are available", "how to use trigger.dev MCP", "trigger task via MCP", "list runs MCP", "profile switching", "TRQL queries from MCP", "dev server control", "agent chat via MCP", "mcp readonly", or "managed prompts overrides".

  • observability

    Query Trigger.dev data with TRQL, build dashboards, and inspect automatically-tracked LLM metrics. Use when the user asks about "trigger.dev query", "TRQL", "trigger.dev dashboards", "LLM metrics", "llm_metrics table", "how many runs failed this week", "cost per task", "query runs table", "span details", or "metrics table".

  • realtime

    Subscribe to Trigger.dev task runs in real-time from frontend and backend. Use when the user asks to "show task progress in UI", "stream AI responses", "use trigger.dev React hooks", "subscribe to runs", "build a progress indicator", "use useRealtimeRun", or needs live task status in a React application.

  • scheduled-tasks

    Schedule Trigger.dev tasks with cron — declarative schedules defined on schedules.task, imperative per-user schedules created through the SDK or API, timezones, spreading windows, retries and idempotency of scheduled runs, testing, and why a schedule did not fire. Use when the user asks to "schedule a trigger.dev task", "run a task on a cron", "create a schedule", "dynamic or per-user schedules", "schedules:attach", "attach a schedule to production", "my schedule did not run", or "my cron runs a few minutes late".

  • setup

    Set up Trigger.dev in a project, connect to a self-hosted instance, verify MCP connection, authenticate the CLI, or configure dev/staging/production environments. Use when the user asks to "set up trigger.dev", "init trigger project", "connect to self-hosted trigger", "verify trigger connection", "install trigger.dev", or "configure trigger environments".

  • task-development

    Write Trigger.dev tasks, configure retries, queues, concurrency, waits, metadata, tags, debouncing, idempotency, and use the @trigger.dev/sdk. Use when the user asks to "write a trigger.dev task", "create a background job", "add retries to task", "set up a task queue", "use triggerAndWait", "schedule a cron job", or needs SDK code patterns for Trigger.dev.

  • troubleshoot

    Diagnose and fix Trigger.dev errors, failed runs, deployment issues, and self-hosted problems. Use when the user encounters "trigger.dev not working", "task keeps failing", "deploy failed", "runs stuck", "self-hosted issues", "trigger.dev connection error", or needs to debug Trigger.dev v4.

Commands (4)

  • create-task

    Create a new Trigger.dev task file

  • deploy

    Deploy Trigger.dev tasks to an environment

  • dev

    Start the Trigger.dev dev server

  • init

    Initialize Trigger.dev in the current project

Agents (1)

  • trigger-developer

    Use this agent when the user needs help building with Trigger.dev v4 — writing background tasks, debugging failed runs, designing AI agent workflows, deploying to self-hosted instances, or working with the Trigger.dev SDK/CLI/MCP. <example> Context: User is writing a new background task user: "Help me write a Trigger.dev task that processes uploaded images with FFmpeg and stores results in S3" assistant: "I'll use the trigger-developer agent to build the image processing task." <commentary> Developer needs help writing a Trigger.dev task with specific integrations. </commentary> </example> <example> Context: User is debugging a failed run user: "My trigger.dev task keeps crashing with OOM after processing large files" assistant: "I'll use the trigger-developer agent to diagnose the crash and fix it." <commentary> Developer is debugging task failures — agent can analyze error patterns and suggest machine preset changes. </commentary> </example> <example> Context: User wants to design an AI agent workflow user: "I need a pipeline that scrapes 100 URLs, processes each with AI, and aggregates results" assistant: "I'll use the trigger-developer agent to design the orchestrator-worker pattern." <commentary> Developer needs architectural guidance for a complex parallelized workflow. </commentary> </example>

README

Trigger.dev development plugin for Agents Store. Comprehensive knowledge for developers building background tasks, AI agent workflows, and durable execution on self-hosted Trigger.dev v4.

Skills

SkillDescription
setupProject initialization (incl. non-interactive init --yes), CLI authentication, self-hosted verification, MCP install and mcp --readonly, agent skills
task-developmentWriting tasks — retries, queues, concurrency (incl. the concurrency option, server ≥ 4.7.0), wait tokens, TTL, metadata, tags, Zod schemas, global hooks; starting runs from a Next.js route handler or Server Action, batches, waiting for a result outside a task
scheduled-tasksDeclarative (schedules.task + cron, no attach step) and per-user imperative schedules, timezones, the spread window (server ≥ 4.6.0), ttl, idempotent scheduled runs, testing, why a schedule did not fire
config-and-buildtrigger.config.ts (required maxDuration), build extensions (Prisma with mode, Playwright, FFmpeg, Python), TTL defaults
ai-agent-patternsPrompt chaining, routing, parallelization, orchestrator-workers, evaluator, task-backed AI tools (AI SDK v5+)
ai-chat-agentschat.agent, sessions, useTriggerChatTransport — durable AI chat (server ≥ 4.5.0)
realtimeReact hooks, streaming AI responses, wait tokens, live dashboards; handing a run token to a Next.js browser against a self-hosted server (baseURL, token lifetime, refreshAccessToken)
deploymentDeploy to staging/prod/preview, CI/CD with a pinned CLI, version skew protection, self-hosted Docker (ClickHouse, s2, generated secrets) and Helm
cli-recipesCLI commands — dev server, deploy, profiles, env vars, runs, reports, install-mcp, mcp, agent skills
mcp-patternsAll 41 MCP tools across 13 categories — tasks, runs, deploys, profiles, query/analytics, reports, dev server, managed prompts, agent chat, session channels, feedback; REST Management API
observabilityTRQL queries (runs/metrics/llm_metrics), built-in + custom dashboards, automatic LLM cost tracking, span details
managed-promptsprompts.define() and resolve(), prompt versioning — promote code versions, create/update/remove dashboard overrides, reactivate historical versions
troubleshootCommon errors, self-hosted diagnostics, Docker debugging, TRQL limits
examplesEnd-to-end scenarios: webhook processor, AI pipeline, cron data sync

Agent

trigger-developer — Development specialist agent for building with Trigger.dev. Helps write tasks, debug runs, design workflows, configure builds, and deploy to environments.

Commands

CommandDescription
/trigger-dev:initInitialize Trigger.dev in the current project
/trigger-dev:devStart the dev server
/trigger-dev:deployDeploy tasks to an environment
/trigger-dev:create-taskCreate a new task file from template

Type

Technology Plugin (dev) — No .mcp.json. This plugin provides knowledge about Trigger.dev, not the MCP connection itself.

Prerequisites

  • Node.js 18.20+ and TypeScript 5.0.4+
  • Trigger.dev MCP server configured separately (via npx trigger.dev@latest install-mcp, or by hand)
  • For a read-only agent run the server as trigger.dev mcp --readonly (the installer has no such flag)
  • Self-hosted Trigger.dev v4.4.4+ instance running (webapp + supervisor). 4.4.4 is the baseline; features from 4.5-4.7 are marked "requires server ≥ 4.x.y" in the skills (chat agents and managed prompts in the SDK: 4.5.0; concurrency option: 4.7.0). Keep the CLI and @trigger.dev/* packages at the server's version

Environment Variables

VariableDescriptionFormat
TRIGGER_DEV_SECRET_KEYDev environment secret keytr_dev_xxx
TRIGGER_STAGE_SECRET_KEYStaging environment secret keytr_dev_xxx (different key)
TRIGGER_PROD_SECRET_KEYProduction environment secret keytr_prod_xxx
TRIGGER_SECRET_KEYThe variable the SDK reads: set it to the key of the environment you are targeting (for example the value of TRIGGER_DEV_SECRET_KEY)tr_dev_xxx / tr_prod_xxx
TRIGGER_API_URLSelf-hosted instance URLhttps://trigger.example.com
TRIGGER_PROJECT_REFProject ref from dashboardproj_xxxxx
TRIGGER_ACCESS_TOKENCLI token for CI/CD: a "Deploy only" environment API key (preferred) or a personal access tokentr_pat_xxx

Each environment has its own secret key. The three per-environment variables hold all keys side by side; TRIGGER_SECRET_KEY (what the SDK reads by default) is set to the one for the current environment, or pass the appropriate key to the SDK via configure(). Project ref goes in trigger.config.ts (project field) or use TRIGGER_PROJECT_REF env var.

Key Technologies

  • Platform: Trigger.dev v4 self-hosted (Docker or Helm), baseline server 4.4.4; reference CLI/SDK 4.7.2
  • SDK: @trigger.dev/sdk (import from @trigger.dev/sdk)
  • CLI: npx trigger.dev@latest (dev, deploy, promote, env, runs, projects, report, mcp, install-mcp, skills, whoami, list-profiles, switch, update)
  • MCP: Official MCP server — 41 tools; --readonly and --dev-only are flags of trigger.dev mcp; install it via npx trigger.dev@latest install-mcp
  • React: @trigger.dev/react-hooks (useRealtimeRun, useRealtimeStream)
  • Agent skills: npx trigger.dev@latest skills (5 official skills; install-rules is an alias) or npx skills add triggerdotdev/skills
  • TRQL: SQL-style query language over ClickHouse — tables runs, metrics, llm_metrics

Sources

Content built from official Trigger.dev documentation plus MCP tool-schema introspection:

Related MCP connectors

  • Trigger.dev

    Third party

    Run, deploy and watch Trigger.dev tasks from your agent.

    Trigger.dev