微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🏎️

高频任务监控,一键启停

Sport Mode · v1.0.0
效率 安全 A 级 作者 l1vein 公开目录收录
下载 1.9k 安装 0 收藏 5.7k 浏览 1
下载 Skill

简介

一键切换高频监控模式,3分钟心跳间隔自动追踪长时间任务(如代码生成、构建),内置安全回退机制。

原始描述

Activate "Sport Mode" for high-frequency monitoring (default 3m heartbeat) and auto-cleanup. Use when supervising intense tasks (Codex, builds, migrations).

通过你的 Agent 添加

把这个链接发给你正在用的 Agent,让它自己下载安装:

或者手动装到对应目录

Claude Code~/.claude/skills/sport-mode/
其它 Agent解压到它自己的 skills 目录即可

技能包里是 SKILL.md 加它附带的文件,解压后目录名就是技能名。 不同 Agent 的 skills 目录位置以各自文档为准;技能申请的权限由作者决定,装前请确认它要读什么、能执行什么。

技能正文


name: sport-mode description: Activate "Sport Mode" for high-frequency monitoring (3m heartbeat) and auto-cleanup. Use when supervising intense tasks (Codex, builds, migrations). metadata: { "openclaw": { "emoji": "🏎️" } }

Sport Mode (运动模式)

Temporarily boost heartbeat frequency (default 3m) and inject a monitoring task into HEARTBEAT.md. Perfect for supervising background agents (Codex), long-running builds, or interactive games.

Usage

# Turn ON: Set heartbeat to 3m and set monitoring task
sport-mode on --task "Check Codex progress. If done, run sport-mode off."

# Custom Interval: Set to 1 minute
sport-mode on --task "Game tick" --every "1m"

# Turn OFF: Reset heartbeat to 30m and clear HEARTBEAT.md
sport-mode off

How it works

  1. ON:
    • Patches ~/.openclaw/openclaw.json (hot-reload) to set heartbeat.every.
    • Writes your task to HEARTBEAT.md with a "Sport Mode Active" header.
  2. OFF:
    • Patches config back to 30m (default).
    • Clears HEARTBEAT.md.

Best Practices (最佳实践)

1. Set a Finish Line (设定终点线)

Unless you want an endless marathon, always define a termination condition in your task.

  • ✅ Good: "Monitor build. If success or fail, run sport-mode off."
  • ❌ Bad: "Monitor build." (Agent might keep reporting "Done" forever until you manually stop it).

2. State Machine in File (文件状态机)

For multi-step tasks (like games or staged deployments), let the agent update HEARTBEAT.md itself.

  • Pattern: Read state -> Execute step -> Write new state -> Sleep.
  • This keeps the agent "stateless" (doesn't rely on conversation history context window) but the task "stateful".

3. Use tmux for Visibility (搭配 tmux)

If the monitoring task involves terminal output (e.g., Codex coding, compiling), running the task in a tmux session is ideal.

  • The agent can inspect the pane (tmux capture-pane) without interfering.
  • The user can attach (tmux attach) to watch live.

4. Silence is Golden (保持安静)

For high-frequency modes (e.g., 1m), avoid spamming "Nothing happened".

  • Configure the agent to reply HEARTBEAT_OK (silence) if the status hasn't changed.
  • Only notify the user on milestone completion, errors, or final success.

Implementation Note

This skill uses openclaw config set to safely patch configuration at runtime, triggering a seamless Gateway reload.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

其他来源收录

同一技能在不同目录的原始页面:

标签

system-toolmonitoringheartbeatcodexautomationtmux

同类 Skill