"Trigger.dev v3 tasks/agents on Griot: durable scheduled jobs, streaming to the web Copilot via realtime, idempotency, and webhook HMAC to the backend."
Install
npx skillscat add donartkins/griot/trigger-dev-tasks Install via the SkillsCat registry.
SKILL.md
Trigger.dev Tasks Skill
Setup
cd ai && nvm use
npx trigger.dev@latest login
npx trigger.dev@latest init --project-ref <PROJECT_REF>
npm i @trigger.dev/sdk @trigger.dev/react-hooksPatterns
- Agents defined in TS (
agents.ts) using@trigger.dev/sdk/v3agent API; tool calls go to the backend GraphQL withGRIOT_SERVICE_TOKEN. - Scheduled tasks:
dueReminders,sprintDigest,staleBoard,standupBuilder- durable, idempotent runs. - Real-time streaming to web via
useRealtimeRun/useRealtimeStreamin@trigger.dev/react-hooks. - NEVER wrap
triggerAndWait/batchTriggerAndWaitinPromise.all/ - Webhook: backend verifies HMAC
X-Trigger-SignatureforPOST /api/webhooks/trigger.
Rules
- No DB access; no direct LLM keys in web. LLM keys only in
ai/.env. - Every agent run logs tool calls (workspaceId, tool, payloadHash, runId) for the audit trail.