Imported from DonArtkins/griot (
ai/.agents/skills/trigger-dev-tasks/SKILL.md). Install upstream withnpx skills add DonArtkins/griot --skill trigger-dev-tasks. Copyright stays with the author.
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-hooks
Patterns
- 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.