---
title: "pro-limits"
url: "https://claudemods.dev/zh-tw/builds/pro-limits-83e021"
source: "https://github.com/rodbegbie/rod-claude-mods/tree/main/plugins/pro-limits"
source_type: "github"
repo: "https://github.com/rodbegbie/rod-claude-mods/tree/main/plugins/pro-limits"
author: "rodbegbie"
author_handle: "rodbegbie"
stars: 0
category: "儀表板與 HUD"
categories: ["hud"]
tags: ["claude-code", "hooks", "hud", "marketplace", "plugin", "statusline", "usage-limits"]
permission_level: 0
scan_complete: true
install: "claude plugin marketplace add rodbegbie/rod-claude-mods\nclaude plugin install pro-limits@rod-claude-mods"
added: "2026-10-05T01:47:39.609Z"
updated: "2026-10-08T06:22:04Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# pro-limits

在提示列上方繪製 5 小時與每週用量限制儀表、跨越門檻時顯示 toast，並透過 /pro-limits 切換的 Claude Code 外掛。

## Description

在提示列上方顯示 5 小時和每週 Claude 用量限制的儀表，可透過 /pro-limits 切換。每個進度條接近限制時會從綠色變成琥珀色，再變成紅色，後面顯示已用百分比和該視窗重設前的時間。只有 Claude 回報過視窗後才會顯示，因此 API 金鑰帳號不會顯示任何內容。每當視窗超過 20%、40%、60%、80%、90% 或 95% 時都會跳出 toast；達到 100% 時，百分比會變成兩個骷髏。工作階段開始時已看到的讀數不會觸發提示，只有之後跨越門檻才會觸發。透過 /plugin marketplace add rodbegbie/rod-claude-mods，然後 /plugin install pro-limits@rod-claude-mods 安裝。

## Install

```
claude plugin marketplace add rodbegbie/rod-claude-mods
claude plugin install pro-limits@rod-claude-mods
```

## Original README

# rod-claude-mods

Rod Begbie's mods for Claude Code, published as a plugin marketplace.

## Install

Add the marketplace, then install the mods you want:

```text
/plugin marketplace add rodbegbie/rod-claude-mods
/plugin install context-bar@rod-claude-mods
/plugin install pro-limits@rod-claude-mods
/plugin install sportsball@rod-claude-mods
```

To try the marketplace from a local checkout, point at the folder instead:

```text
/plugin marketplace add /path/to/rod-claude-mods
```

## Mods

| Mod | What it does |
| --- | --- |
| [context-bar](plugins/context-bar) | Stacked context-window bar above the prompt |
| [pro-limits](plugins/pro-limits) | 5-hour and weekly usage-limit gauges above the prompt |
| [sportsball](plugins/sportsball) | Live score of a followed team above the prompt |

### context-bar

Draws the context window as a stacked bar above the prompt, with one
colour per category as in `/context`. A legend underneath lists each
category's tokens and share of the window, then the total.

Toggle it with `/context-bar`. It starts on, and refreshes at session
start and after every turn.

### pro-limits

Draws one gauge per subscription limit (5-hour and weekly) above the
prompt. Each bar shifts from green through amber to red as you approach
the limit, followed by the percentage used and the time until that window
resets. Windows only appear once Claude has reported them, so nothing
shows on API-key accounts.

![The pro-limits gauges above the prompt: the 5-hour limit at 13% in
green and the weekly limit at 85% in red-orange](docs/pro-limits.png)

A toast pops up each time a window passes 20%, 40%, 60%, 80%, 90% or
95%. Hit 100% and the percentage turns into two skulls. Readings seen
at session start never toast, only crossings after that.

Toggle it with `/pro-limits`. It starts on, refreshes whenever a limit
moves a whole point, and ticks every 30 seconds to keep the countdown
honest.

### sportsball

Follows one team and draws its live game above the prompt: a sport
emoji, both team names, the score, the game status and the competition,
on a single line. A "Powered by SportScore" credit, linking to
sportscore.com, sits at the right of that row. It appears once, on the
last game row, however many teams are shown, and drops to a row of its
own underneath only when the terminal is too narrow for both. The band is
empty when the team has no live game.

<!-- screenshot placeholder -->

- `/follow-team <name>` follows a team, for example
  `/follow-team golden state valkyries` or `/follow-team club atletico
  tigre`. It searches basketball and football together. If the name
  matches more than one team, even exactly, it asks which. Each choice
  shows a sport emoji, the team name and the league of its latest game
  (left off when the lookup fails or the team has no games). Up to four
  teams are offered in a question dialog. More than that opens a pane
  with a list, so none are cut off. Dismissing either follows nothing
  and keeps your current team. A name that matches a single team is
  followed straight away. A team is left out, and named in the reply,
  when SportScore's lookup for it returns a different team, as it does
  for Rangers F.C. (Glasgow).
- `/unfollow-team [name]` stops following.
- `/sportsball` shows or hides the band. The followed team is kept
  across sessions either way.

A toast appears when the game moves to a new period (for example
"Half time" or "4th quarter") and at full time, each with the score.
In football, a change of score also toasts (`Goal 60'`, or `Score change`
if a goal is ruled out), with the match minute when there is one.
Basketball scores change too often, so only periods toast there.
The first reading after a load is silent, so starting Claude mid-game
doesn't toast. `/sportsball` off mutes toasts without losing track.

Football games also show the match minute next to the status, for
example `2nd half 84'`. It comes from a second request per poll, so a
failed lookup just leaves the minute off.

It polls every 30 seconds while a game is live and every 5 minutes
otherwise. If a poll fails, the last score stays on screen, dimmed, for
up to 10 minutes. Basketball and football are supported.

Scores come from the [SportScore](https://sportscore.com) public API,
which asks for a visible "Powered by SportScore" link, hence the credit
row. Terminals without hyperlink support show the URL next to the name.

Team names are coloured from their logos. To do that the mod runs a
short Python 3 script (standard library only) on your machine, once per
logo, and caches the result. This is optional: without `python3` the
names simply draw in the default colour. Two things to know about it:

- It fetches the logo itself, outside the host's web-fetch policy.
- It needs a terminal session, because mods cannot run commands from
  other surfaces.

On a Mac without the Command Line Tools the mod skips the script rather
than trigger the install dialog.

## Adding a mod

Each mod lives in its own folder under `plugins/` and is listed in
`.claude-plugin/marketplace.json`. Check the lot with:

```bash
claude plugin validate .
claude plugin validate plugins/<mod-name>
claude plugin test plugins/<mod-name>
```
