ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 hacksurvivor

clock

一個 Claude Code 模組,會安靜地將本地日期、星期幾和週範圍加入每個提示,並標記日期不符合所詢問期間的回覆。

hacksurvivor@hacksurvivor

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

原貼文圖片1
已翻譯

關於這個 mod

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
原文 / README

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.

Clock in the Claude desktop app: a weekly report with the wrong dates and the line under it, and the brief every prompt carries

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.

Markets

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" }
] }]

Requirements

Claude Code 2.1.286 or later (mods). The line under a reply is drawn in the Claude desktop app and in the terminal.

Install

In Claude Code:

/plugin marketplace add hacksurvivor/claude-mods
/plugin install clock@hacksurvivor
/reload-plugins

What it runs, reads and sends

  • Reads your computer's clock and timezone, your prompt (to see which period you ask about), the session's folder, and ~/.claude/clock/markets.json.
  • Sends nothing itself. The brief is added to your prompt, which Claude Code sends to Anthropic under your Claude account.
  • Keeps the last 20 flags in memory for the session only.

See PRIVACY.md.

License

Apache-2.0

其他同名作品

更多類似作品