Files
nexus/wiki/concepts/StreakTracking.md

30 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Streak Tracking"
type: concept
tags: []
sources: []
last_updated: 2026-04-27
---
# Streak Tracking
## Definition
记录用户在每个习惯上的连续完成天数streak并在每次交互中引用当前 streak 数据,以可视化积累成果,形成心理激励。
## Core Mechanism
- 每个习惯独立追踪当前连续完成天数
- 数据存储在本地文件(如 `~/habits/log.json`)或数据库
- 在确认完成的消息中引用 streak如"Day 12 of morning workouts. Solid."
- streak 断裂时重置为 0并在适当语境下温和提醒
## Why It Matters
Streak 数据让用户直观看到自己的积累,形成"不想断掉"的心理锚点。配合 Adaptive Tone 后,消息引用 streak 天数具有真实激励效果。
## Used In
- [[Habit Tracker & Accountability Coach]]:核心数据追踪机制
- 每周报告中的"当前连续天数"指标
## Related Concepts
- [[Adaptive Tone]]:依赖 streak 数据动态调整语气
- [[Weekly Pattern Analysis]]:基于 streak 数据发现行为模式