Scheduled task

From teammors/xteammors-OpenClaw4J · View interactive version

Scheduled task is an AI agent skill from the GitHub repository teammors/xteammors-OpenClaw4J. Create and manage scheduled tasks that execute specified skills at regular intervals. This skill allows users to set up recurring tasks like checking crypto prices, sending reminders, or performing ot

How to use this skill

Skill file

Scheduled Task Skill

Description

Create and manage scheduled tasks that execute specified skills at regular intervals. This skill allows users to set up recurring tasks like checking crypto prices, sending reminders, or performing other automated actions.

Invocation

Command

scheduled-task

Natural Language Examples

Parameters

Configuration

scheduled-task:
  max_tasks_per_user: 10
  default_interval: "60s"
  min_interval: "1s"
  max_interval: "30d"
  task_storage: "memory"  # memory, file, or database

Task Format

{
  "taskId": "unique-task-id",
  "chatId": "user-chat-id",
  "interval": "30s",  // 时间间隔 (s, m, h, d)
  "skill": "crypto-price",  // 要执行的技能
  "params": "BTC,ETH,SOL",  // 技能参数
  "description": "每30秒检查加密货币价格",
  "createdAt": "2026-03-25T12:00:00Z",
  "nextRun": "2026-03-25T12:00:30Z"
}

Output Format

Task Creation

定时任务已创建成功!

任务ID: task-12345
描述: 每2分钟收集一次BTC,ETH,SOL的实时价格
间隔: 2分钟
下次执行: 2026-03-25 14:32:00

Task List

您当前的定时任务:
1. 任务ID: task-12345
   描述: 每2分钟收集一次BTC,ETH,SOL的实时价格
   间隔: 2分钟
   状态: 运行中
   下次执行: 2026-03-25 14:32:00

2. 任务ID: task-67890
   描述: 每小时提醒检查邮件
   间隔: 1小时
   状态: 运行中
   下次执行: 2026-03-25 15:00:00

Implementation

The skill works in the following way:

  1. Task Creation: Parse user input to extract time interval and task details
  2. Task Scheduling: Use Java's scheduling mechanism to execute tasks at specified intervals
  3. Skill Execution: When a task runs, execute the specified skill with the provided parameters
  4. Result Delivery: Send the skill execution results back to the specified chatId

Scripts

Dependencies

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.