← 返回 Skills 市场
harrylabsj

Habit Tracker

作者 haidong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
230
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install habits-tracker
功能描述
Track habits, log completions, and analyze progress with CLI commands. Use when user wants to build habits, track daily/weekly/monthly routines, log habit co...
使用说明 (SKILL.md)

Habit Tracker

A command-line habit tracking tool for building consistency and monitoring progress.

Features

  • Habit Definition: Create habits with custom frequency (daily/weekly/monthly), targets, and reminders
  • Habit Logging: Log completions manually with optional notes and custom dates
  • Statistics: View completion rates, streaks, and trends
  • Progress Reports: Visual progress bars and summary reports
  • Smart Reminders: Check for due habits based on reminder times

Installation

The habit tracker is available as a Node.js CLI tool. No dependencies required.

CLI Commands

Add a Habit

node scripts/habit-cli.js add "Exercise" --frequency daily --target 1 --reminder "08:00"

Options:

  • --frequency: daily, weekly, or monthly (default: daily)
  • --target: completions per period (default: 1)
  • --reminder: time in HH:MM format
  • --description: habit description

List Habits

node scripts/habit-cli.js list

Log a Completion

node scripts/habit-cli.js log "Exercise" --count 1 --note "Morning run"

Options:

  • --count: number of completions (default: 1)
  • --date: YYYY-MM-DD format (default: today)
  • --note: optional note

View Logs

node scripts/habit-cli.js logs "Exercise" --days 7

View Statistics

node scripts/habit-cli.js stats "Exercise" --days 30

Shows:

  • Total completions
  • Active days
  • Completion rate
  • Current streak
  • Longest streak

Generate Report

node scripts/habit-cli.js report --days 7

Displays visual progress bars and summary for all habits.

Edit a Habit

node scripts/habit-cli.js edit "Exercise" --target 2 --reminder "07:00"

Delete a Habit

node scripts/habit-cli.js delete "Exercise"

Check Reminders

node scripts/habit-cli.js reminder

Data Storage

Habits and logs are stored in ~/.config/habit-tracker/:

  • habits.json: Habit definitions
  • logs.json: Completion logs

Automation

Cron Job for Reminders

Add to crontab for hourly reminder checks:

0 * * * * node /path/to/habit-tracker/scripts/habit-cli.js reminder

Daily Report

0 21 * * * node /path/to/habit-tracker/scripts/habit-cli.js report --days 1

Integration

This skill can be triggered by:

  • Direct CLI commands
  • Scheduled cron jobs
  • Event-based triggers (e.g., after completing a task)

Examples

Track a new habit:

habit add "Read 30 minutes" --frequency daily --target 1 --reminder "21:00"
habit log "Read 30 minutes" --note "Finished chapter 5"

Weekly habit with multiple targets:

habit add "Meditate" --frequency weekly --target 5
habit log "Meditate" --count 1

View progress:

habit stats --days 30
habit report --days 7
安全使用建议
This skill is internally consistent with being a local Node.js CLI habit tracker: it stores data under ~/.config/habit-tracker and does not ask for credentials or make network calls in the visible portion. Before installing or running it, (1) inspect the full scripts/habit-cli.js file (the provided listing was truncated in the review input) to confirm there are no hidden network calls or suspicious behavior, (2) ensure you have Node.js >=18 as declared, (3) be aware it will create and modify files in ~/.config/habit-tracker so set appropriate file permissions if you care about privacy, and (4) only add cron entries if you understand the exact path/command they will run. If you want higher assurance, run the script in a controlled environment (container or VM) first.
功能分析
Type: OpenClaw Skill Name: habits-tracker Version: 1.0.0 The habit-tracker skill is a standard CLI tool for managing personal habits, logging completions, and viewing statistics. The core logic in `scripts/habit-cli.js` is well-structured, using local JSON files stored in the user's home directory (`~/.config/habit-tracker/`) for data persistence. There is no evidence of network activity, unauthorized file access, or malicious instructions in the documentation or code.
能力评估
Purpose & Capability
Name/description (CLI habit tracking, logging, stats, reminders) matches the included package.json and CLI script. The files, CLI commands, data storage path, and suggested cron usage are appropriate for this purpose.
Instruction Scope
SKILL.md only instructs running the local Node.js script, managing habits, and optionally adding cron jobs for reminders/reports. The instructions reference only the local data directory (~/.config/habit-tracker) and expected CLI arguments; they do not request unrelated files, credentials, or external endpoints.
Install Mechanism
No install spec is declared (instruction-only), and package.json has no dependencies. The CLI is implemented as a Node.js script that the user runs directly. There are no downloads or external install URLs, which minimizes install risk.
Credentials
No environment variables, credentials, or config paths are requested. The script only uses the user's home directory to store habit data, which is proportional to its functionality.
Persistence & Privilege
The skill writes persistent data to ~/.config/habit-tracker (habits.json and logs.json), which is expected. always is false and autonomous invocation is allowed by platform default. This local persistence is normal for a CLI tool but you should be aware data is stored on disk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install habits-tracker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /habits-tracker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the habits-tracker CLI tool. - Track custom habits with flexible frequencies and reminders - Manually log completions, including notes and custom dates - View statistics: completion rates, streaks, and activity trends - Generate visual progress reports and summaries - Edit and delete habits; all data stored locally in your config directory - Designed for easy automation via cron or CLI integration
元数据
Slug habits-tracker
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Habit Tracker 是什么?

Track habits, log completions, and analyze progress with CLI commands. Use when user wants to build habits, track daily/weekly/monthly routines, log habit co... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 230 次。

如何安装 Habit Tracker?

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

Habit Tracker 是免费的吗?

是的,Habit Tracker 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Habit Tracker 支持哪些平台?

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

谁开发了 Habit Tracker?

由 haidong(@harrylabsj)开发并维护,当前版本 v1.0.0。

💬 留言讨论