ClaudeMods
☰
ZH-CN
● 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

其他同名作品

更多类似作品