mcpField
F
Focus Session Manager

Focus Session Manager

github.com/daffy0208生産性38164 回インストール44 週間前に更新
リポジトリ

Focus Session Manager について

Focus Session Managerは、コーディング中の時間管理、休憩通知、健康チェックを行うスキルです。柔軟なセッション設定や段階的な通知、作業コンテキストの保存で、長時間の作業を管理します。

主な機能

  1. 01集中時間の自動記録
  2. 02柔軟なタイマーと休憩提案
  3. 03段階的な休憩通知
  4. 04長時間の集中を検知
  5. 05休憩前後のコンテキスト保存
  6. 06日次・週次の集中統計

活用シーン

  1. 01コーディング中の休憩設定
  2. 02長時間作業の検知
  3. 03タスク切り替え前のコンテキスト保存
  4. 04日々の集中と休憩状況の確認

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/daffy0208/ai-dev-standards --skill focus-session-manager

インストール後、Claude Code で/focus-session-managerを入力して読み込まれたか確認します。

同梱ファイルmanifest.yamlREADME.md

詳細

集中セッションマネージャー

健康を守りましょう。集中力を最大限に高めましょう。燃え尽きを防ぎましょう。

基本原則

ADHD の人は、過集中(休憩や健康を顧みない)や時間感覚の喪失(時間の経過が分からなくなる)が起こりやすい傾向があります。解決策は、時間を記録し、休憩を促し、フロー状態を妨げることなく健康を守る自動セッション管理です。

重要な気づき: 見えない時間は管理できません。時間を見えるようにし、自動化しましょう。


集中を妨げる問題

問題 1:過集中による燃え尽き

問題: 休憩を取らずに 4 時間続けてコーディングする 結果: 疲労、健康問題、品質の低下

問題 2:時間感覚の喪失

問題: 「30 分だけ作業しよう」→ 実際には 3 時間 結果: 会議に遅れる、約束を忘れる、燃え尽き

問題 3:休憩を避けてしまう

問題: 「あともう 1 つだけ」がいつまでも終わらない 結果: 休憩を取れない、健康が損なわれる、生産性が低下する

問題 4:フロー状態の中断

問題: 厳しいタイマーの通知が集中を妨げる 結果: いら立ち、タイマーを無視する、休憩の仕組みが機能しない


フェーズ 1:自動セッション記録

常時の時間記録

コーディングを始めると自動的に開始します:

[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)
時間の表示

ステータスバーに表示されます:

⏱️ 23:45 | 🧠 Focus Session 1/4 | 💧 Water reminder soon
セッションの種類(自動検出)

集中作業: 複雑なコーディング、アーキテクチャ設計

  • 時間:45~90 分
  • 休憩:15 分
  • 最適な作業:新機能、デバッグ

短時間の作業: バグ修正、更新

  • 時間:25 分
  • 休憩:5 分
  • 最適な作業:小規模な修正、レビュー

学習: ドキュメントやチュートリアルを読む

  • 時間:30 分
  • 休憩:10 分
  • 最適な作業:新しい技術、調査

フェーズ 2:ADHD に最適化されたポモドーロ

従来のポモドーロ(ADHD に不向き)

❌ 厳密な 25 分タイマー(考えの途中かもしれません) ❌ きつい通知(フローを妨げます) ❌ 強制的な休憩(フローに乗っている最中です) ❌ 過集中を防ぐ仕組みがない(長時間のセッションを見過ごします)

ADHD にやさしいポモドーロ

✅ 柔軟なタイマー(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]

フェーズ 3:休憩の管理

休憩の種類

マイクロ休憩(2 分):

  • 画面から目を離す(20-20-20 ルール)
  • 椅子に座ったままストレッチする
  • デスクから離れない

短い休憩(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]

フェーズ 4:過集中の保護

過集中の検知

連続作業が 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]
過集中のジレンマ

良い過集中: 適切な作業に深く取り組むこと 悪い過集中: CSS の最適化に 4 時間も費やしてしまうこと

悪い過集中の検知
[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]

フェーズ 5:セッションの計画

毎日のセッション計画(自動生成)
# 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

フェーズ 6:状況に応じた休憩

休憩前のルーティン(自動)
[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

フェーズ 7:健康状態のモニタリング

20-20-20 ルール(自動適用)

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]

フェーズ 8:切り替え時のルーティン

作業開始時のルーティン
[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!

フェーズ 9:気が散る要因の管理

集中モードのレベル

レベル 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. 💪

フェーズ 10:セッション分析

日次統計(自動生成)
# 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 時)
[5:00pm]

End of work day!

Auto-wrapping up:
✅ Session saved
✅ Context preserved
✅ Stats logged
✅ Tomorrow prepared

See you tomorrow! 🌙

成功指標

以下の状態であれば、うまく活用できています。

  • ✅ 定期的に休憩を取っている(休憩を飛ばしていない)
  • ✅ 過集中セッションが 90 分未満
  • ✅ 健康チェックを完了している(水分補給、目の休憩、体を動かす)
  • ✅ 集中時間が増えている(無理のないペース)
  • ✅ 一日の終わりにエネルギーが残っている(疲れ切っていない)

関連スキル

  • context-preserver - 休憩の前後に状態を自動保存します
  • task-breakdown-specialist - セッションの作業計画を立てます
  • completion-coach - セッションを気持ちよく終えられるようサポートします

しっかり集中し、こまめに休憩を取り、健康を守りましょう。 ⏱️

コメント