ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified productivity Safety 4/5

goal-heartbeat-engine

多目标轮转心跳引擎。当 cron 心跳触发、或 Agent 需要自主决定下一步行动时自动调用。提供:骰子随机模式选择、目标健康度追踪、防重复机制、接力棒续跑、产出质量红线。适用于任何需要在多个长期目标间智能轮转、持续产出的 AI Agent 系统。

Why use this skill?

Master multi-goal rotation with the Goal Heartbeat Engine. Ensure your AI agent stays productive with state-driven heartbeat cycles, health tracking, and enforced output quality.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/wilsonliu95/goal-heartbeat
Or

What This Skill Does

The goal-heartbeat-engine is an advanced state machine designed to keep your OpenClaw AI agents productive and focused. It operates on a strict principle: every "heartbeat" (triggered by cron or自主 decision) must result in a tangible, high-quality output. It manages a rotation between multiple long-term objectives, ensuring no goal is neglected while maintaining a healthy, non-repetitive workflow. By tracking "goal health" and maintaining a persistent state in PULSE.md and GOALS.md, the engine forces the agent to move beyond planning into active execution. It employs a dice-roll mechanism for task selection to prevent path dependency, enforces quality "red lines" to ensure deep work, and tracks a relay-style task continuation system to handle complex, multi-stage projects.

Installation

To integrate this engine into your OpenClaw environment, execute the following command in your terminal: clawhub install openclaw/skills/skills/wilsonliu95/goal-heartbeat After installation, ensure your workspace/memory/ directory is prepared with a properly formatted GOALS.md file, as the engine depends on this to perform its health checks and task assignment.

Use Cases

  • Autonomous Research Agent: Use this to cycle between market research, competitor analysis, and personal knowledge management, ensuring each target gets consistent attention.
  • Content Creation Pipeline: Manage multiple writing projects simultaneously, ensuring the agent constantly pushes forward progress without getting stuck on a single task for too long.
  • Software Development Lifecycle: Keep an agent focused on balancing refactoring, feature implementation, and technical debt resolution across a project codebase.

Example Prompts

  • "Initialize the goal-heartbeat-engine by scanning my current tasks in GOALS.md and starting the first rotation."
  • "Review the recent pulse logs and explain why the agent prioritized the 'Productivity Tool' goal over the 'Market Research' objective during the last cycle."
  • "Force a manual heartbeat trigger to ensure the 'Data Cleanup' task is finished before the end of the current session."

Tips & Limitations

  • Tip: Regularly review the PULSE.md file to verify that the agent's "health metrics" align with your actual priorities. If a goal is consistently labeled STARVED, increase the weight of its sub-tasks in GOALS.md.
  • Limitation: The engine is designed for long-term goal management. It may be overkill for simple, singular tasks or reactive workflows. Always ensure your "Red Lines" are clearly defined to prevent the agent from delivering superficial work.

Metadata

Stars919
Views0
Updated2026-02-12
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-wilsonliu95-goal-heartbeat": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#automation#productivity#state-machine#agent-management
Safety Score: 4/5

Flags: file-write, file-read, code-execution