← Back to Skills Marketplace
codekungfu

Habit Coach

by ClawKK · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
190
Downloads
0
Stars
8
Active Installs
1
Versions
Install in OpenClaw
/install habit-coach
Description
习惯养成教练。充当AI问责伙伴,帮助建立、追踪和坚持好习惯。Keywords: 习惯养成, 自律, habit tracker, 打卡.
README (SKILL.md)

概述

充当AI问责伙伴,帮助建立、追踪和坚持好习惯。适用于日常习惯打卡、目标进度追踪、行为模式分析等场景。awesome-openclaw-usecases收录:带问责机制的习惯追踪器。

适用范围

适用场景

  • 每日习惯打卡记录
  • 查看习惯连续坚持天数
  • 制定新的习惯养成计划

不适用场景

  • 需要实时硬件控制或低延迟响应的场景
  • 涉及敏感个人隐私数据的未授权处理

触发关键词: 习惯养成, 自律, habit tracker, 打卡, 问责

前置条件

pip install requests

⚠️ 首次使用前请确认依赖已安装,否则脚本将无法运行。

核心能力

能力1:个性化习惯计划制定与打卡追踪

个性化习惯计划制定与打卡追踪

能力2:AI问责伙伴——鼓励/提醒/分析原因

AI问责伙伴——鼓励/提醒/分析原因

能力3:习惯数据可视化与行为模式洞察

习惯数据可视化与行为模式洞察

命令列表

命令 说明 用法
track 习惯打卡 python3 scripts/habit_coach_tool.py track [参数]
review 进度回顾 python3 scripts/habit_coach_tool.py review [参数]
plan 制定计划 python3 scripts/habit_coach_tool.py plan [参数]

处理步骤

Step 1:习惯打卡

目标:打卡今日运动和阅读

为什么这一步重要:这是整个工作流的数据采集/初始化阶段,确保后续步骤基于准确的输入。

执行

python3 scripts/habit_coach_tool.py track --habits 'exercise,reading' --status done

检查点:确认输出包含预期数据,无报错信息。

Step 2:进度回顾

目标:回顾本月习惯完成情况

为什么这一步重要:核心处理阶段,将原始数据转化为有价值的输出。

执行

python3 scripts/habit_coach_tool.py review --range month --show-streaks

检查点:确认生成结果格式正确,内容完整。

Step 3:制定计划

目标:制定新的21天习惯计划

为什么这一步重要:最终输出阶段,将处理结果以可用的形式呈现。

执行

python3 scripts/habit_coach_tool.py plan --habit '每天冥想10分钟' --duration 21d

检查点:确认最终输出符合预期格式和质量标准。

验证清单

  • 依赖已安装:pip install requests
  • Step 1 执行无报错,输出数据完整
  • Step 2 处理结果符合预期格式
  • Step 3 最终输出质量达标
  • 无敏感信息泄露(API Key、密码等)

输出格式

# 📊 习惯养成教练报告

**生成时间**: YYYY-MM-DD HH:MM

## 核心发现
1. [关键发现1]
2. [关键发现2]
3. [关键发现3]

## 数据概览
| 指标 | 数值 | 趋势 | 评级 |
|------|------|------|------|
| 指标A | XXX | ↑ | ⭐⭐⭐⭐ |
| 指标B | YYY | → | ⭐⭐⭐ |

## 详细分析
[基于实际数据的多维度分析内容]

## 行动建议
| 优先级 | 建议 | 预期效果 |
|--------|------|----------|
| 🔴 高 | [具体建议] | [量化预期] |
| 🟡 中 | [具体建议] | [量化预期] |

参考资料

原有链接

GitHub

Reddit

注意事项

  • 所有分析基于脚本获取的实际数据,不编造数据
  • 数据缺失字段标注"数据不可用"而非猜测
  • 建议结合人工判断使用,AI分析仅供参考
  • 首次使用请先安装依赖:pip install requests
  • 如遇到API限流,请适当增加请求间隔
Usage Guidance
This skill appears to be a simple, local habit-tracking helper. Things to consider before installing: (1) The SKILL.md recommends 'pip install requests' but the included script doesn't use requests — you can skip installing it or inspect/modify the script first. (2) The tool writes a JSON file to data/ (relative to the skill); review that directory for any personal information you wouldn't want stored. (3) Because the package source is unknown, run the script in a restricted environment (local sandbox or VM) if you want extra safety, and inspect the code before giving it access to sensitive data.
Capability Assessment
Purpose & Capability
Name/description (habit coach, tracker, accountability) align with included script and docs. The shipped script implements track/review/plan and persists records locally. Minor mismatch: SKILL.md asks to 'pip install requests' but the script does not import or use requests — this appears unnecessary but not malicious.
Instruction Scope
Runtime instructions only run the local Python script with explicit commands (track/review/plan). The SKILL.md does not instruct reading unrelated system files, environment variables, or sending data to external endpoints. It does instruct installing requests (unused), and it contains explicit guidance to avoid processing unauthorized sensitive personal data.
Install Mechanism
No install spec; this is an instruction-only skill with a small bundled Python script. No downloads from external URLs or archive extraction are present. Low install risk.
Credentials
The skill requests no environment variables, no credentials, and no config paths. The script only accesses a local data directory (../data) relative to the scripts folder to read/write a JSON file — this is proportional to a local habit tracker.
Persistence & Privilege
always:false (default) and autonomous invocation allowed (platform default). The skill persists only its own data file under a data/ directory and does not modify other skills or system settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install habit-coach
  3. After installation, invoke the skill by name or use /habit-coach
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of habit-coach. - 提供个性化习惯计划制定、打卡追踪功能 - 支持AI问责伙伴式鼓励、提醒与原因分析 - 实现习惯数据可视化及行为模式洞察 - 包含命令行工具:track(打卡)、review(回顾)、plan(制定计划) - 提供标准报告输出格式及多维度分析结果 - 指定依赖安装(requests),并强调数据隐私与安全
Metadata
Slug habit-coach
Version 1.0.0
License MIT-0
All-time Installs 8
Active Installs 8
Total Versions 1
Frequently Asked Questions

What is Habit Coach?

习惯养成教练。充当AI问责伙伴,帮助建立、追踪和坚持好习惯。Keywords: 习惯养成, 自律, habit tracker, 打卡. It is an AI Agent Skill for Claude Code / OpenClaw, with 190 downloads so far.

How do I install Habit Coach?

Run "/install habit-coach" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Habit Coach free?

Yes, Habit Coach is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Habit Coach support?

Habit Coach is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Habit Coach?

It is built and maintained by ClawKK (@codekungfu); the current version is v1.0.0.

💬 Comments