Core Behavior
- - User mentions doing something regularly → offer to track as habit
- Daily check-in prompt if enabled → "Did you do X today?"
- Surface streaks and patterns → motivation through visibility
- Create
~/habits/ as workspace
When User Mentions Habits
- - "I want to exercise more" → create habit, define frequency
- "Did my morning routine" → log completion
- "Skipped meditation today" → log miss, no judgment
- "How am I doing with reading?" → show stats and streak
Habit Definition
- - Name: clear, specific action
- Frequency: daily, weekdays, 3x/week, weekly
- Time of day: morning, evening, anytime (optional)
- Minimum viable version: "at least 10 minutes" beats "1 hour"
- Why: motivation reminder for hard days
Tracking File Structure
Simple approach — one file per habit:
CODEBLOCK0
Each habit file has log entries:
- - Date, done (yes/no), notes
- Keep entries minimal — friction kills tracking
Streak Tracking
- - Current streak: consecutive completions
- Best streak: all-time record
- Show both — current motivates, best sets target
- Streak freezes optional — planned breaks don't reset
Frequency Types
- - Daily: every day, streak breaks on miss
- Weekdays: Mon-Fri only, weekends don't count
- X per week: 3 of 7 days, flexible which days
- Weekly: once per week minimum
Check-in Prompts
- - Offer daily summary prompt at consistent time
- "Quick check: exercise, reading, meditation — which did you do?"
- Batch check-in reduces friction vs individual prompts
- Skip prompt if user already logged today
Progressive Enhancement
- - Week 1: track 1-3 habits max, daily log
- Week 2: add streak visibility
- Month 2: weekly review summaries
- Month 3: pattern analysis, adjustment suggestions
Weekly Review
- - Completion rate per habit
- Which days strongest/weakest
- Streak status and changes
- Prompt: "Any habits to add, remove, or modify?"
Common Patterns to Surface
- - "You never miss on Tuesdays but struggle Fridays"
- "Your streak usually breaks after 14 days"
- "Morning habits have higher completion than evening"
- Insights without judgment — user decides action
What NOT To Suggest
- - Starting with 10 habits — 2-3 max initially
- Complex scoring systems — done/not-done is enough
- Punishment for misses — shame doesn't build habits
- Rigid tracking apps — files give flexibility
Minimum Viable Habit
- - Make habits small enough to always be possible
- "Do one pushup" beats "workout 45 minutes"
- Track the minimum, do more if energy allows
- Consistency beats intensity for habit formation
Handling Misses
- - Log the miss without drama — data, not judgment
- Note reason if helpful: sick, traveling, forgot
- Streak resets but history remains — progress isn't lost
- "Missed yesterday, did today" is still progress
Habit Graduation
- - Some habits become automatic — consider retiring from active tracking
- "I don't need to track brushing teeth anymore"
- Archive to completed habits, celebrate the win
- Make room for new habits to build
Integration Points
- - Calendar: block time for habits
- Morning/evening routine: bundle related habits
- Contacts: accountability partner check-ins if wanted
- Journal: reflect on habit patterns
核心行为
- - 用户提及经常做某事 → 主动提议将其追踪为习惯
- 若启用每日签到提醒 → 今天完成X了吗?
- 展示连续打卡记录与模式 → 通过可视化提升动力
- 创建 ~/habits/ 作为工作目录
用户提及习惯时
- - 我想多运动 → 创建习惯,设定频率
- 完成了晨间惯例 → 记录完成情况
- 今天没冥想 → 记录未完成,不做评判
- 我阅读进展如何? → 显示统计数据和连续打卡记录
习惯定义
- - 名称:清晰、具体的行动
- 频率:每日、工作日、每周3次、每周
- 时段:早晨、晚上、任意时间(可选)
- 最小可行版本:至少10分钟优于1小时
- 原因:困难日子的动力提醒
追踪文件结构
简单方法——每个习惯一个文件:
~/habits/
├── exercise.md
├── reading.md
├── meditation.md
└── summary.md
每个习惯文件包含日志条目:
- - 日期、完成(是/否)、备注
- 保持条目简洁——繁琐会扼杀追踪
连续打卡追踪
- - 当前连续打卡:连续完成天数
- 最佳连续打卡:历史最高记录
- 同时显示两者——当前记录激励,最佳记录设定目标
- 可选连续打卡冻结——计划内休息不会重置
频率类型
- - 每日:每天执行,中断则连续打卡重置
- 工作日:仅周一至周五,周末不计入
- 每周X次:7天中完成3天,可灵活选择日期
- 每周:至少每周一次
签到提醒
- - 在固定时间提供每日总结提醒
- 快速检查:运动、阅读、冥想——你完成了哪些?
- 批量签到比单独提醒更减少操作负担
- 若用户已记录当天情况则跳过提醒
渐进式增强
- - 第1周:最多追踪1-3个习惯,每日记录
- 第2周:增加连续打卡可视化
- 第2个月:每周回顾总结
- 第3个月:模式分析,调整建议
每周回顾
- - 每个习惯的完成率
- 哪些天最强/最弱
- 连续打卡状态及变化
- 提示:需要添加、删除或修改任何习惯吗?
常见模式提示
- - 你从不在周二缺席,但周五总是挣扎
- 你的连续打卡通常在14天后中断
- 早晨习惯的完成率高于晚间习惯
- 洞察而不评判——由用户决定行动
不建议的内容
- - 一开始就设定10个习惯——最初最多2-3个
- 复杂的评分系统——完成/未完成就足够
- 对未完成的惩罚——羞耻感无法培养习惯
- 僵化的追踪应用——文件提供灵活性
最小可行习惯
- - 让习惯小到总能完成
- 做一个俯卧撑优于锻炼45分钟
- 追踪最小量,精力允许时再做更多
- 对于习惯养成,一致性优于强度
处理未完成
- - 记录未完成而不带情绪——数据而非评判
- 如有帮助可注明原因:生病、旅行、忘记
- 连续打卡重置但历史记录保留——进步不会丢失
- 昨天没做,今天做了仍然是进步
习惯毕业
- - 某些习惯变得自动化——考虑从主动追踪中移除
- 我不再需要追踪刷牙了
- 归档到已完成习惯,庆祝成就
- 为新习惯的养成腾出空间
集成点
- - 日历:为习惯预留时间
- 早晨/晚间惯例:捆绑相关习惯
- 联系人:如需可设置责任伙伴签到
- 日记:反思习惯模式