AGENT SKILL
manage_cron
暂无简介
- License 许可
- GPL-3.0
- 所属仓库
- kandada/fastclaw
- 最近更新
- 2026-10-08
- Stars
- ★ 169
- Forks
- 27
02 资源文件 1
- 脚本main.py1.3 KB
03 SKILL.md 正文
Description
Manage cron tasks — create, view, and delete scheduled tasks. Data file: workspace/data/cron/tasks.json (JSON array)
Parameters
None. Calling this skill returns the instructions below; the model follows them using run_shell to read/write tasks.json.
Example
- View: run_shell("cat workspace/data/cron/tasks.json")
- Create: first cat the existing tasks, merge the new task with python3 -c "...", then write back. NEVER use > to overwrite directly.
- Delete: first cat the existing tasks, filter, then write back.
Task fields: id, name, schedule (5-field cron expression, never use all *), description, agent_id ("main_agent"), session_id (use the current session if not specified), enabled (true).
The scheduler automatically syncs new tasks from disk every 60 seconds. Do NOT use crontab -e.