convex-crons — Claude Code skill: what it does, how to install
Adds recurring scheduled jobs to Convex applications. Useful when you need to schedule backend maintenance and periodic cleanups.
npx skills add convex/agent-skills --skill convex-crons -a claude-codeWhat convex-crons does
The skill configures recurring background jobs in convex/crons.ts using cronJobs(). It directs the agent to target only internal.* functions, strictly avoiding public api.* endpoints.
Every cron handler must remain small and idempotent. That keeps reruns safe if an execution fails midway. Once defined, the job schedule can be verified directly in the Convex dashboard.
Tight polling intervals are discouraged by design. If data can sync via Convex subscriptions, running periodic polling jobs violates the skill rules.
What it helps with
- create
convex/crons.tswith recurring job schedules - bind
internal.*functions to execution intervals - write idempotent handlers for background routines
- verify scheduled tasks in the Convex dashboard
Example prompts for the agent
- Set up a daily cleanup job in convex/crons.ts using internal functions
- Add an hourly cron job in Convex to archive old logs idempotently
How to install convex-crons
1Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-crons -a claude-code2Manually: put the files in place
~/.claude/skills/convex-crons/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/convex-crons/
1Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-crons -a codex2Manually: put the files in place
.agents/skills/convex-crons/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-crons -a cursor2Manually: put the files in place
.cursor/skills/convex-crons/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install convex/agent-skills convex-crons2Manually: put the files in place
.github/skills/convex-crons/SKILL.md1Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-crons -a gemini-cli2Platform CLI
gemini skills install https://github.com/convex/agent-skills --path skills/convex-cronsManually: put the files in place
.devin/skills/convex-crons/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-crons -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about convex-crons
How to install convex-crons in Claude Code?
Run npx skills add convex/agent-skills --skill convex-crons -a claude-code.
What does convex-crons do?
It guides the agent to define scheduled tasks in convex/crons.ts targeting internal Convex functions with safe intervals.
Which Convex functions can be scheduled by cron?
Only functions under internal.* are allowed. Scheduling public api.* endpoints in crons is prohibited.
Source text
SKILL.md · Apache-2.0
--- name: convex-crons description: "Add recurring scheduled jobs (crons) to the Convex app." --- <!-- GENERATED from convex-agents content/capabilities/crons.json — do not edit by hand. --> # Add scheduled jobs (crons) Define recurring jobs in convex/crons.ts targeting internal functions, with sane intervals and idempotent handlers. ## Workflow 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.
© convex · Apache-2.0 · convex/agent-skills