← 返回 Skills 市场
dinghaibin

Schedule Task

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
66
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install schedule-task
功能描述
Schedule and run recurring tasks on Linux/Unix systems. Use when user wants to set up cron jobs, scheduled backups, periodic data sync, automated reports, or...
使用说明 (SKILL.md)

Schedule Task

Schedule and manage recurring tasks using cron.

Quick Start

# Add a scheduled task
python scripts/scheduler.py add --cron "0 9 * * *" --command "backup.sh"

# List all tasks
python scripts/scheduler.py list

# Remove a task
python scripts/scheduler.py remove --id 1

Core Features

  • Cron Expression Parser: Validate and understand cron expressions
  • Task Management: Add, list, remove scheduled tasks
  • Health Checks: Monitor task execution status
  • Notifications: Alert on task failure

Cron Format

┌───────────── minute (0 - 59)
│ ┌───────────── hour (0 - 23)
│ │ ┌───────────── day of month (1 - 31)
│ │ │ ┌───────────── month (1 - 12)
│ │ │ │ ┌───────────── day of week (0 - 6)
│ │ │ │ │
* * * * *

Common Examples

Expression Meaning
0 9 * * * Daily at 9 AM
0 * * * * Every hour
*/15 * * * * Every 15 minutes
0 0 * * 0 Weekly on Sunday
0 0 1 * * Monthly on 1st

Script Usage

python scripts/scheduler.py [COMMAND] [OPTIONS]

Commands:
  add         Add a new scheduled task
  list        List all scheduled tasks
  remove      Remove a task
  enable      Enable a disabled task
  disable     Disable a task without removing
  log         Show task execution log
  health      Check task health status

Options

--cron TEXT      Cron expression (required for add)
--command TEXT   Command to run (required for add)
--name TEXT      Task name for identification
--log PATH       Log file path
--notify EMAIL   Email notification on failure
--timeout SECS   Task timeout in seconds

Examples

Daily Backup

python scripts/scheduler.py add \
  --cron "0 2 * * *" \
  --command "/home/user/backup.sh" \
  --name "daily-backup" \
  --log /var/log/backup.log

Hourly Sync

python scripts/scheduler.py add \
  --cron "0 * * *" \
  --command "sync-data.sh" \
  --name "hourly-sync"

Weekly Report

python scripts/scheduler.py add \
  --cron "0 9 * * 1" \
  --command "generate-report.sh" \
  --name "weekly-report"

Integration

With Web Monitor

# Monitor website every hour
python scripts/scheduler.py add \
  --cron "0 * * *" \
  --command "python /path/to/web-monitor/scripts/monitor.py --url https://example.com --compare last.json"

With Telegram Bot

# Send daily summary
python scripts/scheduler.py add \
  --cron "0 8 * * *" \
  --command "telegram-send 'Good morning! Daily summary ready'"

Best Practices

  1. Use absolute paths in commands
  2. Log output for debugging
  3. Set timeouts to prevent hanging tasks
  4. Test commands manually before scheduling
  5. Use UTC for server schedules
安全使用建议
Only use this after reviewing the exact cron command and schedule. Back up your current crontab first, do not rely on the advertised notification/health/timeout features, and verify with crontab -l after adding, disabling, or removing tasks.
功能分析
Type: OpenClaw Skill Name: schedule-task Version: 1.0.0 The skill provides a utility to manage system crontabs via 'scripts/scheduler.py'. It is classified as suspicious because the 'rebuild_crontab' function is destructive; it overwrites the user's entire crontab using only the tasks stored in its local JSON file, which would result in the loss of any pre-existing cron jobs not managed by this tool. While the ability to schedule arbitrary commands is the stated purpose, the lack of input validation and the potential for unintended system configuration loss represent significant security and reliability risks.
能力评估
Purpose & Capability
The purpose is coherent with scheduling recurring tasks, but the implementation grants high-impact authority to install persistent cron commands and rewrite the user's crontab.
Instruction Scope
The documented examples are user-directed, but the skill does not clearly require confirmation of the exact command, schedule, and crontab changes before making persistent modifications.
Install Mechanism
There is no install spec and metadata declares no required binaries or OS restriction, while the code requires a Unix-like cron environment and the crontab command.
Credentials
Remove, enable, and disable operations rebuild the crontab from the skill's own task file rather than preserving unrelated user cron entries.
Persistence & Privilege
The skill creates persistent cron jobs, and the removal/disable logic can fail to clear the crontab when no managed tasks remain.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install schedule-task
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /schedule-task 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug schedule-task
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Schedule Task 是什么?

Schedule and run recurring tasks on Linux/Unix systems. Use when user wants to set up cron jobs, scheduled backups, periodic data sync, automated reports, or... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 66 次。

如何安装 Schedule Task?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install schedule-task」即可一键安装,无需额外配置。

Schedule Task 是免费的吗?

是的,Schedule Task 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Schedule Task 支持哪些平台?

Schedule Task 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Schedule Task?

由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。

💬 留言讨论