ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

sleep-tracker

睡眠改善工具。睡眠分析、改善建议、作息规划、睡眠环境优化、小睡指南、睡眠日记。Sleep tracker with analysis, improvement tips, schedule planning, environment optimization, nap guide.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bytesagain1/sleep-tracker
Or

sleep-tracker

Health and wellness tracker for logging daily activities, tracking streaks, viewing statistics, setting reminders and goals, and getting health tips. A versatile CLI tool for building and maintaining healthy habits.

Commands

CommandDescription
sleep-tracker log <entry>Log a new entry with today's date
sleep-tracker todayShow all entries logged today
sleep-tracker streakCheck your current streak of consecutive days
sleep-tracker statsShow total number of entries in the data log
sleep-tracker reminder <task> [time]Set a reminder for a task (default time: 8:00)
sleep-tracker tipsGet health tips (hydration, movement, sleep)
sleep-tracker goal <goal> [frequency]Set a goal with optional frequency (default: daily)
sleep-tracker historyView the last 14 entries from the data log
sleep-tracker exportExport all data to stdout
sleep-tracker resetReset tracker (requires --confirm flag to actually clear data)
sleep-tracker helpShow help message with all available commands
sleep-tracker versionShow version number

How It Works

sleep-tracker manages a simple text-based data log (data.log) where each entry is automatically stamped with the current date. It provides a lightweight way to track health activities, build streaks, and review your history.

Daily Workflow

  1. Log activities: Record what you did — exercise, meals, sleep times, etc.
  2. Check today: Review everything logged today with sleep-tracker today
  3. Track progress: Use streak to see consecutive days and stats for totals
  4. Set goals and reminders: Keep yourself accountable with goal and reminder
  5. Review history: Look at the last 2 weeks with history

Data Storage

All data is stored in $SLEEP_TRACKER_DIR or defaults to ~/.local/share/sleep-tracker/. The directory contains:

  • data.log — main data file with date-stamped entries
  • history.log — timestamped log of all commands executed for auditing

The tool automatically creates the data directory on first run. You can override the storage location by setting the SLEEP_TRACKER_DIR environment variable.

Requirements

  • Shell: Bash 4+
  • No external dependencies — uses only standard Unix utilities (date, grep, wc, tail, cat)
  • Works on: Linux, macOS, any POSIX-compatible system

When to Use

Metadata

Stars4097
Views1
Updated2026-04-14
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bytesagain1-sleep-tracker": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.