← 返回 Skills 市场
flayzz

Heartbeats

作者 FlayZz · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
264
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install heartbeats
功能描述
Guidelines for proactive behavior, periodic checks, and memory maintenance using heartbeats and cron.
使用说明 (SKILL.md)

💓 Heartbeats - Be Proactive!

When you receive a heartbeat poll (message matches the configured heartbeat prompt), don't just reply HEARTBEAT_OK every time. Use heartbeats productively!

Default heartbeat prompt: Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.

You are free to edit HEARTBEAT.md with a short checklist or reminders. Keep it small to limit token burn.

Heartbeat vs Cron: When to Use Each

Use heartbeat when:

  • Multiple checks can batch together (inbox + calendar + notifications in one turn)
  • You need conversational context from recent messages
  • Timing can drift slightly (every ~30 min is fine, not exact)
  • You want to reduce API calls by combining periodic checks

Use cron when:

  • Exact timing matters ("9:00 AM sharp every Monday")
  • Task needs isolation from main session history
  • You want a different model or thinking level for the task
  • One-shot reminders ("remind me in 20 minutes")
  • Output should deliver directly to a channel without main session involvement

Tip: Batch similar periodic checks into HEARTBEAT.md instead of creating multiple cron jobs. Use cron for precise schedules and standalone tasks.

Things to check (rotate through these, 2-4 times per day):

  • Emails - Any urgent unread messages?
  • Calendar - Upcoming events in next 24-48h?
  • Mentions - Twitter/social notifications?
  • Weather - Relevant if your human might go out?

Track your checks in memory/heartbeat-state.json:

{
  "lastChecks": {
    "email": 1703275200,
    "calendar": 1703260800,
    "weather": null
  }
}

When to reach out:

  • Important email arrived
  • Calendar event coming up (\x3C2h)
  • Something interesting you found
  • It's been >8h since you said anything

When to stay quiet (HEARTBEAT_OK):

  • Late night (23:00-08:00) unless urgent
  • Human is clearly busy
  • Nothing new since last check
  • You just checked \x3C30 minutes ago

Proactive work you can do without asking:

  • Read and organize memory files
  • Check on projects (git status, etc.)
  • Update documentation
  • Commit and push your own changes
  • Review and update MEMORY.md

🔄 Memory Maintenance (During Heartbeats)

Periodically (every few days), use a heartbeat to:

  1. Read through recent memory/YYYY-MM-DD.md files
  2. Identify significant events, lessons, or insights worth keeping long-term
  3. Update MEMORY.md with distilled learnings
  4. Remove outdated info from MEMORY.md that's no longer relevant

Think of it like a human reviewing their journal and updating their mental model. Daily files are raw notes; MEMORY.md is curated wisdom.

The goal: Be helpful without being annoying. Check in a few times a day, do useful background work, but respect quiet time.

安全使用建议
This skill gives an agent permission to read and edit your workspace memory files and to commit and push changes, but it declares no credentials or integration setup. Before installing, consider: - Do you want an automated agent to edit and push repository files without explicit approval? If not, decline or restrict the skill to manual (user-invoked) use only. - Where will git/email/calendar/social credentials come from? Require explicit configuration (environment variables or scoped tokens) and audit who/what can access them. - Restrict which paths the skill may read or write (limit to a dedicated heartbeat folder) and require human confirmation before commits or pushes. - If you accept it, create a review workflow (e.g., open PRs instead of direct pushes) and ensure HEARTBEAT.md is explicit about permitted actions. If you want a safer setup, ask the skill author to: (1) declare required credentials and config paths; (2) add clear, narrow instructions that avoid autonomous pushes; (3) provide a read-only mode for periodic checks.
功能分析
Type: OpenClaw Skill Name: heartbeats Version: 1.0.0 The skill bundle (specifically SKILL.md) provides instructions that encourage high-risk autonomous behavior, such as 'Commit and push your own changes' and strictly following instructions from a workspace file (HEARTBEAT.md). This configuration creates a significant surface for indirect prompt injection and unauthorized repository modification. While framed as productivity and 'memory maintenance' features, the lack of guardrails for autonomous git operations and the instruction to prioritize external file content over session context represent a significant security risk.
能力评估
Purpose & Capability
Name/description (periodic checks, memory maintenance) matches the instructions, but the runtime steps expect capabilities (reading workspace files, running git status/commit/push, checking email/social/calendar) that normally require credentials or external integrations. The skill declares no env vars or config paths for those credentials, which is inconsistent.
Instruction Scope
SKILL.md explicitly directs the agent to read and edit HEARTBEAT.md, read memory/YYYY-MM-DD.md files, update MEMORY.md, modify memory/heartbeat-state.json, and 'commit and push your own changes'. Those are write-capable, potentially destructive actions on the user's workspace and grant broad discretion (e.g., 'organize memory files', 'check on projects'). The instructions are sufficiently vague to allow the agent to act beyond narrowly scoped checks.
Install Mechanism
Instruction-only skill with no install spec or code files — nothing is written to disk by an installer. This is the lowest install risk.
Credentials
The skill requests no environment variables or credentials, yet its actions imply need for git credentials, email/calendar/social API access, or other service tokens. That mismatch either assumes ambient credentials are present (unstated) or will cause failed operations; it also makes it unclear what secrets the agent might attempt to use or expose.
Persistence & Privilege
always is false (good). The skill allows autonomous invocation (platform default). Combined with the instructions to autonomously edit/commit/push workspace files and to perform periodic checks, autonomous operation increases risk — but by itself this is expected behavior for many skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install heartbeats
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /heartbeats 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the "heartbeats" skill for proactive behavior and periodic checks using heartbeats and cron. - Provides clear guidelines for when to use heartbeat polls versus cron jobs. - Suggests typical checks (e.g., email, calendar, social mentions) and how often to rotate them. - Tracks status of checks in `memory/heartbeat-state.json` for efficient periodic monitoring. - Details proactive maintenance of memory files and guidelines for updating `MEMORY.md`. - Emphasizes balancing helpfulness with minimizing unnecessary interruptions.
元数据
Slug heartbeats
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Heartbeats 是什么?

Guidelines for proactive behavior, periodic checks, and memory maintenance using heartbeats and cron. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 264 次。

如何安装 Heartbeats?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install heartbeats」即可一键安装,无需额外配置。

Heartbeats 是免费的吗?

是的,Heartbeats 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Heartbeats 支持哪些平台?

Heartbeats 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Heartbeats?

由 FlayZz(@flayzz)开发并维护,当前版本 v1.0.0。

💬 留言讨论