← 返回 Skills 市场
hardik500

Sleep Snooze

作者 Hardik500 · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
386
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install sleep-snooze
功能描述
Snooze incoming notifications during your sleep window and receive a morning digest when you wake up. Supports Telegram, WhatsApp, and any provider OpenClaw...
安全使用建议
This skill appears to implement the advertised snooze/digest features and stores everything locally, but review these points before installing: 1) The installer (sleep-init.js) will modify your crontab to schedule sleep/wake jobs — check the exact cron lines it will add and prefer a manual crontab install if you want control. 2) The skill writes persistent files under ~/.openclaw/skills/sleep-snooze/data/ (including the SQLite queue containing message text); ensure you are comfortable with queued messages being stored locally and review file permissions. 3) There is an inconsistency: SKILL.md recommends using scripts/status.js to check isSleeping, but the code paths that actually gate sends use lib/sleep-check.loadSleepState() (which computes sleep from current time). status.js reads the stored flag and can be stale — rely on gate.js/loadSleepState for accurate checks. 4) The setup suggests detecting timezone with `date +%Z` but the code expects an IANA zone (e.g., America/New_York) — pick a proper IANA timezone when configuring. 5) If you accept, inspect the code (present in the package) and consider running sleep-init with cron registration disabled or manually add cron entries. If you need lower risk, consider asking for a build/install log or running the skill in a sandboxed account first.
功能分析
Type: OpenClaw Skill Name: sleep-snooze Version: 1.0.2 The sleep-snooze skill is a notification management tool that queues messages during a user-defined sleep window and delivers a morning digest. It uses local SQLite storage (~/data/queue.db) and system crontab manipulation (via sleep-init.js) to handle scheduling, which are high-privilege but legitimate actions for its stated purpose. The code uses safe execution patterns (spawnSync with argument arrays) to prevent shell injection, and the prompt instructions in SKILL.md and SLEEP_MODE_ACTIVE.md are strictly functional, guiding the agent to respect sleep hours without attempting to subvert security boundaries or exfiltrate data.
能力评估
Purpose & Capability
Name/description match the code: hooks intercept incoming messages, messages are queued in a local SQLite DB, and a morning digest is generated. Declared dependencies (node, better-sqlite3, node-cron) are appropriate for the functionality.
Instruction Scope
SKILL.md tells callers to use status.js to check isSleeping before sending, but the runtime hooks and gate.js call lib/sleep-check.loadSleepState() (which computes state from current time). status.js returns the stored state.isSleeping value from state.json (which can be stale). This is an inconsistency that could cause incorrect behavior. The docs also suggest using `date +%Z` to detect timezone (which yields an abbreviation, not an IANA name the code expects). Aside from these mismatches, the instructions direct only local reads/writes under ~/.openclaw/skills/sleep-snooze/, which is within scope.
Install Mechanism
Install uses npm packages (better-sqlite3 and node-cron) — no remote arbitrary downloads or unknown hosts. Note: better-sqlite3 is a native module that may require build tools; the install spec is proportionate to the task.
Credentials
The skill declares no required credentials and stores data locally. SKILL.md and references mention optional environment variables (SLEEP_START, WAKE_TIME, TIMEZONE) as alternative config — those are optional, which explains their absence from requires.env. No unrelated credentials are requested.
Persistence & Privilege
sleep-init.js will register cron jobs by editing the user's crontab and writes files under ~/.openclaw/skills/sleep-snooze/data/ (state.json, queue.db, vip-contacts.json). Modifying the user's crontab is a persistent system change and should be made explicit to the user; hooks also inject bootstrap files into agent contexts, affecting other agents' behavior. These privileges are coherent with scheduling, but are significant and warrant user review.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install sleep-snooze
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /sleep-snooze 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Fix: time-based sleep check (no longer depends on cron flipping isSleeping); gate.js wrapper for all outgoing sends; dm-guard hook auto-replies to DM senders during sleep
v1.0.1
Fix: agent:bootstrap hook now enforces sleep mode at session start, preventing agents from bypassing the queue
v1.0.0
Initial release
元数据
Slug sleep-snooze
版本 1.0.2
许可证
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Sleep Snooze 是什么?

Snooze incoming notifications during your sleep window and receive a morning digest when you wake up. Supports Telegram, WhatsApp, and any provider OpenClaw... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 386 次。

如何安装 Sleep Snooze?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install sleep-snooze」即可一键安装,无需额外配置。

Sleep Snooze 是免费的吗?

是的,Sleep Snooze 完全免费(开源免费),可自由下载、安装和使用。

Sleep Snooze 支持哪些平台?

Sleep Snooze 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Sleep Snooze?

由 Hardik500(@hardik500)开发并维护,当前版本 v1.0.2。

💬 留言讨论