Toolverse
All skills

trigger-dev-tasks

by triggerdotdev

Use this skill when writing, designing, or optimizing Trigger.dev background tasks and workflows. This includes creating reliable async tasks, implementing AI workflows, setting up scheduled jobs, structuring complex task hierarchies with subtasks, configuring build extensions

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Testing

About this skill

Use this skill when writing, designing, or optimizing Trigger.dev background tasks and workflows. This includes creating reliable async tasks, implementing AI workflows, setting up scheduled jobs, structuring complex task hierarchies with subtasks, configuring build extensions for tools like ffmpeg or Puppeteer/Playwright, and handling task schemas with Zod validation.

How to use

  1. Zainstaluj pakiet @trigger.dev/sdk w swoim projekcie Node.js 21+. Umiejętność Claude'a będzie dostępna automatycznie przy pracy z kodem Trigger.dev.

  2. Definiuj zadania za pomocą funkcji task z pakietu @trigger.dev/sdk. Każde zadanie musi mieć unikalny identyfikator (id) i funkcję run, która zawiera logikę do wykonania. Pamiętaj, aby zawsze eksportować wszystkie zadania, łącznie z subtaskami.

  3. Dla zadań wymagających walidacji danych użyj schemaTask z integracją Zod. Zdefiniuj schemat walidacji za pomocą z.object(), a payload będzie automatycznie sprawdzany i typowany.

  4. Konfiguruj opcje niezawodności zadań, takie jak retry z maksymalną liczbą prób, współczynnikiem backoff i limitami timeoutu. Przykład: retry: { maxAttempts: 10, factor: 1.8, minTimeoutInMs: 500, maxTimeoutInMs: 30_000 }.

  5. Przy wyzwalaniu zadań z backendu używaj metod triggerAndWait lub batchTriggerAndWait. Nigdy nie owijaj tych wywołań w Promise.all lub Promise.allSettled, ponieważ mogą one zawierać operacje czekania, które wymagają specjalnej obsługi.

  6. Zapytaj Claude'a o pomoc przy projektowaniu złożonych hierarchii zadań z subtaskami, konfiguracji rozszerzeń buildów dla zewnętrznych narzędzi lub optymalizacji istniejących workflow'ów. Umiejętność ma dostęp do narzędzi do czytania, edycji i testowania kodu.

Related skills

polymarket-trader

by openclaw

Query Polymarket prediction markets - trending events, crypto, politics, sports, and search

Testing
14142

test-cases

by cexll

This skill should be used when generating comprehensive test cases from PRD documents or user requirements. Triggers when users request test case generation, QA planning, test scenario creation, or need structured test documentation. Produces detailed test cases covering

Testing
2862

playwright-browser-automation

by lackeyjb

Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test

Testing
13130

vitest

by antfu

Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

Testing
1236

go-dev-guidelines

by jumppad-labs

This skill should be used when writing, refactoring, or testing Go code. It provides idiomatic Go development patterns, TDD-based workflows, project structure conventions, and testing best practices using testify/require and mockery. Activate this skill when creating new Go

Testing
1190

nextjs-developer

by zenobi-us

Expert Next.js developer mastering Next.js 14+ with App Router and full-stack features. Specializes in server components, server actions, performance optimization, and production deployment with focus on building fast, SEO-friendly applications.

Testing
166226