Sleep Channel Tracker for Openclaw

A deterministic sleep tracker that turns Discord channels into precise, metadata-grounded sleep logs.

cdmichaelb
v1.1.0
Apr 5, 2026
0
786
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install sleep-channel

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install sleep-channel using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Sleep Channel Tracker?

The Sleep Channel skill is designed to provide a reliable, hallucination-free way to track sleep patterns within a dedicated Discord channel. By leveraging the power of Openclaw Skills, this tool avoids the common pitfalls of LLM-based time tracking by grounding every entry in the actual UTC timestamps of Discord messages. It ensures that dates, times, and durations are calculated with mathematical precision rather than generative estimation.

Built for developers and power users who want a seamless way to log rest periods, the skill uses a dedicated Python script to handle data mutations. This approach ensures that your sleep history remains a source of truth, formatted correctly according to your specific IANA timezone while residing safely within your local workspace.

Sleep Channel Tracker Use Cases

  • Logging sleep events like falling asleep or waking up directly via Discord messages.
  • Correcting the most recent sleep entry when a typo or mistake is made.
  • Generating a formatted summary of recent sleep logs without manual calculations.
  • Tracking naps and irregular rest cycles using natural language triggers.

How Sleep Channel Tracker Works

  1. The AI agent identifies a sleep-related message in the configured Discord channel.
  2. The skill extracts the source Discord metadata, including the Message ID, Author ID, and the precise UTC timestamp.
  3. The agent invokes the tracker script, passing the message text and metadata to classify the event type.
  4. The system calculates the local time based on the SLEEP_TIMEZONE environment variable.
  5. Data is committed to the local workspace, and the agent confirms the action or renders the updated log to the user.

Sleep Channel Tracker Setup

To get started with this skill in your Openclaw Skills environment, configure the required environment variables:

# Set your local timezone (IANA format)
export SLEEP_TIMEZONE="America/Los_Angeles"

# Optional: Define your workspace path
export WORKSPACE="~/.openclaw/workspace"

Ensure that the scripts/tracker.py file is accessible within your skill directory to handle the logic for adding, correcting, and rendering entries.

Sleep Channel Tracker Data Schema & Taxonomy

The skill organizes sleep data based on the following metadata structure:

Attribute Description
Message Text The raw content of the Discord message used for classification.
Channel/Message ID Unique identifiers used to prevent duplicate entries and map corrections.
Author ID Ensures logs are associated with the correct user in shared environments.
UTC Timestamp The source of truth for the event time, derived from Discord's system clock.
Local Time The final display time, adjusted via the SLEEP_TIMEZONE setting.

Sleep Channel Tracker Advanced Features

  • Multi-stage classification for phrases like 'back to sleep' or 'resting' to distinguish between deep sleep and naps.
  • Deterministic rendering engine that pulls directly from file storage to prevent the AI from inventing past entries.
  • Metadata-grounded corrections that allow users to modify the state of the latest log entry without manually editing files.
  • Support for custom workspace locations, making it easy to integrate with existing Openclaw Skills data structures.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*