Skip to content
Backend
Command

/crons

Add recurring scheduled jobs (crons) to the Convex app.

From plugin
convex-agent-plugins
11729 skills29 commands

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/crons

Context preview

What this command does when you run it.

Add recurring scheduled jobs (crons) to the Convex app.

Command definition

crons.md
description: "Add recurring scheduled jobs (crons) to the Convex app."

Add scheduled jobs (crons)

Define recurring jobs in convex/crons.ts targeting internal functions, with sane intervals and idempotent handlers.

Steps

1. Create convex/crons.ts with cronJobs(). 2. Schedule internal functions (never public api.*) at the right interval. 3. Make handlers idempotent (safe to re-run); keep each run small. 4. Verify the job appears in the dashboard schedule.

Rules

  • Schedule internal.* functions, never api.*.
  • Keep cron handlers small + idempotent.
  • Don't poll tight intervals for things a subscription can push.
Ships withconvex-agent-plugins

Official Convex plugins for AI coding agents, providing comprehensive development tools for building reactive backends with TypeScript. Supported Agents: Cursor, Claude Code (more coming soon)

Get the whole plugin

Other commands on convex-agent-plugins.