sleep-tracker
睡眠改善工具。睡眠分析、改善建议、作息规划、睡眠环境优化、小睡指南、睡眠日记。Sleep tracker with analysis, improvement tips, schedule planning, environment optimization, nap guide.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bytesagain1/sleep-trackersleep-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
| Command | Description |
|---|---|
sleep-tracker log <entry> | Log a new entry with today's date |
sleep-tracker today | Show all entries logged today |
sleep-tracker streak | Check your current streak of consecutive days |
sleep-tracker stats | Show 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 tips | Get health tips (hydration, movement, sleep) |
sleep-tracker goal <goal> [frequency] | Set a goal with optional frequency (default: daily) |
sleep-tracker history | View the last 14 entries from the data log |
sleep-tracker export | Export all data to stdout |
sleep-tracker reset | Reset tracker (requires --confirm flag to actually clear data) |
sleep-tracker help | Show help message with all available commands |
sleep-tracker version | Show 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
- Log activities: Record what you did — exercise, meals, sleep times, etc.
- Check today: Review everything logged today with
sleep-tracker today - Track progress: Use
streakto see consecutive days andstatsfor totals - Set goals and reminders: Keep yourself accountable with
goalandreminder - 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 entrieshistory.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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bytesagain1-sleep-tracker": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
bonded
Bonded warehouse reference — customs procedures, duty deferral, FTZ operations, compliance requirements. Use when managing bonded storage, customs clearance, or duty suspension logistics.
cmms
Computerized maintenance management system
benchmark-tool
Benchmark CPU, memory, disk I/O, and network on your system. Use when measuring server performance.
console
Console & terminal output reference — logging levels, ANSI colors, debugging techniques, formatters. Use when styling terminal output, implementing log systems, or debugging with console tools.
System Prompts And Models Of Ai Tools
FULL Augment Code, Claude Code, Cluely, CodeBuddy, Comet, Cursor, Devin AI, Junie, Kiro, Leap.new, L system prompts and models of ai tools, python, ai, bolt, cluely, copilot, cursor. Use when you need system prompts and models of ai tools capabilities. Triggers on: system prompts and models of ai tools.