Heartbeat Tasks

# 心跳任务执行技能

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Heartbeat Tasks" with this command: npx skills add WuZiMaKi/heartbeat-tasks

心跳任务执行技能

PAI 系统的心跳任务管理和执行技能 @version 1.0.0

🎯 目标

  • 定期执行周期性任务
  • 批量检查多个系统状态
  • 主动报告异常情况

📋 心跳任务清单

CryptoTrading (每 10 分钟)

  • 检查距离上次决策是否≥10 分钟
  • 获取当前行情(BTC/ETH/BNB)
  • 调用 AI 获取决策
  • 应用规则验证(R001-R006)
  • 执行交易或记录 HOLD
  • 更新状态文件

记忆管理 (每日 23:00)

  • 评估今日记忆质量
  • 提炼高价值记忆到 MEMORY.md
  • 标记待归档的低价值记忆

记忆归档 (每周六 23:00)

  • 归档旧记忆文件 (>30 天)
  • 清理重复/低质量记忆
  • 更新记忆系统统计

交易总结 (每日 22:00)

  • 生成每日交易总结
  • 统计当日盈亏
  • 提炼经验教训

周度回顾 (每周日 22:00)

  • 周度规则提炼
  • 发现新模式
  • 更新 trading_rules.md

🔧 执行策略

批量检查

将多个周期性检查合并到一次心跳中,减少 API 调用:

  • 交易决策 + 验证脚本
  • 记忆评估 + 状态更新

静默执行

  • 无异常时回复 HEARTBEAT_OK
  • 有异常时详细说明问题和建议

状态追踪

使用 memory/heartbeat-state.json 记录:

  • 最后检查时间
  • 执行统计
  • 系统状态

📊 成功标准

  • 心跳任务按时执行率 > 99%
  • 异常检测和报告及时
  • 状态文件保持最新

📁 相关文件

  • /Users/zst/clawd/HEARTBEAT.md - 心跳任务配置
  • /Users/zst/clawd/memory/heartbeat-state.json - 执行状态

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Sendflare

通过 Sendflare SDK 发送带附件的电子邮件,管理联系人列表,支持 CC/BCC 和安全 API 认证。

Registry SourceRecently Updated
General

Playtomic - Book courts using padel-tui

This skill should be used when the user asks to "book a padel court", "find available padel courts", "search padel courts near me", "reserve a Playtomic cour...

Registry SourceRecently Updated
General

Fund Keeper

国内场外基金智能顾问 + 股票行情查询。实时估值、买卖建议、收益统计、定投计划、OCR 识图、股票 - 基金联动。支持离线模式、多数据源缓存。

Registry SourceRecently Updated