scheduled-task

Create and manage scheduled tasks that execute Claude CLI at specified times. Use when user mentions "定时", "scheduled", "timer", "cron", "每天", "每小时", "定期", "remind", "提醒", or wants to run automated tasks periodically. Supports cron expressions, interval-based, and one-time scheduling.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "scheduled-task" with this command: npx skills add xuzeyu91/ai-agent-toolkit/xuzeyu91-ai-agent-toolkit-scheduled-task

Scheduled Task

Create, manage, and execute scheduled tasks using Claude CLI.

Quick Start

User Request → Parse Schedule → Generate Task MD → Register → Scheduler Executes → Notify

Create a Task

Parse the schedule type and generate task file:

python scripts/create_task.py \
  --name "Daily Code Review" \
  --schedule "cron:0 9 * * *" \
  --working-dir "/path/to/project" \
  --prompt "Review code quality in src/ directory"

Schedule Types

TypeFormatExampleDescription
Croncron:exprcron:0 9 * * *Daily at 9am
Intervalinterval:Xuinterval:30mEvery 30 minutes
Onceonce:datetimeonce:2026-01-27 15:00One-time execution

Common Patterns

PatternSchedule
Every day at 9amcron:0 9 * * *
Every hourinterval:1h
Every 30 minutesinterval:30m
Weekdays at 8amcron:0 8 * * 1-5

Manage Tasks

# List all tasks
python scripts/list_tasks.py

# Cancel a task
python scripts/cancel_task.py --id task-001

# Run a task manually
python scripts/run_task.py --id task-001

# Start the scheduler (background)
python scripts/scheduler.py --daemon

Directory Structure (Runtime)

.scheduled-tasks/
├── registry.json          # Task registry
├── tasks/                 # Task MD files
│   └── task-001.md
├── results/               # Execution results
│   └── task-001_2026-01-26_09-00.md
└── logs/
    └── scheduler.log

Script Reference

create_task.py

ParameterRequiredDescription
--nameYesTask name
--scheduleYesSchedule spec (cron:expr, interval:30m, once:datetime)
--promptYesTask instructions
--working-dirNoWorking directory (default: current)
--focus-filesNoFile patterns to focus on

scheduler.py

ParameterDescription
--daemonRun as background process
--onceCheck and run due tasks once, then exit
--intervalCheck interval in seconds (default: 60)

Cross-Platform Support

  • Windows: Native toast notifications via win10toast
  • macOS: osascript notifications
  • Linux: notify-send (libnotify)

Dependencies

pip install -r scripts/requirements.txt

Error Handling

ErrorAction
Claude CLI not foundNotify user, log error
Task timeout (5min default)Kill process, mark failed, retry later
Invalid cron expressionReject at creation time

Reference Files

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

scheduled-task

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated