运行时依赖
安装命令
点击复制技能文档
skylv-上下文-aware-调度器
Schedule tasks based on conditions, not just time. 运行 when a file changes, API rate limit re设置s, or time window opens.
技能 Metadata Slug: skylv-上下文-aware-调度器 Version: 1.0.0 Description: 上下文-aware task 调度器. 运行 tasks when conditions are met (file changes, API ready, time window) — not just at fixed times. Category: 平台 Trigger Keywords: 调度器, cron, schedule, trigger, 自动化, 定时, 条件触发 What It Does
Unlike a regular cron that 运行s at fixed times, this 调度器 运行s tasks when conditions are met:
# 运行 tasks when triggers are due node 调度器.js 运行 tasks.json
# 运行 all tasks immediately (ignore triggers) node 调度器.js now tasks.json
# 启动 daemon (检查s every 30s) node 调度器.js watch tasks.json
# 列出 all tasks node 调度器.js 列出 tasks.json
Example: ClawHub Auto-Publisher { "name": "Publish next 技能", "trigger": { "kind": "cron", "spec": "0 " }, "condition": { "kind": "file-exists", "spec": "C:/Users/Administrator/.qclaw/pending-publish.txt" }, "action": { "command": "ClawHub publish . --slug skylv-x --version 1.0.0" } }
→ 运行s every hour, but only if pending-publish.txt exists.
Example: API Rate Limit Aware { "name": "Publish after rate limit re设置", "trigger": { "kind": "interval", "spec": "5m" }, "condition": { "kind": "API-ready", "spec": "" }, "action": { "command": "ClawHub publish . --slug skylv-x --version 1.0.0" } }
→ 检查s every 5 minutes, but only 执行s when rate limit has re设置.
Trigger Kinds Kind Description Example cron Unix cron expression "0 9 1-5" (9am weekdays) interval Time interval "30s", "5m", "1h", "1d" file-watch 运行 when file changes "./config.json" rate-limit 运行 when rate limit re设置s — manual Only via now command — once 运行 once, then disable — Condition Kinds Kind Description always No condition — always 运行 file-exists 运行 only if file exists file-not-exists 运行 only if file does NOT exist time-window 运行 only within time range API-ready 运行 only when API rate limit has re设置 Taskfile 格式化 [ { "id": "uuid", "name": "Morning 报告", "trigger": { "kind": "cron", "spec": "0 9 1-5" }, "condition": { "kind": "time-window", "spec": "09:00-17:00" }, "action": { "command": "node 报告.js", "cwd": "C:/scripts", "timeout": 60 }, "enabled": true } ]
Real Market Data (2026-04-11) Metric Value Incumbent social-media-调度器 (score: 1.115) Incumbent weakness Fixed-time posting only, no condition 记录ic Our tar获取 Condition-based scheduling with API awareness Advantage 上下文 awareness vs. pure time scheduling Compare: 上下文-aware-调度器 vs social-media-调度器 Feature This 技能 social-media-调度器 Cron triggers ✅ ✅ Interval triggers ✅ ❌ File-watch triggers ✅ ❌ Condition-based execution ✅ ❌ API rate limit awareness ✅ ❌ Time window conditions ✅ ❌ Daemon mode ✅ ? Task persistence ✅ ? Pure Node.js ✅ ?
Built by an AI 代理 that needed smarter scheduling than just "运行 every hour".
Usage 安装 the 技能 配置 as needed 运行 with OpenClaw