jh3ady/claude-time-check
關於這個 mod
Time Check
一個 Claude Code 外掛,會在你為每週各日設定的時間範圍內,於提示送出前要求你確認時間。
- **不會阻塞:**提示會暫存,不會遺失。選擇選項後就會送出。
- **每日時間範圍:**有一個預設值,也能逐日覆寫;時間範圍可以跨過午夜。
- **三種回答:**一小時後提醒我、保持安靜直到這段時間結束,或在這個工作階段保持安靜。
安裝
從 Claude Code 外掛目錄,或從這個儲存庫安裝:
/plugin marketplace add jh3ady/claude-time-check
/plugin install time-check@claude-time-check
使用方式
執行 /time-check 開啟設定面板。每個欄位接受以逗號分隔的 HH:MM-HH:MM 時間範圍,按 Enter 儲存:
- default 會套用到所有留白的日期,例如 22:00-06:00、13:00-14:00。
- monday 到 sunday 會覆寫預設值;off 會停用該日。
- 跨過午夜的時間範圍歸屬於它開始的那一天:friday 22:00-06:00 會涵蓋到星期六 06:00。
按 Escape 關閉面板時,會列印套用到每天的時間範圍。設定與確認記錄會儲存在本機,並由每個工作階段共用。
外掛使用 Claude Code function hooks API,目前處於早期存取階段。
提示與 hooks
外掛送出的唯一提示就是你輸入的內容:提示暫存時,文字會留在工作階段中;選擇選項後,會以你的原話、不做修改地送出。不會加入任何內容,也不會讀取或傳送其他對話資料。貼上的圖片不會隨暫存提示重新傳送。
完整的隱私權政策說明外掛儲存哪些資料,以及如何刪除資料。
各 hook 的作用:
- prompt.submit:在作用中的時間範圍內暫存你輸入的提示,開啟確認面板,並讓其他提示不受影響地通過(通知、其他外掛,以及它自己的重新送出)。
- command.run:只回應在 session.start 註冊的 /time-check,並開啟設定面板。其他指令會原樣傳遞。
- ui.close:保持確認面板開啟,直到你選擇選項;設定面板關閉時列印套用的時間範圍。其他面板會原樣傳遞。
- ui.render:繪製外掛自己的兩個面板。
授權
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add jh3ady/claude-time-check claude plugin install time-check
原文 / README
Time Check
A Claude Code plugin that asks you to acknowledge the time before your prompt is sent, inside time windows you configure for each day of the week.
- Non-blocking: your prompt is held, not lost. It is sent as soon as you pick an option.
- Per-day windows: one default, overridden day by day, with windows that may cross midnight.
- Three answers: remind me in 1 hour, stay quiet until this window ends, or stay quiet for this session.
Installation
From the Claude Code plugin directory, or from this repository:
/plugin marketplace add jh3ady/claude-time-check
/plugin install time-check@claude-time-check
Usage
Run /time-check to open the settings pane. Each field takes comma-separated HH:MM-HH:MM windows and is saved with
Enter:
defaultapplies to every day left empty, for example22:00-06:00, 13:00-14:00.mondaytosundayoverride the default;offdisables a day.- A window crossing midnight belongs to the day it starts:
friday 22:00-06:00covers Saturday until 06:00.
Closing the pane with Escape prints the windows applied to each day. Settings and acknowledgements are stored locally and shared by every session.
The plugin uses the Claude Code function hooks API, which is in early access.
Prompts and hooks
The only prompt the plugin submits is the one you typed: when a prompt is held, its text is kept in the session and submitted unchanged, as your own words, once you pick an option. Nothing is added to it, and no other conversation data is read or sent. Pasted images are not resent with a held prompt.
The full privacy policy describes the data the plugin stores and how to delete it.
What each hook does:
prompt.submit: holds a prompt you typed inside an active window, opens the acknowledgement pane, and lets every other prompt through untouched (notifications, other plugins, its own resubmission).command.run: answers only/time-check, registered atsession.start, and opens the settings pane. Other commands are passed on unchanged.ui.close: keeps the acknowledgement pane open until you pick an option, and prints the windows applied when the settings pane closes. Other panes are passed on unchanged.ui.render: draws the plugin's own two panes.
