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

forge-band

提示キャッシュのカウントダウン、インストール済みバージョン、次の ready task、registry drift、/reflect・/create-pr・/run-epic のワンタッチボタンを表示する、Claude Code の function hooks プラグイン mod。

rynhardt81@rynhardt81

rynhardt81/forgeFlow/tree/main/mods/forge-band

翻訳済み

この mod について

forge-band は Claude Code の mod、つまり function hooks プラグイン(Claude Code v2.1.287+)で、プロンプト上部に枠付きのバンドを描画します。バンドには cache のカウントダウン(失効までの推定分数。緑 >15m、黄 ≤15m、赤 ≤5m)、forge version から取得したインストール済み Forge Flow バージョン、forge task ls --ready --json の最初の ready task、consistency-banner.py --json の drift 数が表示されます。ボタンは /reflect status|resume|handoff を起動し、ブランチに open PR があれば /create-pr review <PR#> を起動し、/run-epic <epic of next task> も起動します(10s 以内にもう一度押して確認)。対応するスキルがインストールされていないボタンは非表示です。バンドの refresh はファイルを読むだけで、書き込みは一切行いません。~/.claude/settings.json の CLAUDE_CODE_PLUGIN_DIRS から読み込めばすべてのセッションで使え、claude --plugin-dir .claude/mods/forge-band なら1セッションだけ使えます。claude plugin validate で検証し、`claude plugin test でテストします。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add rynhardt81/forgeFlow
claude plugin install forge-band
原文 / README

forge-band

A Claude Code mod (a plugin of function hooks, Claude Code v2.1.287+) that draws a bordered band above the prompt:

╭──────────────────────────────────────────────────────────────────────────────────────────╮
│ ◆ forge v4.8.0   ● 42m cache · 180k ctx   ▸ T313 · E16 · 7 ready   ✓ in sync   [Status] [Resume] [Handoff] [Review PR #89] [Run E16] × │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
  • Cache — minutes left before the prompt cache lapses, counted 60 minutes from the last main-thread reply (an estimate: the mod cannot read the real TTL, which drops to 5 minutes under usage overage). Green > 15m, yellow ≤ 15m, red ≤ 5m; one toast at 5m.
  • Version — installed Forge Flow version from forge version (hidden on pre-4.2 installs that have no VERSION file).
  • Next task — first entry of forge task ls --ready --json.
  • Drift — finding count from consistency-banner.py --json (check only, no --fix).
  • Buttons — /reflect status|resume|handoff, /create-pr review <PR#> (only when gh pr view finds an open PR for the current branch) and /run-epic <epic of next task>. Run needs a second press within 10s. A button whose skill is not installed is hidden.
  • /forge-band prints the same line as text; /forge-band show unhides the band.

The band's own refresh only reads: it never writes a file or task state. Its buttons are different — a press runs that skill, and /run-epic or /reflect handoff can change files, task state and git history, which is why Run needs a confirming second press.

Python settings hooks stay the floor: mods can be switched off (disableAllHooks, --safe-mode, an organisation's allowManagedModsOnly).

Load

Refresh copies this folder to <project>/.claude/mods/forge-band/; in the framework repo it lives at mods/forge-band/. Claude Code does not load it on its own.

Every session — add the folder to the env block of ~/.claude/settings.json (a project's settings are not read for this), then restart Claude:

"env": { "CLAUDE_CODE_PLUGIN_DIRS": "/absolute/path/to/forge-band" }

The path must be absolute (~ allowed); separate several with :. One copy serves every project: the band finds Forge Flow under .claude/ or at the repo root, and outside a Forge Flow project it shows the cache alone.

One session only — the flag lasts until you exit:

claude --plugin-dir .claude/mods/forge-band   # mods/forge-band in the framework repo

Develop

claude plugin validate mods/forge-band
cd mods/forge-band && claude plugin test

関連作品