rodbegbie/rod-claude-mods/tree/main/plugins/context-bar

rodbegbie/rod-claude-mods/tree/main/plugins/context-bar

Rod Begbie가 Claude Code를 위해 작성한 모드입니다. 플러그인 마켓플레이스로 게시되었습니다.
마켓플레이스를 추가한 후 원하는 모드를 설치합니다:
/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
로컬 체크아웃에서 마켓플레이스를 시도하려면 폴더를 가리킵니다:
/plugin marketplace add /path/to/rod-claude-mods
| 모드 | 동작 | | --- | --- | | context-bar | 프롬프트 위의 쌓인 컨텍스트 윈도우 막대 | | pro-limits | 프롬프트 위의 5시간 및 주간 사용량 제한 게이지 | | sportsball | 프롬프트 위의 팔로우 중인 팀의 라이브 스코어 |
/context에 표시되는 것처럼 각 카테고리마다 한 색씩 컨텍스트 윈도우를 쌓인 막대로 프롬프트 위에 표시합니다. 아래의 범례는 각 카테고리의 토큰 수와 윈도우 내 점유율을 나열한 후 합계를 표시합니다.
/context-bar로 전환합니다. 기본값은 켜져 있으며 세션 시작 시와 매 턴 후에 새로 고쳐집니다.
프롬프트 위에 각 구독 제한(5시간 및 주간)마다 하나의 게이지를 표시합니다. 각 막대는 제한에 접근함에 따라 녹색에서 황색을 거쳐 빨간색으로 변하고, 그 뒤에 사용량 백분율과 해당 윈도우가 리셋되는 시간이 나옵니다. Claude가 이러한 윈도우를 보고한 후에만 나타나므로 API 키 계정에는 아무것도 표시되지 않습니다.

윈도우가 20%, 40%, 60%, 80%, 90%, 95%를 넘을 때마다 알림이 팝업됩니다. 100%에 도달하면 백분율이 두 개의 해골로 바뀝니다. 세션 시작 시 표시된 수치는 팝업되지 않으며, 그 이후의 변화만 팝업됩니다.
/pro-limits로 전환합니다. 기본값은 켜져 있으며, 제한이 전체 포인트만큼 움직일 때마다 새로 고쳐지고, 카운트다운을 정확하게 유지하기 위해 30초마다 틱됩니다.
한 팀을 팔로우하고 프롬프트 위에 그 팀의 라이브 게임을 표시합니다: 스포츠 이모지, 두 팀 이름, 점수, 게임 상태, 경쟁이 한 줄에 표시됩니다. "Powered by SportScore" 크레딧은 sportscore.com에 링크되어 있으며 해당 줄의 오른쪽에 있습니다. 표시되는 팀 수에 관계없이 마지막 게임 줄에 한 번만 나타나고, 터미널이 너무 좁을 때만 아래 자신의 줄로 떨어집니다. 팀이 라이브 게임을 가지지 않을 때 막대는 비어 있습니다.
<!-- 스크린샷 자리표시자 -->/follow-team <name>은 팀을 팔로우합니다. 예: /follow-team golden state valkyries 또는 /follow-team club atletico tigre. 농구와 미식축구를 함께 검색합니다. 이름이 두 팀 이상과 일치하면 완전히 일치해도 묻습니다. 각 선택사항은 스포츠 이모지, 팀 이름, 최신 게임의 리그를 표시합니다(조회가 실패하거나 팀이 게임을 가지지 않을 때는 생략됨). 최대 4개의 팀이 질문 대화에 제공됩니다. 4개 이상일 때는 목록이 포함된 창이 열려 아무것도 잘리지 않습니다. 둘 중 하나를 닫으면 아무 팀도 팔로우되지 않고 현재 팀이 유지됩니다. 단일 팀과 일치하는 이름은 바로 팔로우됩니다. SportScore의 조회에서 팀에 대해 다른 팀을 반환할 때(예: Rangers F.C. Glasgow), 해당 팀은 제외되고 응답에 이름이 지정됩니다./unfollow-team [name]으로 팔로우를 중단합니다./sportsball은 막대를 표시하거나 숨깁니다. 팔로우 중인 팀은 어느 쪽이든 세션 간에 유지됩니다.게임이 새로운 피리어드(예: "Half time" 또는 "4th quarter")로 이동할 때와 경기 종료 시 알림이 팝업되며, 각각 점수가 함께 제공됩니다. 미식축구에서는 점수 변화도 팝업됩니다("Goal 60'" 또는 골이 무효화된 경우 "Score change"), 매치 분이 있으면 포함됩니다. 농구 점수는 너무 자주 변해서 피리어드만 팝업됩니다. 로드 후 첫 번째 읽기는 무음이므로 게임 중에 Claude를 시작해도 팝업되지 않습니다. /sportsball 끄기는 팝업을 음소거하고 추적을 잃지 않습니다.
미식축구 게임은 상태 옆에 매치 분도 표시합니다. 예: 2nd half 84'. 이는 각 폴(poll)의 두 번째 요청에서 나오므로 조회 실패는 분을 비워둡니다.
게임이 라이브 중일 때는 30초마다, 그 외에는 5분마다 폴합니다. 폴이 실패하면 마지막 점수는 화면에 흐릿하게 최대 10분간 유지됩니다. 농구와 미식축구가 지원됩니다.
점수는 SportScore 공개 API에서 나오며, 보이는 "Powered by SportScore" 링크를 요청하므로 크레딧 줄이 있습니다. 하이퍼링크를 지원하지 않는 터미널은 이름 옆에 URL을 표시합니다.
팀 이름의 색은 그들의 로고에서 나옵니다. 이를 위해 모드는 당신의 머신에서 짧은 Python 3 스크립트(표준 라이브러리만)를 실행하고, 로고마다 한 번씩, 결과를 캐시합니다. 이는 선택사항입니다: python3이 없으면 이름은 단순히 기본 색으로 그려집니다. 이에 대해 알아야 할 두 가지가 있습니다:
Command Line Tools가 없는 Mac에서 모드는 설치 대화를 트리거하지 않고 스크립트를 건너뜁니다.
각 모드는 plugins/ 아래 자신의 폴더에 있으며 .claude-plugin/marketplace.json에 나열됩니다. 모두 확인하려면:
claude plugin validate .
claude plugin validate plugins/<mod-name>
claude plugin test plugins/<mod-name>
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add rodbegbie/rod-claude-mods claude plugin install context-bar
Rod Begbie's mods for Claude Code, published as a plugin marketplace.
Add the marketplace, then install the mods you want:
/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:
/plugin marketplace add /path/to/rod-claude-mods
| Mod | What it does | | --- | --- | | context-bar | Stacked context-window bar above the prompt | | pro-limits | 5-hour and weekly usage-limit gauges above the prompt | | sportsball | Live score of a followed team above the prompt |
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.
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.

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.
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 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:
On a Mac without the Command Line Tools the mod skips the script rather than trigger the install dialog.
Each mod lives in its own folder under plugins/ and is listed in
.claude-plugin/marketplace.json. Check the lot with:
claude plugin validate .
claude plugin validate plugins/<mod-name>
claude plugin test plugins/<mod-name>