Skip to content

Guide · Agent skill

How to use the Convex Scheduled Jobs agent skill (convex-crons)

Updated · written with AI from the project's own documentation and checked against our catalogue data

The convex-crons skill is a set of instructions that teaches an AI agent how to add recurring scheduled jobs, called crons, to a Convex app. It is for developers who have a Convex backend and need periodic work such as cleanup, syncing or reminders. After following this guide, you will know how to install the skill, ask for a scheduled job in plain language, and check what the agent produced.

Convex Scheduled Jobsopenclaw/clawhub · MIT

Quick start

  1. 1Download the ZIP. Download the convex-crons ZIP from this page.
  2. 2Unzip into a skills folder. Unzip it into ~/.claude/skills/ for personal use or into your project's .claude/skills/ folder.
  3. 3Or upload in the Claude apps. Go to Settings → Capabilities → Skills in the Claude apps and upload the skill.
  4. 4Open your Convex project. Start a session in the Convex project where you want the scheduled job.
  5. 5Describe the recurring task. Ask for the job in plain language, naming Convex and the interval, for example every hour.
  6. 6Review convex/crons.ts. Check that the job targets an internal function and that the handler can safely be re-run.
  7. 7Verify in the dashboard. Confirm the job appears in the Convex dashboard schedule.

What is an agent skill?

An agent skill is a folder containing a SKILL.md file with instructions that an AI agent reads when a task matches the skill's description. Once a skill is installed, you do not need to paste the instructions into each chat; the agent loads them when relevant.

This skill is named convex-crons and its SKILL.md is the only file it ships with.

What the skill makes the agent do

When the skill applies, the agent sets up recurring background tasks in your Convex app, such as jobs that run every few minutes or every few hours. It follows a four-step workflow defined in the skill: create convex/crons.ts with cronJobs(), schedule internal functions at the right interval, make the handlers idempotent so they are safe to re-run while keeping each run small, and verify that the job appears in the dashboard schedule.

  • Creates a convex/crons.ts file that uses cronJobs()
  • Points each job at an internal.* function, never a public api.* function
  • Writes handlers that are safe to re-run and small in scope
  • Reminds the agent to confirm the job shows in the Convex dashboard schedule

How to install the convex-crons skill

Download the convex-crons ZIP from this page. Then choose one of two install locations.

For a personal setup available across projects, unzip the file into ~/.claude/skills/. For a single project, unzip it into that project's .claude/skills/ folder. Either way the result should be a convex-crons folder containing SKILL.md.

You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.

  • Personal: ~/.claude/skills/
  • Project only: .claude/skills/ inside your project

How to trigger the skill with natural requests

You do not need a special command. Describe the recurring work you want in ordinary language and mention Convex, so the agent matches the request to this skill. The skill's description covers adding recurring scheduled jobs (crons) to a Convex app.

  • Add a cron to my Convex app that deletes expired sessions every 30 minutes.
  • Set up a scheduled job in Convex that syncs our orders table to the billing service every hour.
  • Create a recurring Convex job that sends a reminder email each morning.

What you need before you start

The skill only applies to Convex apps. You need a Convex project, along with the Convex platform and its CLI and dashboard, because the agent's final check is to confirm the job appears in the dashboard schedule.

The skill does not run scripts and does not use the network. It is a set of written instructions in SKILL.md.

  • A Convex project
  • Access to the Convex dashboard to verify the schedule

Safety notes and what to review

The skill tells the agent to schedule internal functions rather than public ones, so scheduled work is not exposed as a public API. Still, review the generated convex/crons.ts and the handler code before deploying, especially if a job changes or deletes data.

Because the skill does not run scripts or use the network, its risk comes from the code the agent writes in your project, not from the skill files themselves.

  • Confirm each job targets internal.* functions
  • Read the handler for deletes or writes and check it is safe to repeat
  • Check the job's interval against how fresh the data needs to be

Tips for better results

Say how often the job should run and what it should do. The skill advises against tight polling for data that a subscription could push, so if you ask for a very frequent check, the agent may suggest a subscription instead.

Keep each job focused on one task. The skill asks for small handlers, which makes re-runs safer and easier to debug.

  • State the interval in plain terms, such as every 15 minutes or once a day
  • Describe the data the job touches so idempotency can be designed for it
  • Ask the agent to show the dashboard schedule check at the end

What people use it for

  • Deleting expired sessions or temporary records on a regular interval
  • Syncing data from a Convex table to an external service every hour
  • Sending periodic reminder tasks, such as a daily morning job
  • Running small batch cleanup jobs that must not double-process data if run twice

Frequently asked questions

How do I install the convex-crons agent skill?

Download the convex-crons ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder for one project. You can also upload it in the Claude apps under Settings → Capabilities → Skills.

What do I need to use the convex-crons skill?

You need a Convex project, since the skill's instructions only apply to Convex apps. The skill does not run scripts and does not use the network.

Is the convex-crons skill free?

The skill is published under the MIT licence, as listed on this page. Check the repository for the full licence text.

Does this skill work with schedulers other than Convex?

No. The instructions only apply to Convex apps, so the skill would not help with other scheduling tools.

Why does the skill schedule internal functions instead of public ones?

The skill tells the agent to schedule internal.* functions and never api.* functions, so scheduled work is not exposed as a public API.

What should I do if my cron job does not show up?

The skill's last workflow step is to verify the job appears in the Convex dashboard schedule. If it is missing, ask the agent to recheck convex/crons.ts and confirm the job is defined with cronJobs().

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you build on Convex and want an agent to add periodic cleanup, sync or reminder jobs with internal functions and handlers that are safe to re-run. Pick something else if your project does not use Convex, or if the work needs very frequent checks where a subscription would be a better fit.

Download the skill