BrightGold70/skills/tree/main/mods/token-weather
token-weather
プロンプトの上にコンテキストウィンドウのリアルタイム予測を描き、使用率、直前のターンで増えた量、何がウィンドウを埋めているかを色付きバーで示す Claude Code mod です。
この mod について
token-weather は、プロンプトの上にコンテキストウィンドウのリアルタイム予測を表示する Claude Code プラグインです。現在の使用率、直前のターンで増えた量、/context の色でウィンドウの内訳を表す色付きバーを表示します。
Mac にインストールする方法:
- mod を mod ディレクトリにリンクします。
mkdir -p ~/.claude/mods
ln -sfn ~/orca/skills/mods/token-weather ~/.claude/mods/token-weather
- ~/.claude/settings.json の "env" ブロックに追加して登録します。
"CLAUDE_CODE_PLUGIN_DIRS": "/Users/<you>/.claude/mods/token-weather"
複数のプラグインフォルダーは ':' で連結します。
- 検証とテストを行い、Claude Code を再起動します。
claude plugin validate ~/.claude/mods/token-weather
claude plugin test ~/.claude/mods/token-weather
実行中のセッションが新しく登録した mod を読み込むことはありません。プラグイン一覧は起動時に固定されるため、登録後に再起動してください。
ファイル:.claude-plugin/plugin.json(マニフェスト)、hooks/hooks.json → hooks/register.tsx(hooks モジュール)、hooks/weather.ts(テスト付きの純粋なヘルパー)、types/index.d.ts($.state 契約)。
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add BrightGold70/skills claude plugin install token-weather
原文 / README
token-weather
A Claude Code mod: a live forecast of the context window, drawn above the prompt —
fill percentage, what the last turn added, and a bar of what fills the window in
/context's colours.
Install on a Mac
The mod loads from ~/.claude/mods/token-weather, which is a symlink into this
checkout, so a git pull updates it and the settings line is the same on every
machine.
# 1. Link the mod (adjust the checkout path if yours differs). If a real
# ~/.claude/mods/token-weather directory already exists, move it away first:
# `ln -sfn` onto a directory puts the link INSIDE it instead of replacing it.
mkdir -p ~/.claude/mods
ln -sfn ~/orca/skills/mods/token-weather ~/.claude/mods/token-weather
# 2. Register it: add to the "env" block of ~/.claude/settings.json
# "CLAUDE_CODE_PLUGIN_DIRS": "/Users/<you>/.claude/mods/token-weather"
# Several plugin folders are joined with ':'. Use an absolute path or ~.
# 3. Check it, then restart Claude Code
claude plugin validate ~/.claude/mods/token-weather
claude plugin test ~/.claude/mods/token-weather
A running session never picks up a newly registered mod — the plugin table is fixed
at launch — so restart after step 2. claude plugin list reports a fresh process,
not your session, and can say loaded while the session you are in has not.
Files
.claude-plugin/plugin.json— manifesthooks/hooks.json→hooks/register.tsx— the hooks modulehooks/weather.ts— pure helpers;hooks/weather.test.tstests themtypes/index.d.ts— the$.statecontract
.claude-plugin/types/ is written by Claude Code at every load (API typings for
tsc -p) and ignores itself; it is never committed.
同名の他の作品
- token-weatherhamzafer · ★ 91
- token-weathercskwork · ★ 0
