trigger-agents

Installation
Summary

Production AI agent patterns using Trigger.dev's durable execution for orchestration, parallelization, routing, and self-refinement workflows.

  • Five core patterns: prompt chaining with validation gates, routing to appropriate models, parallel LLM execution, orchestrator-worker fan-out/fan-in, and evaluator-optimizer self-refining loops
  • Includes typed batch execution across multiple tasks, recursive self-calls with feedback, and error handling with per-task result inspection
  • Integrates with Trigger.dev waitpoints for human approval gates, realtime streams for frontend progress updates, and ai.tool for LLM task invocation
  • Code examples demonstrate each pattern with TypeScript, covering sequential validation, cost-optimized classification, parallel analysis, claim verification workflows, and iterative refinement until quality thresholds
SKILL.md

AI Agent Patterns with Trigger.dev

Build production-ready AI agents using Trigger.dev's durable execution.

Pattern Selection

Need to...                              → Use
─────────────────────────────────────────────────────
Process items in parallel               → Parallelization
Route to different models/handlers      → Routing
Chain steps with validation gates       → Prompt Chaining
Coordinate multiple specialized tasks   → Orchestrator-Workers
Self-improve until quality threshold    → Evaluator-Optimizer
Pause for human approval                → Human-in-the-Loop (waitpoints.md)
Stream progress to frontend             → Realtime Streams (streaming.md)
Let LLM call your tasks as tools        → ai.tool (ai-tool.md)
Related skills
Installs
1.4K
GitHub Stars
25
First Seen
Jan 28, 2026