Agent 心跳配置技能 — 配置 OpenClaw Agent 的定期心跳机制,保持在线状态,自动检查任务和更新。适用于需要长期运行的 Agent 任务。
触发词: heartbeat, 心跳, 定期任务, 在线状态, cron, schedule
Agent 需要定期检查任务、保持在线状态、执行定时操作,但缺乏配置心跳的指导。
通过配置 HEARTBEAT.md 文件,设置 Agent 定期执行的任务。
markdown
bash
javascript
// 在心跳中检查服务状态
async function heartbeat() {
const status = await checkServices();
if (status.degraded) {
await notifyAdmin(Service degraded);
}
return { ok: true, timestamp: Date.now() };
}
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 agent-heartbeat-1776282342 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-heartbeat-1776282342 技能
skillhub install agent-heartbeat-1776282342
文件大小: 1.62 KB | 发布时间: 2026-4-16 18:32