jh3ady/claude-time-check
この mod について
Time Check
曜日ごとに設定した時間帯では、プロンプトを送信する前に時刻の確認を求める Claude Code プラグインです。
- **ブロックしない:**プロンプトは失われず保留され、選択するとすぐ送信されます。
- **曜日ごとの時間帯:**デフォルトを曜日単位で上書きでき、深夜をまたぐ時間帯にも対応します。
- **3 つの回答:**1 時間後に知らせる、この時間帯が終わるまで静かにする、このセッション中は静かにする。
インストール
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:プラグイン自身の 2 つのペインを描画します。
ライセンス
インストール
まず作者の 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.
