← Back to Skills Marketplace
flayzz

Heartbeats

by FlayZz · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
264
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install heartbeats
Description
Guidelines for proactive behavior, periodic checks, and memory maintenance using heartbeats and cron.
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install heartbeats
  3. After installation, invoke the skill by name or use /heartbeats
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug heartbeats
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Heartbeats?

Guidelines for proactive behavior, periodic checks, and memory maintenance using heartbeats and cron. It is an AI Agent Skill for Claude Code / OpenClaw, with 264 downloads so far.

How do I install Heartbeats?

Run "/install heartbeats" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Heartbeats free?

Yes, Heartbeats is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Heartbeats support?

Heartbeats is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Heartbeats?

It is built and maintained by FlayZz (@flayzz); the current version is v1.0.0.

💬 Comments