ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 BrightGold70

token-weather

프롬프트 위에 컨텍스트 창의 실시간 예측을 그려 채움 비율, 직전 턴에서 추가된 양, 창을 채우는 내용을 보여 주는 Claude Code mod입니다.

BrightGold70@BrightGold70

BrightGold70/skills/tree/main/mods/token-weather

번역 완료

이 mod 소개

token-weather는 프롬프트 위에 컨텍스트 창의 실시간 예측을 표시하는 Claude Code 플러그인입니다. 현재 채움 비율, 직전 턴에서 추가된 양, /context의 색으로 창의 내용을 나타내는 색상 막대를 표시합니다.

Mac에 설치하기:

  1. mod를 mod 디렉터리에 연결합니다.
mkdir -p ~/.claude/mods
ln -sfn ~/orca/skills/mods/token-weather ~/.claude/mods/token-weather
  1. ~/.claude/settings.json의 "env" 블록에 추가해 등록합니다.
"CLAUDE_CODE_PLUGIN_DIRS": "/Users/<you>/.claude/mods/token-weather"

여러 플러그인 폴더는 ':'로 연결합니다.

  1. 검증하고 테스트한 다음 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 — manifest
  • hooks/hooks.json → hooks/register.tsx — the hooks module
  • hooks/weather.ts — pure helpers; hooks/weather.test.ts tests them
  • types/index.d.ts — the $.state contract

.claude-plugin/types/ is written by Claude Code at every load (API typings for tsc -p) and ignores itself; it is never committed.

동명의 다른 작품

비슷한 프로젝트