In a recent development, scheduling claude -p from cron is easy. Scheduling it so it can't silently bill an API key, overlap with itself, hang forever, or hammer a usage limit is where most setups fall short. I turned the checklist I use into a Claude Code skill: a plain markdown file Claude loads when you ask it to audit a scheduled run.
It is read-only. It reads your crontab and the script it calls, then reports PASS / FAIL with file:line and a fix.
Save the file as ~/.claude/skills/cron-preflight/SKILL.md, then ask Claude: "run cron-preflight on my crontab". Free download (pay what you want, $0 is fine): https://spikeyjr.gumroad.com/l/claude-code-cron-preflight.
The output is a table, # | Check | Result | Where | Fix, and a one-line verdict. It never prints secret values it finds; it writes instead.
The free, MIT-licensed agent-autopilot-kit is a cron launcher that passes all ten: flock, key stripping, turn cap, limit detection with a pause file, daily run cap, @reboot, logs.
There is also a paid pack of five more ops skills (session handoff, task slicing for short sessions, pre-publish secret scan, log triage, changelog from git) for people running Claude Code across many short sessions: https://spikeyjr.gumroad.com/l/claude-code-headless-skills.
It has been revealed that disclosure: I maintain the repo and sell the paid pack; this post was drafted with AI assistance. Unofficial, not affiliated with Anthropic.
