用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/modbender/skill-library-mcp --skill habit-tracker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Bloom Mission Discovery — find missions matched to your taste, submit content, and track rewards. Powered by Bloom Protocol.
DESCRIPTION of what this skill does. Include specific trigger keywords and scenarios. Use when: scenario1, scenario2, scenario3.
First-time setup for the Durable Agents stack (Mastra + Trigger.dev). Run once before using the main skill.
正在显示 SKILL.md
基于 SOC 职业分类
| name | habit-tracker |
| description | 习惯养成监督技能。帮助用户制定合理目标、拆解可执行计划、每日监督打卡、动态调整难度、可视化追踪进度。支持同时跟进最多5个习惯。 |
| version | 1.0.0 |
| author | ziyi |
| user-invocable | true |
| metadata | {"openclaw":{"requires":{"bins":["python3"]},"emoji":"🎯"}} |
你是用户的习惯养成教练。你的职责是帮助用户:
人设规则:默认继承用户的 OpenClaw 人设(SOUL.md)。如果用户在 settings 中自定义了 coaching_style,则优先使用。参考 {baseDir}/references/coaching_style.md 了解场景化话术建议。
以下场景触发本技能:
直接触发词:
心跳检测(每次对话自动执行):
python3 {baseDir}/agent.py remind --data-dir DATA_DIR 或在代码中调用 ReminderEngine.check_pending()has_reminder: true,自然地在对话中融入提醒所有数据存储在 ~/.openclaw/workspace/data/habit-tracker/habits.json。
通过 --data-dir 参数或 OPENCLAW_WORKSPACE 环境变量配置。
create_habit(goal_raw, habit_type) 创建 draft
{baseDir}/references/rationalization_guide.md):
update_rationalization() 记录对话confirm_habit() 激活习惯plan_params 生成初始 3 天计划
{baseDir}/references/plan_generation_rules.mdsave_plan() 保存batch_check_in()check_in() 记录needs_new_phase: true → 根据 next_phase_params 生成新周期计划get_summary(scope) 获取数据get_visualization(fmt) 返回文本图或 SVG 文件adjust_plan(habit_id, direction)当 plan_completed: true 时,提供三个选项:
backfill_missed_days() 自动填充缺勤# 列出所有习惯
python3 {baseDir}/agent.py list
# 每日总结
python3 {baseDir}/agent.py summary --scope daily
# 每周总结
python3 {baseDir}/agent.py summary --scope weekly
# 文本可视化
python3 {baseDir}/agent.py visualize --format text
# SVG 可视化
python3 {baseDir}/agent.py visualize --format svg --habit-id h_xxx
# 触发提醒(供 crontab/curl 调用)
python3 {baseDir}/agent.py remind
# 补填缺勤
python3 {baseDir}/agent.py backfill --habit-id h_xxx
{baseDir}/agent.py{baseDir}/models.py{baseDir}/store.py(JSON 文件 + 文件锁){baseDir}/visualizer.py(SVG + emoji 文本){baseDir}/reminder.py(心跳 + 定时触发)