
Cron Ops
- 66 installs
- 6 repo stars
- Updated March 13, 2026
- alphaonedev/openclaw-graph
cron-ops is a skill that manages the OpenClaw cron job lifecycle: create, update, remove, debug, fix false positives, and sanitize payloads.
About
A skill that manages the full lifecycle of OpenClaw cron jobs. It creates, updates, removes, and debugs scheduled jobs, fixes false positives from execution logs, and sanitizes payloads to prevent injection. A developer uses it to run and maintain repetitive scheduled tasks like backups, data syncs, and alerts.
- Full cron job lifecycle: create, update, remove, debug
- Fixes false positives and sanitizes payloads
- OpenClaw CLI and REST API for scheduled tasks
Cron Ops by the numbers
- 66 all-time installs (skills.sh)
- Ranked #971 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
cron-ops capabilities & compatibility
Requires an OPENCLAW_API_KEY environment variable for authentication.
- Capabilities
- job scheduling · cron management · debugging
- Use cases
- devops · orchestration · debugging
- Pricing
- Bring your own API key
What cron-ops says it does
This skill handles the complete lifecycle of cron jobs in OpenClaw, including creation, updates, removal, debugging, fixing false positives, and sanitizing payloads to ensure secure and reliable autom
Use this skill for scheduling repetitive tasks like backups, data syncs, or alerts in production environments; when troubleshooting cron failures
npx skills add https://github.com/alphaonedev/openclaw-graph --skill cron-opsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 66 |
|---|---|
| repo stars | ★ 6 |
| Last updated | March 13, 2026 |
| Repository | alphaonedev/openclaw-graph ↗ |
What it does
Create, update, debug, and secure OpenClaw cron jobs for backups, data syncs, and scheduled alerts.
Who is it for?
Scheduling and maintaining repetitive automated tasks like backups, syncs, and alerts.
When should I use this skill?
Creating or updating a cron schedule, troubleshooting a failed job, or sanitizing a job payload.
By the numbers
- 6 key capabilities listed
- requires OpenClaw SDK v2.5+
Files
cron-ops
Purpose
This skill handles the complete lifecycle of cron jobs in OpenClaw, including creation, updates, removal, debugging, fixing false positives, and sanitizing payloads to ensure secure and reliable automation.
When to Use
Use this skill for scheduling repetitive tasks like backups, data syncs, or alerts in production environments; when troubleshooting cron failures; or to maintain job hygiene in automated workflows. Apply it in scenarios involving system automation, such as server maintenance or API polling.
Key Capabilities
- Create cron jobs with custom schedules and commands.
- Update jobs to modify schedules, commands, or parameters.
- Remove jobs to clean up unused schedules.
- Debug jobs by logging outputs and inspecting errors.
- Fix false positives by analyzing execution logs and adjusting filters.
- Sanitize payloads to prevent injection attacks, ensuring commands are safe.
Usage Patterns
Always authenticate using the $OPENCLAW_API_KEY environment variable. For CLI, prefix commands with openclaw cron. For API, use HTTPS endpoints like https://api.openclaw.com/cron. Start with job creation, then use IDs for updates or deletions. In code, import OpenClaw SDK and handle responses synchronously. Example pattern: Check job status before updating to avoid conflicts.
Common Commands/API
Use the OpenClaw CLI for quick operations or the REST API for programmatic access. Authentication requires setting $OPENCLAW_API_KEY.
- Create a job (CLI):
openclaw cron create --schedule "0 0 * * *" --command "echo 'Hello'" --payload '{"key": "value"}' This schedules a job to run daily at midnight.
- Update a job (API):
curl -X PUT https://api.openclaw.com/cron/jobs/{jobId} -H "Authorization: Bearer $OPENCLAW_API_KEY" -d '{"schedule": "0 30 * * *", "command": "backup.sh"}' Updates the schedule of an existing job to run every hour at 30 minutes.
- Remove a job (CLI):
openclaw cron delete --job-id 12345 --force Deletes the specified job, using --force to bypass confirmation.
- Debug a job (API):
curl -X GET https://api.openclaw.com/cron/jobs/{jobId}/logs -H "Authorization: Bearer $OPENCLAW_API_KEY" Retrieves logs for debugging; parse JSON output for error details.
- Fix false positives (CLI):
openclaw cron fix --job-id 12345 --filter "error_type=timeout" Applies fixes by updating filters in the job config to ignore common false positives.
- Sanitize payloads (code snippet):
import openclaw
client = openclaw.Client(api_key=os.environ['OPENCLAW_API_KEY'])
sanitized_payload = client.sanitize({'command': 'echo "unsafe"; rm -rf /'})
print(sanitized_payload) # Outputs a safe versionUse this to clean user-input payloads before job creation.
Config format for jobs is JSON, e.g., {"schedule": "cron_expression", "command": "shell_command", "payload": {"key": "value"}}.
Integration Notes
Integrate with other OpenClaw skills by referencing job IDs in workflows. For example, link to logging skill for enhanced monitoring. Use webhooks by adding a --webhook-url flag in CLI commands, e.g., openclaw cron create --webhook-url "https://your.service/webhook". In multi-service setups, pass $OPENCLAW_API_KEY via environment variables in Docker or CI/CD pipelines. Ensure compatibility by using the latest OpenClaw SDK version (v2.5+). For external systems, map cron schedules to standard formats like Unix crontab.
Error Handling
Common errors include authentication failures (HTTP 401), invalid schedules (HTTP 400), or job conflicts (HTTP 409). Handle by checking response codes: if status is 401, verify $OPENCLAW_API_KEY. For invalid schedules, validate with openclaw cron validate --schedule "invalid". In code, use try-except blocks:
try:
response = client.create_job(schedule="0 0 * * *")
except openclaw.AuthError as e:
print("Auth failed: Set $OPENCLAW_API_KEY")
except openclaw.ValidationError as e:
print(f"Invalid input: {e}")Retry transient errors with exponential backoff. Log all errors using the job ID for traceability.
Concrete Usage Examples
1. Create a daily backup job: First, set $OPENCLAW_API_KEY. Then run: openclaw cron create --schedule "0 2 * * *" --command "rsync -a /data/ /backup/". Verify with openclaw cron list. This automates daily backups at 2 AM, and you can debug logs if it fails.
2. Debug and fix a failed cron job: Identify the job with openclaw cron list --status failed. Debug: curl -X GET https://api.openclaw.com/cron/jobs/12345/logs -H "Authorization: Bearer $OPENCLAW_API_KEY". If it's a false positive, fix with openclaw cron fix --job-id 12345 --filter "status=timeout". This resolves issues like network timeouts in scheduled tasks.
Graph Relationships
- Depends on: core-openclaw (for base API)
- Relates to: scheduling (for advanced timers), automation (for workflow integration)
- Conflicts with: none
- Extends: jobs (for general task management)
Related skills
FAQ
What does cron-ops cover?
It handles the full cron lifecycle: creating, updating, removing, and debugging jobs, plus fixing false positives and sanitizing payloads.
How does it authenticate?
It uses the OPENCLAW_API_KEY environment variable, passed as a Bearer token to the OpenClaw CLI or REST API.