Tool v1.0.0

sport-mode

启用“运动模式”以进行高频监控(默认3分钟心跳)和自动清理,适用于监控高强度任务(如Codex、构建、迁移)

ClawHub 更新于 2026-03-24 17 浏览
下载 SKILL

技能说明

启用“运动模式”以进行高频监控(默认3分钟心跳)和自动清理,适用于监控高强度任务(如Codex、构建、迁移)

使用场景

Enable Sport Mode for high-frequency monitoring and auto-cleanup during intense tasks like Codex, builds, or migrations

查看英文原始说明

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

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/sport-mode
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

5 个文件 · 17 kB · zip 9.7 kB
手动下载 zip · 9.7 kB
SKILL.md text/markdown
---
name: sport-mode
description: Activate "Sport Mode" for high-frequency monitoring (default 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

```bash
# 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
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.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。