ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 hacksurvivor

clock

ローカルの日付、曜日、週の範囲をすべてのプロンプトに静かに追加し、尋ねた期間と日付が合わない返信を示す Claude Code mod です。

hacksurvivor@hacksurvivor

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

元の投稿の画像1
翻訳済み

この mod について

Clock は Claude Code mod です(2.1.286+ が必要)。ローカルの日付、時刻、曜日に加えて、昨日、今週、先週、今月、先月の計算済みの範囲をすべてのプロンプトへ注入し、Claude が日付を推測しないようにします。返信の日付が尋ねた期間に合わない場合、返信の下にそのことを示す行が出ます。週末の「先週」は、直前に終わった勤務週を指します。~/.claude/clock/markets.json にはフォルダーごとに他の都市やタイムゾーンを列挙でき、そのフォルダーの brief に現地時刻を含められます。mod は時計/タイムゾーン、プロンプト、セッションフォルダー、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

同名の他の作品

関連作品