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