Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add convex/agent-skills --skill convex-crons -a claude-code
Open on GitHub

What 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.ts with 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-code

2Manually: put the files in place

~/.claude/skills/convex-crons/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/convex-crons/

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

Similar skills

Everything for Backend and APIs →
convex waynesutton Routes Convex backend tasks to dedicated builder skills and enforces global rules for queries, mutations, and schemas. Useful as the starting point for any Convex project. CX Codex +1 5,700installs convex-best-practices waynesutton Guides your agent through production Convex patterns, from index design to OCC conflict prevention. Essential for clean mutations, schema validation, and fast queries. CX Codex +1 3,900installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. 130,949installs claude-api official anthropics Reference skill for the Claude API and Anthropic SDK that enforces valid model IDs, adaptive thinking, and streaming. 74,198installs lark-im larksuite This skill lets an agent work with Lark IM messages, chats, files, and interactive cards. Use it when coding tasks need access to team conversations. CX Codex +1 472,900installs lark-event larksuite Listens to Lark/Feishu events and streams them as NDJSON. Use it for bots, message processing, and long-running subscribers. CX Codex +1 466,800installs caveman-discover JuliusBrussee Finds and labels every LLM workflow in your repository so Caveman Cloud breaks down spend by actual job rather than grouping everything into one bucket. CX Codex +1 104,400installs migration JuliusBrussee Enforces reversible, compatibility-safe transitions for schema, data, and API updates. Useful whenever data loss or rollout downtime is unacceptable. CX Codex +1 103,900installs

From the same set32

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor