Files
nexus/wiki/concepts/Streak-Tracking.md

58 lines
1.5 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: []
last_updated: 2026-04-17
---
## Definition
记录用户连续完成某项任务/习惯的天数,并在每次互动中引用该数据以激励用户持续参与的行为改变机制。
## Mechanism
```
用户完成习惯 → 连续天数 +1 → AI 引用并鼓励
用户错失习惯 → 连续天数 = 0 → 重置
```
## Data Storage
OpenClaw 中存储在本地 JSON 文件:
```text
~/habits/log.json
```
数据结构示例:
```json
{
"morning_workout": {
"current_streak": 12,
"last_check_in": "2026-04-17",
"longest_streak": 21,
"total_days": 34
}
}
```
## Psychological Basis
- **损失厌恶**Kahneman & Tversky用户害怕失去已积累的连续天数产生"不要断了它"的内在动机
- **即时可见性**:连续天数是最直观、最即时的成就指标,比抽象的完成率更可感知
- **社会比较**:连续打卡记录可与他人(或过去的自己)比较,形成竞争激励
## Integration with [[Adaptive Tone]]
Streak 数据驱动 AI 语气策略:
- 高连续天数≥7天简短有力例 "Day 12. Solid."
- 中连续天数3-6天温和鼓励
- 低连续天数或重置:支持性语气,不打击积极性
## Related Concepts
- [[Adaptive Tone]] — Streak 数据驱动语气策略
- [[Active Accountability]] — Streak Tracking 的应用场景
- [[Check-in Fatigue]] — Streak Tracking 失效的副作用
## Source
- [[habit-tracker-accountability-coach]]