Best practices for building AI agents and background jobs with Trigger.dev.
6 chapters · 7 minutes · 1,377 words
npx skills add triggerdotdev/skills
Agent skills for building AI agents, workflows and durable background tasks with Trigger.dev (opens in a new tab).
# Install all skills
npx skills add triggerdotdev/skills
# Or install specific skills
npx skills add triggerdotdev/skills --skill trigger-setup
npx skills add triggerdotdev/skills --skill trigger-tasks
npx skills add triggerdotdev/skills --skill trigger-config
npx skills add triggerdotdev/skills --skill trigger-agents
npx skills add triggerdotdev/skills --skill trigger-realtime
npx skills add triggerdotdev/skills --skill trigger-cost-savingsUse when getting started with Trigger.dev:
npx trigger initUse when creating background jobs, async workflows, or scheduled tasks. Core patterns for building durable tasks:
Use when setting up trigger.config.ts or adding build extensions:
Use when building LLM-powered workflows, orchestration, or multi-step AI agents:
Use when subscribing to task runs in real-time from frontend or backend:
Use when analyzing tasks and runs for cost optimization. Requires Trigger.dev MCP tools (opens in a new tab) for run analysis:
Install MCP tools: npx trigger.dev@latest install-mcp
Trigger.dev is a durable execution platform for AI agents, workflows and background tasks. Long-running TypeScript functions with automatic retries, queuing, and real-time observability.
Key features:
main, last pushed 15 June 2026.SKILL.md, not by matching a directory convention. One layout observed: */SKILL.md.h1 and no skipped levels:/triggerdotdev/skills.md, and each chapter at its own .md URL.