Run durable scheduled agent jobs in Node.js with Agenda
Use Agenda when a custom Node.js agent needs persistent scheduled jobs, retries, locking, and background workers backed by MongoDB, PostgreSQL, or Redis instead of fragile in-process timers.
npx skills add agentskillexchange/skills --skill run-durable-scheduled-agent-jobs-in-node-js-with-agenda
Use Agenda when an agent or operator workflow needs durable background execution in a Node.js service: scheduled research refreshes, queued enrichment jobs, delayed follow-ups, retryable tool calls, or recurring maintenance tasks. Agenda gives the workflow named jobs, persistence, locking, priorities, repeats, and pluggable storage backends so the agent can resume work after process restarts instead of relying on ad hoc timers.
What this skill actually does
Invoke this when the task is to define and operate repeatable background jobs around an agent workflow, not when a user simply needs a calendar reminder or a generic cron entry. The scope boundary is narrow: Agenda is the job runner inside a custom Node.js automation service. It is not a full agent framework, SaaS scheduler, workflow builder, or general Node.js library listing.
Inputs and prerequisites: Node.js, the agenda npm package, and a supported persistence backend such as MongoDB, PostgreSQL, or Redis..
Setup notes:
Install Agenda with npm install agenda, then install one backend package such as @agendajs/mongo-backend, @agendajs/postgres-backend, or @agendajs/redis-backend. Define named jobs in the Node.js worker, connect the backend, call agenda.start(), and schedule one-off or recurring agent tasks with Agenda’s job APIs.
Source and verification boundary: use https://agenda.github.io/agenda/ as the canonical reference before running the workflow; keep commands, API calls, CLI usage, and generated outputs reviewable against that upstream source.
Framework fit: publish this as a Custom Agents workflow only when the operator can invoke the documented toolchain directly, rather than treating the upstream project as a generic product listing.