Documentation v1.0.0

let-me-know

Notify the user before starting any long-running task and keep them updated. Use when a task will take noticeable time...

fogyoy 更新于 2026-02-06 1 浏览
下载 SKILL

技能说明

Notify the user before starting any long-running task and keep them updated. Use when a task will take noticeable time (>2-3 minutes). Send a start message, schedule a 5‑minute heartbeat update, and send a completion message immediately when done.

使用场景

Notify the user before starting any long-running task and keep them updated. Use when a task will take noticeable time (>2-3 minutes). Send a start message, schedule a 5‑minute heartbeat update, and send a completion message immediately when done.

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

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

技能文件内容

3 个文件 · 14 kB
SKILL.md text/markdown
---
name: let-me-know
description: Notify the user before starting any long-running task and keep them updated. Use when a task will take noticeable time (>2-3 minutes). Send a start message, schedule a 5‑minute heartbeat update, and send a completion message immediately when done.
---

# Let Me Know

## Purpose
Ensure the user is informed **before** long-running tasks start, gets periodic updates on a **configurable interval** (default 5 minutes), and receives an immediate completion/failure notice. Heartbeat messages must reflect **real-time progress**, not a repeated template.

## Trigger
Use this skill whenever a task will take noticeable time (>2–3 minutes) or involves long-running installs/builds/tests.

## Workflow (required)

1) **Pre-flight message** (before starting):
- Send a short message: what will run, estimated time, and explicitly state:
  - “完成或失败都会立刻通知你;期间我每 **X 分钟** 发一次进度心跳,您也可以修改心跳时间间隔。”

2) **Start a heartbeat (configurable interval, with pre-check)**
- **Default interval = 5 minutes** (`everyMs=300000`). If the user specifies a different interval, use it.
- Schedule repeating updates while the task runs.
- **Before each heartbeat message**, read the latest progress (state file/logs) and send **current** progress (no repeated template):
  - Running → include latest step, progress metrics, and next step.
  - Failed → send failure notice **and stop the heartbeat**.
- Use `cron add` with `everyMs=<intervalMs>` and deliver via `message send`.
- Content template (dynamic):
  - Running: `进度:<最新步骤/阶段>(<关键指标>)。下一步:<next>。完成/失败会立刻通知你。`
  - Failed: `失败:<task> 发生错误(简述原因)。已停止心跳提醒。`

3) **Run the task**
- Execute the long-running command(s).

4) **Completion message** (immediately after finish)
- Send result summary (success/failure + key output).

5) **Stop heartbeat**
- Remove the heartbeat cron job to avoid continued messages.

## Heartbeat interval (user-configurable)
- Default: **5 minutes**.
- If the user specifies an interval (e.g., “每 2 分钟/10 分钟”), use that value.
- If the user changes the interval mid-task, update the cron schedule and acknowledge in the next heartbeat.

## Message Delivery
Prefer outbound normal chat messages:
- Use `message send` with the correct target format.
- Example for Discord DM: `user:<id>`.

## Safety
- Do not start long tasks without the pre-flight message.
- If blocked/failed, notify immediately, set state=failed, and stop the heartbeat.
- If cron removal fails due to gateway timeout, retry removal; if still stuck, use gateway restart (requires `commands.restart: true`) and retry.

## Example (Discord DM)

**Start message:**
- `即将开始:安装依赖并运行测试(预计 5–10 分钟)。完成或失败都会立刻通知你;期间我每 5 分钟发一次进度心跳,你也可以修改心跳时间间隔。`

**Heartbeat (every 5 min, example):**
- `进度:已完成安装依赖(1/2),测试运行中(已用时 4 分钟)。下一步:汇总测试结果。完成/失败会立刻通知你。`

**Completion:**
- `完成:安装成功,测试通过。`

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