trigger-agents

Implement AI agent orchestration patterns with Trigger.dev durable task execution.

Updated Sep 11, 2026
One-click install
npx skills add https://github.com/celeroncoder/skills --skill trigger-agents-celeroncoder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: trigger-agents
Source: https://github.com/celeroncoder/skills/tree/main/trigger-agents
Command: npx skills add https://github.com/celeroncoder/skills --skill trigger-agents-celeroncoder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @trigger.dev/sdk, ai, @ai-sdk/openai, zod, @trigger.dev/react-hooks, and includes references (resource) components.

What problem does it solve? Building LLM-powered workflows that need parallel execution, human approval gates, or multi-step coordination is hard to get right with plain async code. This Skill provides proven patterns for orchestrating AI agents on Trigger.dev with durable execution, typed batch results, and real-time streaming. ## Core Features & Use Cases - Agent Patterns: Implement prompt chaining, routing, parallelization, orchestrator-workers, and evaluator-optimizer loops using Trigger.dev tasks and the Vercel AI SDK. - Human-in-the-Loop: Pause tasks with waitpoints for Slack approvals, webhook callbacks, or frontend confirmation before continuing execution. - Realtime Streaming: Pipe AI completions and progress updates from tasks to React frontends using typed streams and hooks. - LLM Tool Calling: Convert schemaTask definitions into AI SDK tools so models can autonomously call your tasks. - Use Case: Build a fact-checking pipeline that extracts claims from an article, verifies each claim in parallel with batch.triggerByTaskAndWait, waits for human approval, and streams progress to a dashboard. ## Quick Start Ask the agent to build a Trigger.dev task that runs multiple LLM calls in parallel and aggregates the typed results.

Frequently Asked Questions about trigger-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run multiple LLM calls in parallel with Trigger.dev?▼

Use batch.triggerByTaskAndWait to trigger multiple tasks simultaneously and receive typed results. Destructure the runs array, check each run's ok flag, and access typed output for successful runs.

How do I add human approval to an AI agent workflow?▼

Create a waitpoint token with wait.createToken, send the approval link to Slack or email, then call wait.forToken to pause execution until a human completes the token. Set a timeout and handle the not-ok result gracefully.

Can I use Trigger.dev tasks as tools for the Vercel AI SDK?▼

Yes, convert a schemaTask to an AI SDK tool with ai.tool and pass it to generateText. The task must use schemaTask with a Zod schema; regular task definitions without schemas are not supported.

How do I stream AI completions from Trigger.dev to React?▼

Define a typed stream with streams.define, append chunks inside the task, and subscribe on the frontend with useRealtimeStream or useRealtimeRunWithStreams. Child tasks can bubble emissions to the parent using the target parent option.

Why does batch.triggerByTaskAndWait fail type checking with mixed tasks?▼

Mixed task types return a union of run results, so filter by taskIdentifier and narrow with the ok flag before accessing output. Destructuring works cleanly when the task count and order are known.