trigger-dev — Claude Code skill: what it does, how to install
Guides the agent in building background jobs, cron triggers, and async AI workflows using Trigger.dev in TypeScript projects.
npx claude-code-templates@latest --skill workflow-automation/trigger-devWhat trigger-dev does
This skill provides guidance for orchestrating asynchronous jobs with Trigger.dev in TypeScript and Next.js applications. It directs the assistant to split monolithic tasks into manageable units, attach cron triggers, and handle batch workloads. For AI flows, it shows how to use OpenAI integrations with automatic retry support.
The instructions prevent typical deployment pitfalls. The configuration file trigger.config.ts must stay at the root of the package. Payloads require plain serializable objects, because complex instances trigger silent failures. The instructions also set queue concurrency limits and require idempotency keys to protect downstream services during retries.
What it helps with
- configure background tasks for Next.js applications
- run multi-minute AI generation workflows with retry mechanisms
- schedule recurring maintenance jobs via cron
- protect downstream endpoints using queue concurrency caps
Example prompts for the agent
- Create a scheduled cron task using Trigger.dev in my Next.js project
- Write a background job that calls OpenAI and handles retries with idempotency
- Set up queue concurrency limits for our data import workflow
How to install trigger-dev
1claude-code-templates
npx claude-code-templates@latest --skill workflow-automation/trigger-dev2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill trigger-dev -a claude-code3Manually: put the files in place
~/.claude/skills/trigger-dev/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/trigger-dev/
Manually: put the files in place
.agents/skills/trigger-dev/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/trigger-dev/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates trigger-dev2Manually: put the files in place
.github/skills/trigger-dev/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/workflow-automation/trigger-devManually: put the files in place
.devin/skills/trigger-dev/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about trigger-dev
How to install trigger-dev in Claude Code?
Run npx claude-code-templates@latest --skill workflow-automation/trigger-dev in your terminal.
What does the trigger-dev skill do?
It instructs the assistant on implementing background tasks, scheduled triggers, and AI pipelines within TypeScript codebases.
What causes silent failures in Trigger.dev tasks?
Passing non-serializable data in the payload leads to silent execution failures, so you must pass only plain objects.