Trigger.dev 后台任务开发
trigger-dev
Trigger.dev 专家技能,用于后台任务、AI 工作流以及可靠的异步执行,具备出色的开发体验和 TypeScript 优先的设计。使用时机:trigger.dev、trigger dev、后台任务、AI 后台作业、长时间运行的任务。
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- trigger-dev
- source
- vibeship-spawner-skills (Apache 2.0)
- description
- Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.
02 资源文件 24
- 参考文档examples/architecture-design-system.md4.0 KB
- 参考文档examples/architecture-plugins.md4.1 KB
- 参考文档examples/behaviour-spec.md3.4 KB
- 参考文档examples/decision.md1.4 KB
- 参考文档examples/development.md1.2 KB
- 参考文档examples/HIW-tasks.md1.9 KB
- 参考文档examples/human-page.md2.1 KB
- 参考文档examples/nested-agents-components.md585 B
- 参考文档examples/nested-agents-plugins.md635 B
- 参考文档examples/readme.md2.6 KB
- 参考文档examples/reference.md2.8 KB
- 参考文档examples/root-agents.md1.5 KB
- 参考文档examples/runbook.md3.5 KB
- 参考文档examples/skill-entry.md2.9 KB
- 参考文档README.md1.9 KB
- 参考文档references/agents.md1.7 KB
- 参考文档references/architecture.md3.3 KB
- 参考文档references/assistant-home.md4.2 KB
- 参考文档references/development.md438 B
- 参考文档references/human-page.md2.8 KB
- 参考文档references/readme.md1.3 KB
- 参考文档references/reference-docs.md811 B
- 参考文档references/skill-files.md1.1 KB
- 参考文档workflows/rewrite.md9.6 KB
03 SKILL.md 正文
Trigger.dev Integration
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.
Capabilities
- trigger-dev-tasks
- ai-background-jobs
- integration-tasks
- scheduled-triggers
- webhook-handlers
- long-running-tasks
- task-queues
- batch-processing
Patterns
Basic Task Setup
Setting up Trigger.dev in a Next.js project
AI Task with OpenAI Integration
Using built-in OpenAI integration with automatic retries
Scheduled Task with Cron
Tasks that run on a schedule
Anti-Patterns
❌ Giant Monolithic Tasks
❌ Ignoring Built-in Integrations
❌ No Logging
⚠️ Sharp Edges
| 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: |
Related Skills
Works well with: nextjs-app-router, vercel-deployment, ai-agents-architect, llm-architect, email-systems, stripe-integration
04 同仓库更多 Skills
Playwright Web 应用测试
webapp-testing
使用 Playwright 与本地 Web 应用交互并进行测试的工具包。支持验证前端功能、调试 UI 行为、截取浏览器截图以及查看浏览器日志。
Claude 网页工件构建
web-artifacts-builder
一套工具,用于使用现代前端 Web 技术(React、Tailwind CSS、shadcn/ui)创建精细的、由多个组件组成的 claude.ai HTML 工件。适用于需要状态管理、路由或 shadcn/ui 组件的复杂工件——不适用于简单的单文件 HTML/JSX 工件。
作品主题样式设计
theme-factory
用于为作品应用主题样式的工具包。这些作品可以是幻灯片、文档、报告、HTML 落地页等。提供 10 个包含颜色/字体的预设主题,可应用于任何已创建的作品,也可即时生成新主题。
Slack 动图 GIF 制作
slack-gif-creator
用于创建针对 Slack 优化的动图 GIF 的知识和工具。提供约束条件、验证工具和动画概念。当用户请求制作 Slack 用的动图 GIF 时使用,例如“给我做一个 X 做 Y 的 Slack GIF”。
Claude 技能创建指南
skill-creator
创建有效技能的指南。当用户想要创建一个新技能(或更新现有技能),以通过专业知识、工作流或工具集成来扩展 Claude 的能力时,应使用此技能。
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).