返回顶部
n

nag持续提醒系统

Persistent reminder system that keeps bugging you until you confirm completion. Use when setting up recurring reminders, nag schedules, or any task that needs follow-up until acknowledged. Handles daily resets, configurable nag windows, escalating urgency, and natural-language confirmation matching. Do NOT use for one-shot reminders (use cron instead) or time-sensitive alerts that need immediate action (use cron with wakeMode now).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.3
安全检测
已通过
219
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

nag

Nag — 持久提醒

Nag 管理那些不会放弃的提醒。每个提醒都有首次触发时间、提醒窗口,并且每天重置。

何时使用

  • - 重复的日常习惯(补充剂、锻炼、练习)
  • 那些没有跟进就会被忽略/遗忘的任务
  • 任何提醒我一次不够用的情况

何时不使用

  • - 一次性提醒(20分钟后提醒我)——请使用带有 schedule.kind: at 的定时任务
  • 不能等待心跳周期的时间关键型警报
  • 不需要确认的提醒(仅作信息参考)

设置

1. 状态文件

在工作区中创建 memory/nag-state.json:

json
{
date: 2026-02-15,
reminders: {}
}

日期字段会触发自动每日重置——当今天的日期与存储的日期不同时,所有提醒都会重置为未确认状态。

2. 提醒配置

在工作区根目录创建 nag-config.json:

json
{
reminders: [
{
id: morning-supplements,
label: 早晨补充剂,
cronFirst: 0 8 *,
nagAfter: 09:00,
confirmPatterns: [已服用, 已完成, 吃过了, 做完了, 是的],
tone: 友好但坚持,3次提醒后升级为全大写戏剧化风格,
messages: {
first: 该吃早晨补充剂了!
}
}
]
}

字段说明:

字段必填描述
id唯一标识符,用作状态文件中的键
label
是 | 用于显示的人类可读名称 |
| cronFirst | 是 | 首次提醒的 Cron 表达式(为此创建一个定时任务) |
| nagAfter | 是 | 心跳提醒开始的时间(HH:MM,24小时制) |
| confirmPatterns | 是 | 标记提醒已完成的关键词数组(不区分大小写,子串匹配) |
| tone | 否 | 生成提醒消息的个性指导。如果缺失,使用中性友好的语气。模型可以自由发挥,每次提醒变换措辞。 |
| messages.first | 否 | 定时任务发送的首次提醒文本。如果缺失,根据 label + tone 生成。 |
| messages.nag | 否 | 建议的提醒文本。如果缺失,根据 label + tone + nagCount 上下文生成。 |
| messages.escalate | 否 | 3次以上被忽略提醒后的建议文本。如果缺失,根据 tone 以更高紧迫性生成。 |
| days | 否 | 限制提醒触发的星期名称数组(例如 [monday, wednesday, friday])。省略则每天触发。 |

更多示例请参见 references/config-examples.md

消息生成: 当 messages.nag 或 messages.escalate 缺失时,使用 label 和 tone 字段即时生成。每次变换措辞——不要逐字重复相同的提醒。使用 nagCount 校准紧迫性:低次数 = 温和,3次以上 = 升级。

3. 连接定时任务 + 心跳

为每个提醒创建一个定时任务,在 cronFirst 调度时间触发 messages.first。

HEARTBEAT.md 中添加提醒检查块:

提醒检查

读取 nag-config.json 和 memory/nag-state.json。 对于 nag-config.json 中的每个提醒:
  • - 如果状态中的日期与今天不同,重置所有提醒(设置 confirmed: false, nagCount: 0)。
  • 如果今天的星期不在提醒的 days 数组中(如果指定了),则跳过。
  • 如果当前时间在 nagAfter 之后且 confirmed 为 false:向用户发送提醒消息。
- 根据提醒的 label 和 tone 生成消息(如果提供了 messages.nag 则使用它)。 - 如果 nagCount >= 3,升级紧迫性(如果提供了 messages.escalate 则使用,否则以更高强度生成)。 - 在状态中递增 nagCount。
  • - 不要在 nagAfter 时间之前提醒。

4. 确认处理

当用户发送的消息匹配某个提醒的任何 confirmPatterns 时,更新 memory/nag-state.json:

json
{
date: 2026-02-15,
reminders: {
morning-supplements: {
confirmed: true,
confirmedAt: 09:06,
nagCount: 1
}
}
}

通过检查用户消息中是否包含任何模式(不区分大小写,子串匹配)来匹配确认。当存在歧义时(多个提醒可能匹配),匹配当前处于提醒窗口中的那个。

添加新提醒

  1. 1. 在 nag-config.json 中添加条目
  2. 为 cronFirst 调度创建一个定时任务
  3. 心跳提醒块会自动处理其他所有内容

移除提醒

  1. 1. 从 nag-config.json 中移除条目
  2. 移除或禁用对应的定时任务
  3. 可选:从 memory/nag-state.json 中清理其键

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 nag-1776420090 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 nag-1776420090 技能

通过命令行安装

skillhub install nag-1776420090

下载

⬇ 下载 nag v1.0.3(免费)

文件大小: 4.73 KB | 发布时间: 2026-4-17 18:47

v1.0.3 最新 2026-4-17 18:47
Version 1.0.3 of the nag skill

- No file changes detected in this release.
- No updates to user-facing behavior or documentation.
- All existing functionality, setup, and configuration remain unchanged.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部