返回顶部
H

Heartbeat心跳设计

Design better OpenClaw HEARTBEAT.md files with adaptive cadence, safe checks, and cron handoffs for precise schedules.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
2,028
下载量
免费
免费
3
收藏
概述
安装方式
版本历史

Heartbeat

Heartbeat 💓

Build reliable heartbeat playbooks for OpenClaw agents without noisy checks, missed signals, or runaway costs.

Setup

On first use, follow setup.md to capture timezone, active hours, precision needs, and risk tolerance.

When to Use

User wants a better heartbeat file in OpenClaw. Agent audits current heartbeat behavior, designs a safer file, and tunes intervals using real workflow constraints.

Use this for adaptive monitoring, proactive check-ins, and hybrid heartbeat plus cron strategies.

Architecture

Memory lives in ~/heartbeat/. See memory-template.md for the structure and fields.

CODEBLOCK0

Quick Reference

TopicFile
Setup interviewINLINECODE3
Memory schema
memory-template.md | | Production heartbeat template | heartbeat-template.md | | Practical heartbeat use cases | use-cases.md | | Interval strategy reference | intervals.md | | Trigger strategy reference | triggers.md | | Validation checklist before shipping | qa-checklist.md | | Internet research sources | sources.md |

Core Rules

1. Scope the heartbeat before writing anything

Define one mission sentence and 1-3 monitored signals first.

If scope is broad, split into explicit sections (critical, important, nice-to-have) and only automate the first two.

2. Keep output contract strict

If nothing actionable is found, heartbeat must return exactly HEARTBEAT_OK.

Do not emit summaries on empty cycles. This prevents noisy loops and keeps heartbeat cheap.

3. Tune cadence with timezone and active hours

Start from OpenClaw defaults and adapt: use a moderate baseline interval, then tighten only during active windows.

Always encode timezone and active hours in the heartbeat file to avoid waking during sleep hours.

4. Use cron for exact timing, heartbeat for adaptive timing

If a task must run at exact wall-clock times, move it to cron.

If a task should react to changing context or event probability, keep it in heartbeat.

5. Add cost guards to every expensive check

Use a two-stage pattern: cheap precheck first, expensive action only on threshold hit.

Never call paid APIs on every heartbeat cycle unless the user explicitly accepts the cost.

6. Define escalation and cooldown rules

Each alert condition must have trigger threshold, escalation route, and cooldown period.

No escalation path means no alert. No cooldown means likely alert spam.

7. Validate with dry runs and rollback path

Before finalizing, run at least one dry simulation against the checklist in qa-checklist.md.

Keep a snapshot of the previous heartbeat so the user can rollback in one step.

Common Traps

  • - Polling everything every cycle -> high token/API burn with low signal quality.
  • Using heartbeat for exact 09:00 jobs -> drift and missed exact-time expectations.
  • Missing timezone in heartbeat config -> notifications at the wrong local time.
  • No active-hours filter -> overnight wakeups and user fatigue.
  • No HEARTBEAT_OK fallback -> verbose no-op loops.
  • No cooldown on alerts -> duplicate escalations during noisy incidents.

Security & Privacy

Data that stays local:

  • - Heartbeat preferences and tuning notes in INLINECODE17
  • Draft and snapshot files for heartbeat definitions

This skill does NOT:

  • - Require credentials by default
  • Trigger external APIs without user-approved instructions
  • Edit unrelated files outside the heartbeat workflow

Related Skills

Install with clawhub install <slug> if user confirms:
  • - schedule - Scheduling patterns for recurring workflows
  • INLINECODE20 - Monitoring strategies and alert design
  • INLINECODE21 - Alert routing and escalation hygiene
  • INLINECODE22 - Multi-step workflow orchestration
  • INLINECODE23 - Proactive assistant patterns with controlled autonomy

Feedback

  • - If useful: INLINECODE24
  • Stay updated: INLINECODE25

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 heartbeat-1776420052 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 heartbeat-1776420052 技能

通过命令行安装

skillhub install heartbeat-1776420052

下载

⬇ 下载 Heartbeat v1.0.1(免费)

文件大小: 8.65 KB | 发布时间: 2026-4-17 19:21

v1.0.1 最新 2026-4-17 19:21
Refined heartbeat guidance with a production template, QA checklist, and cron handoff rules for safer proactive monitoring.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部