Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

sleep-snooze睡觉打瞌睡

Agent Skill

sleep-snooze 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,732

周安装

484

GitHub Stars

1

下载量

3,833
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sleep-snooze(睡觉打瞌睡)
来源仓库:https://github.com/hardik500/sleep-snooze
安装命令:
openclaw skills install sleep-snooze
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install sleep-snooze

简介

在睡眠时段暂停通知,醒来后接收摘要的智能管理工具。

  • 适合需要安静休息环境、避免夜间打扰的用户场景。
  • 支持 Telegram、WhatsApp 等平台的通知静默与汇总推送。
  • 使用时需授权对应通讯渠道,注意隐私与消息同步机制。
  • 建议提前测试触发条件,避免错过重要信息。sleep-snooze 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
sleep-snooze
version
1.0.0
description
Snooze incoming notifications during your sleep window and receive a morning digest when you wake up. Supports Telegram, WhatsApp, and any provider OpenClaw is connected to.
user-invocable
true
metadata
openclaw
emoji
🌙
homepage
https://github.com/Hardik500/sleep-snooze
requires
bins
install
package
better-sqlite3
bins
package
node-cron
bins

Sleep Snooze

You have a sleep notification snooze system available. When the user is in their sleep window, incoming messages should be silently queued rather than delivered immediately. At wake time, a morning digest is automatically sent summarising all queued messages.

Sleep Schedule

The user's sleep schedule is configured via environment variables:

  • SLEEP_START — time to begin snoozing (24h format, e.g. 22:00)
  • WAKE_TIME — time to deliver the digest and resume normal notifications (e.g. 06:00)
  • TIMEZONE — IANA timezone (e.g. Asia/Kolkata, America/New_York, Europe/London)

Slash Commands

Users can invoke these slash commands directly in chat:

  • /sleep — manually activate sleep mode immediately (overrides schedule)
  • /wake — manually deactivate sleep mode and trigger the morning digest now
  • /snooze-status — show whether sleep mode is active, how many messages are queued, and what time the digest will be sent
  • /snooze-setup — interactively configure sleep start time, wake time, and timezone
  • /snooze-history — show the last 7 days of digest summaries

Behaviour During Sleep Hours

Before sending ANY message to the user — including proactive notifications, summaries, heartbeats, weekly recaps, stock alerts, backup confirmations, or any other automated report — first check sleep state:

node ~/.openclaw/skills/sleep-snooze/scripts/status.js

If isSleeping is true, do NOT send. Queue it instead (see below). This applies to both incoming messages from others AND outgoing messages you are about to send proactively.

Incoming messages during sleep

When a message or notification arrives during the sleep window:

  1. Do not deliver a push notification or respond immediately.
  2. Call node ~/.openclaw/skills/sleep-snooze/scripts/queue-message.js with the message payload to store it in the local queue.
  3. Acknowledge silently — do not send any reply to the sender during sleep hours unless the message is tagged as urgent (see Urgency Rules below).

Outgoing messages you generate during sleep

When you (or any agent) are about to send a proactive message — status updates, recaps, reports, heartbeats — use gate.js instead of sending directly. It handles the sleep check and queuing automatically:

node ~/.openclaw/skills/sleep-snooze/scripts/gate.js \
  --provider <provider> \
  --sender-id <agent-id> \
  --sender-name "<Agent Name>" \
  --message "<full message text>"

Exit codes:

  • 0 — sleeping, message was queued — do NOT send
  • 2 — sleeping but urgent — send with 🚨 prefix
  • 3 — awake — send normally

Use gate.js for ALL outgoing messages. It checks the actual current time against the schedule, so it works even if the sleep-mode cron did not run.

Urgency Rules

Some messages bypass snooze and are delivered immediately regardless of sleep hours. A message is considered urgent if any of the following match:

  • The sender is on the user's VIP contacts list (stored in ~/.openclaw/skills/sleep-snooze/data/vip-contacts.json)
  • The message contains any of these keywords (case-insensitive): urgent, emergency, critical, 911, help me
  • The message was explicitly marked priority by the sending system

For urgent messages: deliver normally, prepend 🚨 [URGENT - received during sleep] to the notification.

Morning Digest

At WAKE_TIME each day, automatically:

  1. Call node ~/.openclaw/skills/sleep-snooze/scripts/digest.js to generate and send the digest.
  2. The digest groups messages by sender, shows count, and includes a brief summary of each conversation thread.
  3. After sending, the queue is cleared.

Digest format (send as a single message per provider):

🌅 Good morning! Here's what arrived while you slept:

📬 3 messages from Alex
  • "Hey are you free tomorrow?"
  • "Also wanted to share this article..."
  • "Never mind, talk later!"

📬 1 message from GitHub Notifications
  • PR #42 was merged into main

📬 2 messages from Server Monitor Bot
  • CPU spike at 03:14 — resolved
  • Disk usage at 78% — check when available

Reply to any sender's name to respond to their messages.

Setup Instructions

When the user runs /snooze-setup for the first time:

  1. Ask for their sleep start time (e.g. "What time do you usually go to bed?")
  2. Ask for their wake time (e.g. "What time do you usually wake up?")
  3. Ask for their timezone (offer to detect it automatically using date +%Z)
  4. Run node ~/.openclaw/skills/sleep-snooze/scripts/sleep-init.js to write config and register cron jobs
  5. Confirm the schedule back to the user: "Sleep snooze is set: 🌙 10:00 PM → ☀️ 6:00 AM (IST). I'll queue notifications overnight and send your digest at 6:00 AM."

State Management

Sleep mode state is stored in ~/.openclaw/skills/sleep-snooze/data/state.json:

{
  "sleepStart": "22:00",
  "wakeTime": "06:00",
  "timezone": "Asia/Kolkata",
  "manualOverride": false,
  "isSleeping": false,
  "lastDigestAt": "2025-01-15T06:00:00.000Z"
}

The message queue is stored in SQLite at ~/.openclaw/skills/sleep-snooze/data/queue.db.

Important Notes

  • Sleep snooze works across all connected providers (Telegram, WhatsApp, Discord, Slack, Signal) simultaneously.
  • If the user asks "did I miss anything?" or similar during sleep hours, check queue size and respond: "You have X messages queued. I'll send your digest at [WAKE_TIME]."
  • If the user sends a message themselves during their sleep window, it means they are awake — temporarily suspend sleep mode for 30 minutes.
  • Never discard messages. If delivery fails, retry at next digest cycle.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.33%
按下载量换算2,887

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills