Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

cron-ops计划任务

Agent Skill

cron-ops 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

642

周安装

27

GitHub Stars

4

下载量

225
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cron-ops(计划任务)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/cron-ops
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill cron-ops
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill cron-ops

简介

cron-ops 管理 OpenClaw 环境中 cron 任务的完整生命周期,包括创建、调试与安全加固。

  • 适用于生产环境下的自动化调度、故障排查与 payload 清洗需求。
  • 支持自定义排程、命令执行监控与异常处理流程设计。
  • 操作前应评估其对系统资源的影响,避免误删或高频任务导致服务中断。
  • cron-ops 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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 version Use 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)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.69%
按下载量换算78

Claude

29.95%
按下载量换算67

Cursor

18.02%
按下载量换算41

Gemini CLI

7.62%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills