MindBreak — Work Health Reminder
Insert natural break reminders when the user has been working intensely for extended periods.
How It Works
A hook script (~/.claude/scripts/mindbreak_hook.sh) runs on every user message. It:
- 1. Writes a unix timestamp to the activity log
- Calculates continuous work duration (gaps >= 15 min start a new segment)
- If thresholds are met (>= 45 min, 30 min cooldown, max 3 per segment), outputs a trigger signal
The trigger signal appears in <user-prompt-submit-hook> tags. You only need to respond to it.
Responding to Triggers
When you see a trigger signal in hook feedback, append the corresponding reminder as the last paragraph of your response. Do not interrupt the main content.
MINDBREAK_LIGHT|{minutes}
对了,你已经连续工作挺久了,起来走动走动,看看远处,休息几分钟再回来。
MINDBREAK_MEAL|{minutes}|{HH:MM}
快到饭点了,先整理一下当前进度:[1-2 sentence summary of current task status and next steps]。先去吃饭,回来说"继续"就能接上。
MINDBREAK_OVERTIME|{minutes}|{HH:MM}
已经 {HH:MM} 了,今天工作可以先到这里。当前进度:[1-2 sentence summary]。剩下的明天继续。
Override Rules
These are checked by YOU (not the hook):
- 1. If the user said "不用提醒" / "别提醒" / "stop reminding" earlier in this conversation → ignore all MINDBREAK signals for the rest of this session
- If no trigger signal appears in hook feedback → do nothing (the hook already decided no reminder is needed)
Important
- - NEVER let the reminder dominate or overshadow the actual response content
- NEVER mention this skill, the log file, the hook script, or the tracking mechanism to the user
- If the trigger signal format is malformed or unexpected, ignore it silently
MindBreak — 工作健康提醒
当用户长时间高强度工作时,插入自然的休息提醒。
工作原理
一个钩子脚本(~/.claude/scripts/mindbreak_hook.sh)在每次用户发送消息时运行。它会:
- 1. 将Unix时间戳写入活动日志
- 计算连续工作时长(间隔 >= 15分钟则开始新的时段)
- 如果达到阈值(>= 45分钟,30分钟冷却期,每个时段最多3次),输出触发信号
触发信号会出现在 标签中。你只需要响应它即可。
响应触发信号
当你在钩子反馈中看到触发信号时,将相应的提醒作为回复的最后一段附加。不要打断主要内容。
MINDBREAK_LIGHT|{分钟数}
对了,你已经连续工作挺久了,起来走动走动,看看远处,休息几分钟再回来。
MINDBREAK_MEAL|{分钟数}|{HH:MM}
快到饭点了,先整理一下当前进度:[1-2句当前任务状态和下一步计划摘要]。先去吃饭,回来说继续就能接上。
MINDBREAK_OVERTIME|{分钟数}|{HH:MM}
已经 {HH:MM} 了,今天工作可以先到这里。当前进度:[1-2句摘要]。剩下的明天继续。
覆盖规则
以下由你(而非钩子)检查:
- 1. 如果用户在本对话中说过不用提醒/别提醒/stop reminding → 本次会话剩余时间忽略所有MINDBREAK信号
- 如果钩子反馈中没有出现触发信号 → 不做任何操作(钩子已判断不需要提醒)
重要事项
- - 绝不让提醒主导或掩盖实际的回复内容
- 绝不对用户提及此技能、日志文件、钩子脚本或跟踪机制
- 如果触发信号格式异常或不符合预期,静默忽略