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 any recurring task automation.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "schedule-task" with this command: npx skills add dinghaibin/schedule-task

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

ExpressionMeaning
0 9 * * *Daily at 9 AM
0 * * * *Every hour
*/15 * * * *Every 15 minutes
0 0 * * 0Weekly 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

永久记忆系统

永久记忆自动归档系统。每次对话自动记录,语义搜索,跨会话继承。重启不丢、永不覆盖、0学习成本。用于用户提到记忆、历史、之前说过、记得什么等场景。

Registry SourceRecently Updated
General

Cognition Evolution

对话结束自动复盘,将认知沉淀写入长期记忆。识别本次关键决策、教训、未解决问题,转化为可执行洞见。用于用户说"复盘"、"总结"、"认知升级"。

Registry SourceRecently Updated
General

视频号POI团购变现

门店POI全套落地,打通同城引流成交。实体商家专属本地生活运营指南,POI认领、团购开通、类目审核、流量挂载全避坑,视频号加热联动,低成本撬动同城到店客流。

Registry SourceRecently Updated
General

Memory Recall

精准检索历史记忆,调取某天、某项目、某条对话记录。支持按日期、按关键词、按类型检索。用于用户说查找、找回、某天、某次、之前说过等场景。

Registry SourceRecently Updated