
crontap-heartbeat-for-cron
Add a Crontap dead-man's-switch heartbeat to an existing recurring job, inspect check-ins, and rotate its secret token safely. Use when a user needs alerts for a cron job that fails explicitly or stops running.
- Installs
- 883
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/crontap/skills --skill crontap-heartbeat-for-cron- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads crontap-heartbeat-for-cron automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Add a heartbeat to a recurring job
A heartbeat monitors a job that already has its own clock. The job pings after
successful work. Silence beyond the period and grace window becomes a missed
check-in, while the /fail variant reports explicit failure.
Prerequisites
Before using the required tools, check whether they are available. If any are missing, stop and offer the user exactly two choices:
- Connect Crontap MCP at
https://mcp.crontap.com/mcp. MCP access works on every Crontap tier. - Configure
$CRONTAP_CLIENT_IDand$CRONTAP_API_KEYfor the raw API. Raw API access requires Ultra.
Do not silently choose a path or continue until the user selects one.
- Know the job's real maximum interval, including expected jitter.
- Choose a grace window long enough for ordinary delay and runtime.
- Decide which component securely stores the returned ping URL.
Workflow
- Create the heartbeat with the expected period and grace.
- Capture the returned ping URL once and store it as a secret.
- Add a success ping only after the job completes successfully.
- Add a
/failping to the job's handled failure path. - Inspect ping history after deployment and after any incident.
- Rotate the token only for compromise or planned credential rotation.
MCP examples
Create a daily heartbeat with 30 minutes of grace:
{
"tool": "create_heartbeat",
"arguments": {
"name": "Nightly import",
"periodMinutes": 1440,
"graceMinutes": 30,
"emailCooldownMinutes": 60
}
}
The response contains a secret ping URL. Do not echo it into source control, CI logs, support tickets, or later agent messages.
Inspect one UTC day:
{
"tool": "get_heartbeat_pings",
"arguments": {
"heartbeatId": "<heartbeat-id>",
"day": "2026-09-14"
}
}
Rotate after explicit confirmation:
{
"tool": "rotate_heartbeat_token",
"arguments": {
"heartbeatId": "<heartbeat-id>"
}
}
Rotation invalidates both variants of the old URL immediately. Update the job with the newly returned URL before its next deadline.
Job integration
Use an environment variable such as CRONTAP_HEARTBEAT_URL.
run_the_job &&
curl --fail --silent --show-error "$CRONTAP_HEARTBEAT_URL"
On a handled failure, call
"$CRONTAP_HEARTBEAT_URL/fail?msg=bounded-error-summary". Keep messages free
of credentials, personal data, and large stack traces.
REST fallback
REST requires Ultra API access. MCP does not.
curl --fail-with-body https://api.crontap.com/v1/heartbeat \
-X POST \
-H "ClientId: $CRONTAP_CLIENT_ID" \
-H "ApiKey: $CRONTAP_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"name": "Nightly import",
"periodMinutes": 1440,
"graceMinutes": 30
}'
Verification
- Send one test success from the deployed job environment.
- Confirm the heartbeat moves from pending after an accepted ping.
- Exercise a safe failure path and verify a
failevent without exposing the ping URL. - Check that the period plus grace reflects the job's worst normal runtime.
Safety and plan limits
- The ping URL is a credential. Anyone holding it can report activity.
- A heartbeat detects silence but does not start or restart the job.
- Starter heartbeat cadence and count limits differ from paid plans. Let the create response enforce the current account.
- On a plan-limit response, present its four-option ladder and the smallest viable option without inventing prices.
Troubleshooting
- No deadline starts until the first accepted ping.
- Pings while paused record history but do not change deadlines.
- Repeated rapid pings may be rate limited while still returning HTTP 200.
- If the old URL stops working after rotation, that is expected. Deploy the replacement secret.
References
FAQ
What does the crontap-heartbeat-for-cron skill do?
Add a Crontap dead-man's-switch heartbeat to an existing recurring job, inspect check-ins, and rotate its secret token safely. Use when a user needs alerts for a cron job that fails explicitly or stops running.
How do I install crontap-heartbeat-for-cron?
Run npx skills add https://github.com/crontap/skills --skill crontap-heartbeat-for-cron in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/crontap-heartbeat-for-cron/ (personal) or .claude/skills/crontap-heartbeat-for-cron/ (project).
Which AI agents can use crontap-heartbeat-for-cron?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is crontap-heartbeat-for-cron safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains crontap-heartbeat-for-cron?
It is published by crontap in crontap/skills. It has 883 recorded installs.
More from crontap/skills
crontap-supabase-edge-function-cron
crontap/skills
Schedule a protected Supabase Edge Function or HTTP-facing RPC through Crontap with an external clock and observable delivery. Use when a user needs recurring Supabase work with retries, history, or failure alerts.
crontap-quickstart
crontap/skills
Choose the right Crontap resource, inspect account limits, and verify an IANA timezone before making changes. Use when a user is new to Crontap or needs to decide between schedules, uptime monitors, and heartbeats.
crontap-replace-vercel-cron
crontap/skills
Move a Vercel Cron schedule to Crontap while keeping the existing protected HTTP route, timezone intent, and rollback path. Use when a user wants an external scheduler for a Vercel deployment or has outgrown native cron limits.
crontap-uptime-monitor
crontap/skills
Create and operate a Crontap uptime monitor, tune its failure threshold, pause it during deployments, and inspect probe evidence. Use when a user wants availability checks and down or recovery alerts for an HTTP endpoint.
crontap-retries-and-idempotency
crontap/skills
Configure Crontap retry policy safely and design scheduled endpoints so repeated requests do not duplicate side effects. Use when a user needs reliable delivery, exponential backoff, or help diagnosing duplicate work.
crontap-ai-built-apps
crontap/skills
Add recurring HTTP work and liveness monitoring to apps built with Lovable, Bolt, Replit, or v0 by exposing a protected endpoint. Use when a user wants an AI-built app to perform durable scheduled work after deployment.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.