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,该 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.
