Heartbeat Task Automator for Openclaw

A robust scheduling and execution engine for managing recurring AI agent tasks, trading logic, and system maintenance.

wuzimaki
v1.0.0
Mar 4, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install heartbeat-tasks

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install heartbeat-tasks using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Heartbeat Task Automator?

The Heartbeat Task Automator is a specialized component designed for the PAI system to manage periodic tasks and system health. As a vital part of Openclaw Skills, it provides a structured framework for executing high-frequency operations like crypto market monitoring alongside long-term maintenance tasks like memory pruning and archiving.

This skill eliminates the need for manual triggers by establishing a consistent heartbeat. It intelligently batches operations to reduce API consumption and provides detailed status tracking through localized JSON state management, ensuring your agent remains synchronized and efficient across multiple operational domains.

Heartbeat Task Automator Use Cases

  • Executing high-frequency crypto trading algorithms and rule validation every 10 minutes.
  • Automated daily summarization of financial performance and trading logs.
  • Scheduled memory management to extract high-value insights and archive stale data weekly.
  • Proactive system monitoring to report anomalies and maintain high availability.

How Heartbeat Task Automator Works

  1. The system initiates a heartbeat pulse to check for pending scheduled tasks.
  2. It references the local state file to determine which workflows (trading, memory, or review) are due based on their specific intervals.
  3. The skill batches related tasks into a single execution context to optimize performance and API usage.
  4. AI-driven decisions are processed and validated against predefined business rules (e.g., R001-R006 for trading).
  5. Execution results and system health metrics are logged to the state file, and an status report is generated.

Heartbeat Task Automator Setup

To integrate this heartbeat mechanism into your environment for Openclaw Skills, ensure you have the required configuration files in place.

# Create the necessary state directory
mkdir -p memory/

# Initialize the heartbeat configuration and state tracking
touch HEARTBEAT.md
echo '{}' > memory/heartbeat-state.json

Configure your tasks within HEARTBEAT.md following the provided template to define intervals and execution logic.

Heartbeat Task Automator Data Schema & Taxonomy

File Path Purpose Format
HEARTBEAT.md Task configuration and schedule definitions Markdown
heartbeat-state.json Execution history, last run timestamps, and system statistics JSON
MEMORY.md Target for high-value memory extraction Markdown
trading_rules.md Repository for updated trading patterns and rules Markdown

Heartbeat Task Automator Advanced Features

  • Silent Execution: Provides a non-intrusive HEARTBEAT_OK response when operations are running normally to reduce system noise.
  • Intelligent Batching: Combines multiple logic checks into single pulses to maximize efficiency within Openclaw Skills.
  • State Persistence: Tracks granular execution statistics and system health over time to ensure a 99% execution success rate.
  • Rule-Based Validation: Supports complex rule sets (R001-R006) for automated decision-making during execution pulses.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*