Focus Session Manager by daffy0208/ai-dev-standards
npx skills add https://github.com/daffy0208/ai-dev-standards --skill 'Focus Session Manager'保护您的健康。最大化专注力。防止倦怠。
ADHD 大脑容易陷入过度专注(忽略休息、健康)和时间盲区(失去时间感)。解决方案:自动化的会话管理,跟踪时间,强制执行休息,保护健康,同时不打断心流状态。
关键洞察: 您无法管理看不见的时间。让时间变得可见且自动化。
问题: 连续编码 4 小时不休息 结果: 精疲力竭、健康问题、质量下降
问题: "我会工作 30 分钟" → 实际上是 3 小时 结果: 错过会议、忘记承诺、倦怠
问题: "再做完一件事" 永无止境 结果: 没有休息、健康状况恶化、生产力下降
问题: 生硬的计时器中断会打断注意力 结果: 挫败感、忽略计时器、没有休息系统
当您开始编码时自动启动:
[Session Started: 14:00]
⏱️ Focus Timer Running
📊 Today's focus time: 0 hours
🎯 Goal: 4 hours
🔥 Current streak: 2 days
Mode: Deep Work
Next break: 14:25 (in 25 min)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
状态栏显示:
⏱️ 23:45 | 🧠 Focus Session 1/4 | 💧 Water reminder soon
深度工作: 复杂编码、架构设计
快速任务: 错误修复、更新
学习: 阅读文档、教程
❌ 僵化的 25 分钟计时器(可能打断思路) ❌ 生硬的中断(打断心流) ❌ 强制休息(当您处于心流状态时) ❌ 无过度专注保护(忽略长时间会话)
✅ 灵活的计时器(25/45/90 分钟选项) ✅ 温和提醒(可关闭但持续出现) ✅ 感知心流的休息(建议良好的停止点) ✅ 过度专注检测(逐步升级的提醒)
[25 minutes elapsed]
🟡 Break suggestion available
Good stopping point detected:
- ✅ Just committed code
- ✅ Tests passing
- ✅ Natural pause point
Take 5-minute break?
[Take Break Now] [Extend 15 min] [Remind in 5 min]
微休息(2 分钟):
短休息(5 分钟):
中休息(15 分钟):
长休息(30-60 分钟):
[After 25 min coding]
⏸️ Break Suggestion (5 minutes)
Your brain has been focused for 25 min.
Short break will improve next session.
Break activities:
- [ ] Stand and stretch
- [ ] Get water
- [ ] Look out window (eyes)
- [ ] Bathroom if needed
Timer: 5 minutes
Resume automatically after break.
[Start Break] [Extend Session] [Dismiss]
级别 1:温和提醒(25-45 分钟)
💭 Reminder: Break time soon
[Dismissable, comes back in 10 min]
级别 2:强烈建议(45-90 分钟)
⚠️ You've been coding for 60 minutes
Break highly recommended
[Dismissable twice, then escalates]
级别 3:健康警报(90+ 分钟)
🚨 HEALTH ALERT: 90 min no break
This is affecting:
- Eye strain
- Back pain
- Mental fatigue
- Code quality
Required actions:
- [ ] Stand up NOW
- [ ] 2-minute walk
- [ ] Water
[Cannot dismiss until you move]
级别 4:强制休息(3+ 小时)
🛑 MANDATORY BREAK
You've been coding for 3 hours straight.
Context saved automatically.
Dev server paused.
Required 15-minute break.
I'll help you resume after.
[Break Started - Timer: 15:00]
在连续工作 90 分钟时触发:
[90 minutes elapsed]
🔍 HYPERFOCUS DETECTED
You've been deeply focused for 90 minutes.
This is good for productivity BUT...
Health check required:
- [ ] When did you last drink water? \_\_\_\_
- [ ] When did you last move? \_\_\_\_
- [ ] Are your eyes strained? Y/N
- [ ] Do you need bathroom? Y/N
If 2+ concerns: TAKE BREAK NOW
If 0-1 concerns: Can extend 30 min
[Take Break] [Extend 30min] [Health Check]
好的过度专注: 在正确的事情上进行深度工作 坏的过度专注: 花 4 小时纠结于优化 CSS
[2 hours on same file, many reverts]
💭 Gentle check-in:
I notice you've been working on button.css
for 2 hours with 12 commits and 5 reverts.
Questions:
- Is this P0 for shipping? YES/NO
- Could this be "good enough" now? YES/NO
- Are you stuck in perfectionism? YES/NO
Maybe time to:
- Commit current state
- Move to next task
- Come back later with fresh eyes
[Keep Going] [Take Break] [Switch Tasks]
# Today's Focus Sessions
Total available: 6 hours
Sessions planned: 4
Morning (9am - 12pm):
- Session 1: Build dashboard UI (45 min) 🔨
Break: 10 min
- Session 2: Connect to API (45 min) 🔨
Break: 10 min
- Session 3: Handle errors (30 min) ⚡
Break: Lunch (60 min)
Afternoon (1pm - 5pm):
- Session 4: Write tests (45 min) 🧪
Break: 10 min
- Session 5: Code review (30 min) 👀
Break: 10 min
- Session 6: Deploy (20 min) 🚀
Break: End of day
Total focus time: 4.5 hours
Buffer time: 1.5 hours (interruptions)
Realistic and achievable! 💪
Morning Energy: High ⚡⚡⚡
- Schedule: Complex tasks (new features)
- Session length: 45-90 min
- Break length: 10 min
Afternoon Energy: Medium ⚡⚡
- Schedule: Medium tasks (bug fixes)
- Session length: 30-45 min
- Break length: 15 min
Evening Energy: Low ⚡
- Schedule: Easy tasks (docs, reviews)
- Session length: 25 min
- Break length: 5-10 min
[Break starting in 1 minute]
Quick save (30 seconds):
✅ Auto-committing code
✅ Saving mental state
✅ Noting next step
You were: Adding email validation
Next: Test validation logic (10 min)
Break ready! Take 5 minutes.
Resume will be easy.
[Break ended]
Welcome back! (Rested: 5 minutes)
Quick recap:
📍 File: src/components/form.tsx:42
💭 You were: Adding email validation
🎯 Next: Test validation logic (10 min)
⏱️ Session: 25 minutes
[Resume button opens file at exact line]
Estimated resume time: 30 seconds
每 20 分钟:看 20 英尺外的东西 20 秒
[20 minutes screen time]
👁️ Eye Break (20 seconds)
Look at something 20 feet away.
Clock will count down.
20... 19... 18... 17...
[Countdown with calming animation]
✅ Done! Eyes protected.
[60 minutes since last water reminder]
💧 Hydration Check
When did you last drink water?
- Just now: Reset timer
- 30 min ago: Doing okay
- 1+ hour ago: Go drink NOW
ADHD brains often forget water.
Dehydration affects focus.
[I drank water] [Remind in 30min]
[90 minutes sitting]
🚶 Movement Required
You've been sitting for 90 minutes.
This affects:
- Blood flow
- Energy levels
- Back health
- Focus quality
Minimum: Stand for 2 minutes
Better: Walk for 5 minutes
Best: Go outside
[I moved] [Remind in 15min]
[Morning start]
☀️ Good morning! Let's start work.
Quick setup (2 minutes):
1. Review today's plan ✅
2. Set focus goal: 4 hours
3. Pick first task ✅
4. Start focus timer ✅
First session: Dashboard UI (45 min)
Next break: 9:45am
Let's do this! 💪
[Start Session]
[5pm - End of day]
🌙 Wrapping up for the day?
Today's stats:
- Focus time: 4.5 hours ✅
- Sessions completed: 6
- Breaks taken: 5
- Tasks completed: 7
Tomorrow setup:
- First task: Test password reset (30 min)
- Should be quick! Easy start.
Wins today:
✅ Built entire dashboard UI
✅ Connected to API
✅ Fixed 2 bugs
You crushed it today! 🎉
[End Day] [Keep Working]
[Switching from Task A to Task B]
🔄 Task Switch
Saving Task A context...
✅ Committed work
✅ Saved mental state
Loading Task B...
✅ Opened files
✅ Loaded context
✅ Showing next step
Switch time: 2 minutes
Ready for Task B!
级别 1:正常(默认)
级别 2:专注模式
级别 3:深度工作模式
[Deep work session starting]
Enabling Focus Mode:
✅ Notifications snoozed
✅ Chat status: Away
✅ Email closed
✅ Focus music started
Distractions minimized.
You have 45 minutes of protected time.
[Session starting...]
[You opened Twitter mid-session]
💭 Distraction detected!
You were focused on: Building dashboard
Time lost: 5 minutes
Session time remaining: 15 minutes
Quick reset:
- [ ] Close Twitter
- [ ] Take 2-minute break
- [ ] Resume with fresh focus
Or:
- [ ] Take full break now (5 min)
- [ ] Resume with new session
No judgment! ADHD brains wander.
Let's just get back on track. 💪
# Today's Focus Summary
⏱️ Total Focus Time: 4.5 hours
🎯 Goal: 4 hours (exceeded! 🎉)
📊 Sessions: 6 completed
⏸️ Breaks: 5 taken
🔥 Longest session: 90 min
💧 Water reminders: 6 (all completed)
👁️ Eye breaks: 12 (all completed)
Top productive hours:
9am-11am: 2 hours deep work ⚡
2pm-4pm: 1.5 hours ⚡
Distraction time: 30 min (acceptable)
Health score: 9/10 (excellent!)
- Took all breaks ✅
- Drank water ✅
- Eye breaks ✅
- Moved regularly ✅
Tomorrow's recommendation:
Same pattern works well for you!
# This Week's Focus Patterns
Mon: 4.5 hours (great!)
Tue: 3 hours (interrupted day)
Wed: 5 hours (best day! 🔥)
Thu: 4 hours (solid)
Fri: 2 hours (expected lower)
Weekly average: 3.7 hours/day
Trend: +15% vs last week 📈
Best times for deep work:
- 9-11am (morning energy)
- 2-4pm (post-lunch focus)
Avoid scheduling deep work:
- 11am-1pm (pre-lunch slump)
- 4-5pm (end of day fatigue)
Keep the momentum! 💪
[You opened VS Code at 9:00am]
Good morning! Starting focus session...
✅ Timer started
✅ First task loaded
✅ Break scheduled (9:45am)
✅ Focus mode enabled
Session: Build dashboard UI
Duration: 45 minutes
Let's code! 🚀
[No code changes for 10 min]
Session paused automatically.
Are you:
- Taking a break? (Timer paused)
- In a meeting? (Session saved)
- Distracted? (Gentle reminder)
- Done for now? (End session)
[Resume] [Take Break] [End Session]
[5:00pm]
End of work day!
Auto-wrapping up:
✅ Session saved
✅ Context preserved
✅ Stats logged
✅ Tomorrow prepared
See you tomorrow! 🌙
当您做到以下时,说明您使用得很好:
专注工作。经常休息。保护您的健康。 ⏱️
每周安装次数
–
仓库
GitHub 星标数
21
首次出现
–
安全审计
Protect your health. Maximize focus. Prevent burnout.
ADHD brains are prone to hyperfocus (ignoring breaks, health) and time blindness (losing track of time). The solution: Automated session management that tracks time, enforces breaks, and protects health without disrupting flow state.
Key Insight: You can't manage time you can't see. Make time visible and automatic.
Issue: Code for 4 hours straight without break Result: Exhaustion, health issues, reduced quality
Issue: "I'll work for 30 min" → Actually 3 hours Result: Missed meetings, forgotten commitments, burnout
Issue: "Just one more thing" never stops Result: No breaks, deteriorating health, reduced productivity
Issue: Harsh timer interruptions break concentration Result: Frustration, ignoring timers, no break system
Starts automatically when you begin coding:
[Session Started: 14:00]
⏱️ Focus Timer Running
📊 Today's focus time: 0 hours
🎯 Goal: 4 hours
🔥 Current streak: 2 days
Mode: Deep Work
Next break: 14:25 (in 25 min)
Status bar shows:
⏱️ 23:45 | 🧠 Focus Session 1/4 | 💧 Water reminder soon
Deep Work: Complex coding, architecture
Quick Tasks: Bug fixes, updates
Learning: Reading docs, tutorials
❌ Rigid 25-min timer (might be mid-thought) ❌ Harsh interruption (breaks flow) ❌ Forced break (when you're in flow) ❌ No hyperfocus protection (ignores long sessions)
✅ Flexible timers (25/45/90 min options) ✅ Gentle reminders (dismissable but persistent) ✅ Flow-aware breaks (suggests good stopping points) ✅ Hyperfocus detection (escalating alerts)
[25 minutes elapsed]
🟡 Break suggestion available
Good stopping point detected:
- ✅ Just committed code
- ✅ Tests passing
- ✅ Natural pause point
Take 5-minute break?
[Take Break Now] [Extend 15 min] [Remind in 5 min]
Micro-Break (2 minutes):
Short Break (5 minutes):
Medium Break (15 minutes):
Long Break (30-60 minutes):
[After 25 min coding]
⏸️ Break Suggestion (5 minutes)
Your brain has been focused for 25 min.
Short break will improve next session.
Break activities:
- [ ] Stand and stretch
- [ ] Get water
- [ ] Look out window (eyes)
- [ ] Bathroom if needed
Timer: 5 minutes
Resume automatically after break.
[Start Break] [Extend Session] [Dismiss]
Level 1: Gentle Reminder (25-45 min)
💭 Reminder: Break time soon
[Dismissable, comes back in 10 min]
Level 2: Strong Suggestion (45-90 min)
⚠️ You've been coding for 60 minutes
Break highly recommended
[Dismissable twice, then escalates]
Level 3: Health Alert (90+ min)
🚨 HEALTH ALERT: 90 min no break
This is affecting:
- Eye strain
- Back pain
- Mental fatigue
- Code quality
Required actions:
- [ ] Stand up NOW
- [ ] 2-minute walk
- [ ] Water
[Cannot dismiss until you move]
Level 4: Forced Break (3+ hours)
🛑 MANDATORY BREAK
You've been coding for 3 hours straight.
Context saved automatically.
Dev server paused.
Required 15-minute break.
I'll help you resume after.
[Break Started - Timer: 15:00]
Triggers at 90 minutes continuous work:
[90 minutes elapsed]
🔍 HYPERFOCUS DETECTED
You've been deeply focused for 90 minutes.
This is good for productivity BUT...
Health check required:
- [ ] When did you last drink water? \_\_\_\_
- [ ] When did you last move? \_\_\_\_
- [ ] Are your eyes strained? Y/N
- [ ] Do you need bathroom? Y/N
If 2+ concerns: TAKE BREAK NOW
If 0-1 concerns: Can extend 30 min
[Take Break] [Extend 30min] [Health Check]
Good Hyperfocus: Deep work on right thing Bad Hyperfocus: Stuck optimizing CSS for 4 hours
[2 hours on same file, many reverts]
💭 Gentle check-in:
I notice you've been working on button.css
for 2 hours with 12 commits and 5 reverts.
Questions:
- Is this P0 for shipping? YES/NO
- Could this be "good enough" now? YES/NO
- Are you stuck in perfectionism? YES/NO
Maybe time to:
- Commit current state
- Move to next task
- Come back later with fresh eyes
[Keep Going] [Take Break] [Switch Tasks]
# Today's Focus Sessions
Total available: 6 hours
Sessions planned: 4
Morning (9am - 12pm):
- Session 1: Build dashboard UI (45 min) 🔨
Break: 10 min
- Session 2: Connect to API (45 min) 🔨
Break: 10 min
- Session 3: Handle errors (30 min) ⚡
Break: Lunch (60 min)
Afternoon (1pm - 5pm):
- Session 4: Write tests (45 min) 🧪
Break: 10 min
- Session 5: Code review (30 min) 👀
Break: 10 min
- Session 6: Deploy (20 min) 🚀
Break: End of day
Total focus time: 4.5 hours
Buffer time: 1.5 hours (interruptions)
Realistic and achievable! 💪
Morning Energy: High ⚡⚡⚡
- Schedule: Complex tasks (new features)
- Session length: 45-90 min
- Break length: 10 min
Afternoon Energy: Medium ⚡⚡
- Schedule: Medium tasks (bug fixes)
- Session length: 30-45 min
- Break length: 15 min
Evening Energy: Low ⚡
- Schedule: Easy tasks (docs, reviews)
- Session length: 25 min
- Break length: 5-10 min
[Break starting in 1 minute]
Quick save (30 seconds):
✅ Auto-committing code
✅ Saving mental state
✅ Noting next step
You were: Adding email validation
Next: Test validation logic (10 min)
Break ready! Take 5 minutes.
Resume will be easy.
[Break ended]
Welcome back! (Rested: 5 minutes)
Quick recap:
📍 File: src/components/form.tsx:42
💭 You were: Adding email validation
🎯 Next: Test validation logic (10 min)
⏱️ Session: 25 minutes
[Resume button opens file at exact line]
Estimated resume time: 30 seconds
Every 20 minutes: Look at something 20 feet away for 20 seconds
[20 minutes screen time]
👁️ Eye Break (20 seconds)
Look at something 20 feet away.
Clock will count down.
20... 19... 18... 17...
[Countdown with calming animation]
✅ Done! Eyes protected.
[60 minutes since last water reminder]
💧 Hydration Check
When did you last drink water?
- Just now: Reset timer
- 30 min ago: Doing okay
- 1+ hour ago: Go drink NOW
ADHD brains often forget water.
Dehydration affects focus.
[I drank water] [Remind in 30min]
[90 minutes sitting]
🚶 Movement Required
You've been sitting for 90 minutes.
This affects:
- Blood flow
- Energy levels
- Back health
- Focus quality
Minimum: Stand for 2 minutes
Better: Walk for 5 minutes
Best: Go outside
[I moved] [Remind in 15min]
[Morning start]
☀️ Good morning! Let's start work.
Quick setup (2 minutes):
1. Review today's plan ✅
2. Set focus goal: 4 hours
3. Pick first task ✅
4. Start focus timer ✅
First session: Dashboard UI (45 min)
Next break: 9:45am
Let's do this! 💪
[Start Session]
[5pm - End of day]
🌙 Wrapping up for the day?
Today's stats:
- Focus time: 4.5 hours ✅
- Sessions completed: 6
- Breaks taken: 5
- Tasks completed: 7
Tomorrow setup:
- First task: Test password reset (30 min)
- Should be quick! Easy start.
Wins today:
✅ Built entire dashboard UI
✅ Connected to API
✅ Fixed 2 bugs
You crushed it today! 🎉
[End Day] [Keep Working]
[Switching from Task A to Task B]
🔄 Task Switch
Saving Task A context...
✅ Committed work
✅ Saved mental state
Loading Task B...
✅ Opened files
✅ Loaded context
✅ Showing next step
Switch time: 2 minutes
Ready for Task B!
Level 1: Normal (Default)
Level 2: Focus Mode
Level 3: Deep Work Mode
[Deep work session starting]
Enabling Focus Mode:
✅ Notifications snoozed
✅ Chat status: Away
✅ Email closed
✅ Focus music started
Distractions minimized.
You have 45 minutes of protected time.
[Session starting...]
[You opened Twitter mid-session]
💭 Distraction detected!
You were focused on: Building dashboard
Time lost: 5 minutes
Session time remaining: 15 minutes
Quick reset:
- [ ] Close Twitter
- [ ] Take 2-minute break
- [ ] Resume with fresh focus
Or:
- [ ] Take full break now (5 min)
- [ ] Resume with new session
No judgment! ADHD brains wander.
Let's just get back on track. 💪
# Today's Focus Summary
⏱️ Total Focus Time: 4.5 hours
🎯 Goal: 4 hours (exceeded! 🎉)
📊 Sessions: 6 completed
⏸️ Breaks: 5 taken
🔥 Longest session: 90 min
💧 Water reminders: 6 (all completed)
👁️ Eye breaks: 12 (all completed)
Top productive hours:
9am-11am: 2 hours deep work ⚡
2pm-4pm: 1.5 hours ⚡
Distraction time: 30 min (acceptable)
Health score: 9/10 (excellent!)
- Took all breaks ✅
- Drank water ✅
- Eye breaks ✅
- Moved regularly ✅
Tomorrow's recommendation:
Same pattern works well for you!
# This Week's Focus Patterns
Mon: 4.5 hours (great!)
Tue: 3 hours (interrupted day)
Wed: 5 hours (best day! 🔥)
Thu: 4 hours (solid)
Fri: 2 hours (expected lower)
Weekly average: 3.7 hours/day
Trend: +15% vs last week 📈
Best times for deep work:
- 9-11am (morning energy)
- 2-4pm (post-lunch focus)
Avoid scheduling deep work:
- 11am-1pm (pre-lunch slump)
- 4-5pm (end of day fatigue)
Keep the momentum! 💪
[You opened VS Code at 9:00am]
Good morning! Starting focus session...
✅ Timer started
✅ First task loaded
✅ Break scheduled (9:45am)
✅ Focus mode enabled
Session: Build dashboard UI
Duration: 45 minutes
Let's code! 🚀
[No code changes for 10 min]
Session paused automatically.
Are you:
- Taking a break? (Timer paused)
- In a meeting? (Session saved)
- Distracted? (Gentle reminder)
- Done for now? (End session)
[Resume] [Take Break] [End Session]
[5:00pm]
End of work day!
Auto-wrapping up:
✅ Session saved
✅ Context preserved
✅ Stats logged
✅ Tomorrow prepared
See you tomorrow! 🌙
You're using this well when:
Focus hard. Break often. Protect your health. ⏱️
Weekly Installs
–
Repository
GitHub Stars
21
First Seen
–
Security Audits
Azure RBAC 权限管理工具:查找最小角色、创建自定义角色与自动化分配
110,700 周安装