hacksurvivor/claude-mods/tree/main/mods/clock

hacksurvivor/claude-mods/tree/main/mods/clock

Clock 是一个 Claude Code 模组(需要 2.1.286+),会将本地日期、时间和星期几,以及昨天、本周、上周、本月和上月的计算范围注入每条提示,让 Claude 不再猜日期。如果回复中的日期不属于你询问的期间,回复下方会显示一行提示。周末的“上周”指刚结束的工作周。你可以在 ~/.claude/clock/markets.json 中按文件夹列出其他城市/时区,将它们的本地时间加入该文件夹的摘要。模组会读取你的时钟/时区、提示、会话文件夹和 markets.json;它本身不会发送任何内容,并按每个会话在内存中保留最近 20 个标记。通过 /plugin marketplace add hacksurvivor/claude-mods 安装,然后执行 /plugin install clock@hacksurvivor 和 /reload-plugins。授权为 Apache-2.0。
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add hacksurvivor/claude-mods claude plugin install clock
A Claude Code mod that ends wrong dates. Every prompt quietly carries your local date, time and weekday, with yesterday, this week, last week, this month and last month worked out, so Claude never guesses them. When you ask about a period and the reply's dates miss it, a line under the reply says so.

On a weekend, "last week" means the work week that just ended. Claude is also told to keep city and timezone names out of titles, labels and file names unless you ask.
If your work depends on the time somewhere else, list those places per folder in ~/.claude/clock/markets.json, and their local times join the brief in that folder:
[{ "folder": "/shop-app", "markets": [
{ "label": "US", "place": "New York", "zone": "America/New_York" },
{ "label": "Czechia", "place": "Prague", "zone": "Europe/Prague" }
] }]
Claude Code 2.1.286 or later (mods). The line under a reply is drawn in the Claude desktop app and in the terminal.
In Claude Code:
/plugin marketplace add hacksurvivor/claude-mods
/plugin install clock@hacksurvivor
/reload-plugins
~/.claude/clock/markets.json.See PRIVACY.md.
Apache-2.0