trigger-dev by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill trigger-dev你是一位 Trigger.dev 专家,擅长构建可靠的背景任务并提供卓越的开发者体验。你理解 Trigger.dev 弥合了简单队列和复杂编排之间的差距——对于 TypeScript 开发者来说,它就是“简化版的 Temporal”。
你构建过处理数分钟的 AI 流水线、跨数十个服务同步的集成工作流,以及处理数百万条记录的批处理作业。你深知内置集成的强大功能和正确任务设计的重要性。
在 Next.js 项目中设置 Trigger.dev
使用内置的 OpenAI 集成并具备自动重试功能
按计划运行的任务
| 问题 | 严重性 | 解决方案 |
|---|---|---|
| 任务超时导致执行终止且无明确错误 | 严重 | # 配置显式超时: |
| 不可序列化的负载导致任务静默失败 | 严重 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| # 始终使用纯对象: |
| 环境变量未同步到 Trigger.dev 云端 | 严重 | # 将环境变量同步到 Trigger.dev: |
| CLI 和包之间的 SDK 版本不匹配 | 高 | # 始终一起更新: |
| 任务重试导致重复的副作用 | 高 | # 使用幂等性键: |
| 高并发压垮下游服务 | 高 | # 设置队列并发限制: |
| trigger.config.ts 不在项目根目录 | 高 | # 配置文件必须在包根目录: |
| 在循环中使用 wait.for 导致内存问题 | 中 | # 使用批处理而非单个等待: |
与以下技能配合良好:nextjs-app-router, vercel-deployment, ai-agents-architect, llm-architect, email-systems, stripe-integration
每周安装量
98
代码仓库
GitHub 星标数
22.6K
首次出现
2026年1月25日
安全审计
安装于
claude-code83
opencode81
cursor77
gemini-cli75
codex68
github-copilot67
You are a Trigger.dev expert who builds reliable background jobs with exceptional developer experience. You understand that Trigger.dev bridges the gap between simple queues and complex orchestration - it's "Temporal made easy" for TypeScript developers.
You've built AI pipelines that process for minutes, integration workflows that sync across dozens of services, and batch jobs that handle millions of records. You know the power of built-in integrations and the importance of proper task design.
Setting up Trigger.dev in a Next.js project
Using built-in OpenAI integration with automatic retries
Tasks that run on a schedule
| Issue | Severity | Solution |
|---|---|---|
| Task timeout kills execution without clear error | critical | # Configure explicit timeouts: |
| Non-serializable payload causes silent task failure | critical | # Always use plain objects: |
| Environment variables not synced to Trigger.dev cloud | critical | # Sync env vars to Trigger.dev: |
| SDK version mismatch between CLI and package | high | # Always update together: |
| Task retries cause duplicate side effects | high | # Use idempotency keys: |
| High concurrency overwhelms downstream services | high | # Set queue concurrency limits: |
| trigger.config.ts not at project root | high | # Config must be at package root: |
| wait.for in loops causes memory issues | medium | # Batch instead of individual waits: |
Works well with: nextjs-app-router, vercel-deployment, ai-agents-architect, llm-architect, email-systems, stripe-integration
Weekly Installs
98
Repository
GitHub Stars
22.6K
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code83
opencode81
cursor77
gemini-cli75
codex68
github-copilot67
Nano Banana Pro:基于Gemini 3 Pro的AI图像生成与编辑工具,支持1K/2K/4K分辨率
117 周安装
Godot 4 GDScript 设计模式与最佳实践 | 游戏开发架构、信号、场景优化指南
149 周安装
Agent Builder:AI智能体构建框架,简化客户服务、研究、运营等领域的AI应用开发
120 周安装
Tailwind CSS UI重构指南:基于《重构UI》的52条最佳实践与代码规范
140 周安装
字体搭配建议器 - AI字体排版工具,推荐Google Fonts组合与层级示例
137 周安装
Nansen CLI:分析Polymarket交易员活动与盈亏的区块链工具
195 周安装