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

sth-usage

Buddy: 컨텍스트, 세션 요약과 재개, 프로젝트 진단, STH skills, fika 휴식

Skills-transfer-hub@Skills-transfer-hub

Skills-transfer-hub/sth-claude/tree/main/mods/sth-usage

번역 완료

이 mod 소개

Buddy · Claude Code

버전 0.3.1입니다. Home 패널 하단에도 버전이 표시됩니다.

Buddy는 Claude 컨텍스트와 할당량, 변경된 파일과 검사를 추적한 뒤 프로젝트에 맞는 STH skills를 찾도록 돕습니다.

소프트웨어 소스 코드는 MIT 라이선스입니다. Buddy 아트워크, 애니메이션 데이터, STH 브랜딩은 보류되어 있습니다. LICENSE를 확인하세요.

일반적인 사용

  • Claude가 작업하는 동안 컨텍스트와 할당량 사용량을 확인하고 Context에서 활성 에이전트를 살펴봅니다.
  • Summary에서 변경된 파일과 관찰된 테스트 결과를 검토하고 인식된 검사를 실행한 뒤 나중에 작업을 재개할 초안을 준비합니다.
  • 프로젝트를 STH 카탈로그에 연결하고 관련 skill을 설치한 다음 업데이트하거나 제거하기 전에 설치된 버전을 확인합니다.

mod는 세션과 프로젝트 정보를 읽고 로컬 Resume 요약을 저장합니다. 정확한 내용, 보존 기간, 외부 CLI 동작, 삭제 단계는 Privacy and data handling을 확인하세요. 도움이 필요하면 GitHub issues를 사용하고 비밀이나 비공개 프로젝트 데이터를 넣지 마세요.

GitHub에서 설치

Claude Code 2.1.287 이상과 Git이 필요합니다. 터미널에서 실행합니다.

claude plugin marketplace add https://github.com/Skills-transfer-hub/sth-claude.git
claude plugin install sth-usage@sth --scope user

프로젝트에서 Claude Code를 시작한 뒤 /sth-usage를 실행합니다. 이미 열린 세션에서는 먼저 /reload-plugins를 실행하세요. user scope를 사용하면 모든 프로젝트에서 Buddy가 활성화됩니다. STH CLI는 카탈로그, 설치, 업데이트 작업에만 필요하며 사용량 추적에는 필요하지 않습니다.

업데이트하려면:

claude plugin marketplace update sth
claude plugin update sth-usage@sth

업데이트 후 /reload-plugins를 실행하거나 Claude Code를 다시 시작합니다. 제거하려면 claude plugin uninstall sth-usage@sth를 실행합니다.

공식 mod 설치 가이드와 마켓플레이스 가이드를 확인하세요.

mod 로드

Claude Code 2.1.287 이상이 필요합니다. 이 디렉터리에서 실행합니다.

claude --plugin-dir .

mod를 로드한 세션에서는 저장할 때마다 모듈이 다시 로드됩니다. 플러그인이 없는 데스크톱 세션에는 이 기능이 자동으로 적용되지 않습니다.

사용법

인터페이스는 오른쪽 패널에 있습니다. 홈 화면에는 Buddy가 있고 그 아래에 STH, Summary, More(Context, Diagnostics, Resume)로 이루어진 단일 탐색 행이 있습니다. STH 페이지에서 설치된 skills와 카탈로그를 관리합니다. More를 펼치면 탐색 버튼 3개가 나타납니다. 다른 화면에는 Home 버튼 하나가 있습니다. 탐색은 현재 패널을 바꾸며 그 위에 다른 패널을 겹치지 않습니다. mod는 메시지 입력란 위에 띠를 추가하지 않습니다.

Usage 카드에는 각 지표가 한 번씩만 표시됩니다. 할당량과 재설정 시간, 컨텍스트, 관찰된 토큰, 비용, 에이전트입니다. Pill은 STH 디자인 시스템의 중립 token을 따르며 얇은 윤곽선, Inter 레이블, JetBrains Mono SVG 값을 사용합니다. 기본 컨트롤은 Claude가 정한 글꼴과 크기를 유지하고 터미널 버튼은 중립 윤곽선을 사용합니다. 빨간색은 오류 전용입니다.

데스크톱에서는 pill 세부 정보가 마우스를 올릴 때 표시됩니다. 카운트다운은 30초마다 다시 그리지만 새 사용량 데이터를 요청하지 않습니다. “~”는 mod가 로드된 뒤 누적된 토큰을 뜻하며 이전 기록은 없을 수 있습니다. main의 패널 프리뷰 소스는 샘플 데이터가 있는 밝은색, 어두운색, 좁은 레이아웃을 보여 주지만 Claude 세션은 아닙니다.

| 접근 | 기능 | | --- | --- | | More → Context 또는 /sth-context | 컨텍스트 분석: 시스템, 도구, MCP, 메모리, 메시지, 활성 에이전트. | | /sth-usage | Buddy, 통합 사용량 지표, 다른 패널로 이동하는 탐색. | | Summary 또는 /sth-activity | 실제로 쓰인 파일, 도구 오류, 관찰된 테스트. 버튼으로 diff를 열고 검증 초안을 준비하며 상세 요약을 봅니다. 인식된 테스트는 패널에서 명시적으로 요청할 때만 실행됩니다. | | STH 또는 /sth-skills | 설치된 skills, 버전, 업데이트와 프로젝트 manifest 기반 카탈로그 추천. | | /sth-doctor | 스택, 사용 가능한 바이너리, 테스트 명령, STH 설정, 관찰된 MCP 도구 상태. 진단은 테스트를 실행하지 않습니다. | | More → Resume 또는 /sth-resume | 이전 세션의 목표, 파일, 검사, 다음 단계. 요약을 초안에 명시적으로 추가하기 전에 확인하세요. 자동으로 보내지 않습니다. |

Buddy는 진행 중, 권한 대기, 오류, 완료된 턴, 중단을 구분합니다. 메인 턴이 최소 60초 지속되면 Claude에 눈에 띄지 않는 알림을 보냅니다.

터미널이 이미지를 지원하면 Buddy는 원본 이미지 픽셀을 표시하려고 합니다. 일반 상태는 384 × 384, Fika는 720 × 720입니다. 소스 checkout은 원본 PNG를 읽고 compact 릴리스는 무손실 압축 프레임 데이터에서 RGBA 픽셀을 재구성합니다. 인코딩은 픽셀, 크기, 프레임 순서를 보존하고 재생도 기존 타이밍을 유지합니다. 터미널에서 실제 이미지 거부가 발생하면 96 × 96 포즈로 만든 색상 사분면 대체 그림을 활성화합니다. 이는 문자 기반 그림이며 세부 정도는 패널 크기와 터미널 글꼴에 따라 달라집니다. tmux에서는 대체 그림을 바로 사용합니다. 패널은 크기에 맞춰 애니메이션을 조정하고 공간이 부족하면 확대를 제안합니다. 데스크톱은 기존 HD 이미지를 유지합니다.

컨텍스트는 Claude의 summary 모드로 로컬에서 추정합니다. 추적을 위해 추가 모델을 호출하지 않습니다. 알 수 없는 지표는 사용할 수 없는 상태로 남으며 누적 청구 토큰으로 컨텍스트 창이 얼마나 찼는지는 알 수 없습니다.

종료 코드가 관찰된 경우에만 테스트를 통과 또는 실패로 표시합니다. Bash 도구가 그 코드를 제공하지 않는 버전에서는 결과가 검증되지 않은 상태로 남습니다. 실행 버튼은 인식된 프로젝트 명령을 사용하고 실제 결과를 표시합니다. 기본 diff에는 현재 턴 전에 만들어진 변경이 포함될 수 있습니다.

MCP 상태는 노출된 도구와 관찰된 호출을 반영합니다. 도구가 없는 서버가 연결되었다는 뜻은 아닙니다. STH가 제공하면 skill 버전을 표시합니다. 업데이트는 고정된 버전을 건너뛰고 로컬 변경을 보호합니다. 업데이트 보고서는 새 STH 상태 확인에서 오며 검증 실패도 그대로 보입니다.

로컬 요약은 세션 디렉터리의 .sth/buddy-session.json에 저장됩니다. 축약된 목표, 최대 40개 경로와 12개 검사 결과를 담으며 트랜스크립트나 명령 출력은 담지 않습니다. 흔한 비밀은 마스킹하고 민감한 경로는 제외합니다. 쓰기 오류는 패널에 표시됩니다.

STH 설치

STH 바이너리를 찾을 수 없으면 Buddy가 프로젝트 설정 전에 설치 가이드를 보여 줍니다.

macOS 또는 Linux, Homebrew:

brew install skills-transfer-hub/sth/sth
sth version

Windows, Scoop:

scoop bucket add sth https://github.com/Skills-transfer-hub/scoop-sth
scoop install sth
sth version

Windows 대안: winget install STH.STH 또는 choco install sth.

패키지 관리자가 없으면 공식 릴리스를 사용해 SHA256SUMS를 확인하고 바이너리를 PATH에 추가하세요. STH 설치 문서를 확인하세요.

필요하면 터미널을 다시 시작한 뒤 Check installation 또는 /sth-doctor를 사용합니다. STH를 사용할 수 있으면 /sth-skills로 카탈로그를 프로젝트에 연결할 수 있습니다.

mod 검증

claude plugin validate .
claude plugin test .

터미널 및 데스크톱 렌더링, 버튼과 초안, 누락된 데이터, 권한, 요약과 재개, 기존 Buddy 및 Fika 애니메이션을 테스트합니다.

compact 배포판 게시

main의 소스 checkout을 사용합니다. compact 릴리스는 빌드 도구와 프리뷰를 제외합니다. 먼저 소스 변경과 버전 증가를 커밋하세요. 빌더에는 Python 3.12, Pillow 12.3.0, NumPy 2.3.5가 필요합니다. mod 소스 디렉터리에서 실행합니다.

sth_release_dir=$(mktemp -d)
sth_source_root=$(git rev-parse --show-toplevel)
sth_source_commit=$(git rev-parse HEAD)
python3 tools/build_directory_bundle.py --source . --output "$sth_release_dir/bundle" --include-tests
claude plugin validate "$sth_release_dir/bundle/sth-usage"
claude plugin test "$sth_release_dir/bundle/sth-usage"
python3 tools/stage_directory_release.py --source-root "$sth_source_root" --bundle "$sth_release_dir/bundle/sth-usage" --output "$sth_release_dir/tree" --source-commit "$sth_source_commit"
python3 tools/publish_directory_release.py --source-root "$sth_source_root" --tree "$sth_release_dir/tree" --publish

게시자는 compact 플러그인, 마켓플레이스, 문서, 라이선스 공지를 담은 codex/directory-release만 업데이트합니다. 오래된 버전을 거부하고 강제 push는 하지 않습니다. --publish를 생략하면 dry run을 수행합니다. 원본 아트워크와 개발 파일은 main에 남습니다.

Claude Directory 소스가 codex/directory-release를 따르도록 설정하면 이후 업데이트 확인에서 compact 릴리스를 볼 수 있습니다. Directory 검증과 리뷰는 GitHub 게시와 분리되어 있습니다. 마켓플레이스 사용자는 https://github.com/Skills-transfer-hub/sth-claude.git#codex/directory-release에서 설치할 수 있으며 자동 업데이트는 /plugin → Marketplaces → sth에서 별도로 활성화합니다.

프리뷰 재빌드

main의 소스 checkout에서 Node 22 이상과 로컬에서 사용할 수 있는 STH 디자인 시스템을 준비합니다.

node tools/preview_usage_pills.mjs /path/to/design-system
python3 -m http.server 8768 --bind 127.0.0.1 --directory previews/usage-band

로컬 프리뷰를 엽니다. STH, Summary, More는 같은 패널에서 샘플 보기를 열고 Home은 사용량 개요로 돌아가 이전 보기를 닫습니다. STH 보기에는 작동하는 Installed 및 Catalog 탭이 있습니다. 프리뷰에서는 설치, 제거, 세션 작업, 대시보드 탐색을 비활성화합니다.

생성기는 mod의 SVG 렌더러를 사용하고 원본 Buddy 이미지와 디자인 시스템 스타일을 복사하며 소스는 수정하지 않습니다. 프리뷰는 디자인 시스템의 Google Fonts import와 선언된 로컬 대체 글꼴을 사용합니다. mod는 실행 중 이 글꼴을 가져오지 않습니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add Skills-transfer-hub/sth-claude
claude plugin install sth-usage
원문 / README

Buddy · Claude Code

Version 0.3.1. The version is also visible at the bottom of the Home panel.

Buddy tracks Claude context and quotas, changed files and checks, then helps you find STH skills that fit your project.

Software source code is MIT-licensed. Buddy artwork, animation data and STH branding are reserved; see LICENSE.

Typical uses

  • Watch context and quota usage while Claude works, then inspect active agents in Context.
  • Review changed files and observed test results in Summary, run a recognized check, and prepare a draft to resume the work later.
  • Connect a project to an STH catalog, install a relevant skill, and check installed versions before updating or removing it.

The mod reads session and project information and saves a local Resume summary. See Privacy and data handling for the exact contents, retention, external CLI behavior and deletion steps. For help, use GitHub issues; do not include secrets or private project data.

Install from GitHub

Requires Claude Code 2.1.287 or later and Git. Run in your terminal:

claude plugin marketplace add https://github.com/Skills-transfer-hub/sth-claude.git
claude plugin install sth-usage@sth --scope user

Start Claude Code in your project, then run /sth-usage. In an already open session, run /reload-plugins first. The user scope enables Buddy across your projects. The STH CLI is only needed for catalog, installation and update actions; usage tracking works without it.

To update:

claude plugin marketplace update sth
claude plugin update sth-usage@sth

Run /reload-plugins or restart Claude Code after updating. To uninstall, run claude plugin uninstall sth-usage@sth.

See the official mod installation guide and marketplace guide.

Load the mod

Claude Code 2.1.287 or later is required. From this directory:

claude --plugin-dir .

The module reloads on every save in a session that has loaded it. Desktop sessions without the plugin do not receive these features automatically.

Usage

The interface lives in the right panel. The home screen keeps Buddy, followed by a single navigation row: STH, Summary and More (Context, Diagnostics and Resume). The STH page manages installed skills and the catalog. More expands three navigation buttons. Other screens provide a single Home button. Navigation replaces the current panel instead of stacking another panel on top. The mod does not add a strip above the message field.

The Usage card shows each metric once: quotas and reset times, context, observed tokens, cost and agents. Pills follow the STH design system's neutral tokens: thin outlines, Inter labels and JetBrains Mono SVG values. Native controls keep the fonts and dimensions imposed by Claude; terminal buttons have neutral outlines. Red is reserved for errors.

Desktop pill details appear on hover. The countdown redraws every 30 seconds without requesting new usage data. “~” marks tokens accumulated since the mod loaded; earlier history may be missing. The panel preview source on main shows light, dark and narrow layouts with sample data; it is not a Claude session.

| Access | Function | | --- | --- | | More → Context or /sth-context | Context breakdown: system, tools, MCP, memory, messages and active agents. | | /sth-usage | Buddy, combined usage metrics and navigation to the other panels. | | Summary or /sth-activity | Files actually written, tool errors and observed tests. Buttons open the diff, prepare a verification draft and show the detailed summary. Recognized tests run only when explicitly requested in the panel. | | STH or /sth-skills | Installed skills, versions and updates; catalog recommendations based on project manifests. | | /sth-doctor | Stack, available binaries, test commands, STH configuration and observed MCP tool status. Diagnostics do not run tests. | | More → Resume or /sth-resume | Goal, files, checks and next step from the previous session. Inspect the summary before explicitly adding it to the draft; it is not sent automatically. |

Buddy distinguishes work in progress, pending permission, errors, completed turns and interruptions. A main turn lasting at least 60 seconds triggers a discreet notification in Claude.

Buddy tries to display the original image pixels when the terminal supports images: 384 × 384 for regular states and 720 × 720 for Fika. Source checkouts read the original PNGs; compact releases reconstruct their RGBA pixels from lossless compressed frame data. The encoding preserves the pixels, dimensions and frame sequence, and playback keeps its existing timing. An actual image rejection from the terminal enables a colored quadrant fallback generated from 96 × 96 poses. This remains a character-based drawing: its detail depends on the panel size and terminal font. Under tmux, the fallback is used directly. The panel adapts the animation to its size and suggests enlarging it when space is limited. Desktop keeps the existing HD images.

Context is estimated locally using Claude's summary mode. The mod does not call an additional model for tracking. Unknown metrics remain unavailable; cumulative billed tokens do not indicate how full the context window is.

Tests are marked as passed or failed only when an exit code has been observed. In versions where the Bash tool does not provide that code, the result remains unverified. The run button uses a recognized project command and displays its actual result. The native diff may include changes made before the current turn.

MCP status reflects exposed tools and observed calls. It does not prove that a server with no tools is connected. Skill versions are displayed when STH provides them. Updates skip pinned versions and protect local changes. The update report comes from a fresh STH status check; a failed verification remains visible as such.

The local summary is stored in .sth/buddy-session.json in the session directory. It contains an abbreviated goal, up to 40 paths and 12 check results, without a transcript or command output. Common secrets are masked and sensitive paths are excluded. Write errors appear in the panel.

Install STH

If the STH binary is missing, Buddy shows the installation guide before project setup.

macOS or Linux with Homebrew:

brew install skills-transfer-hub/sth/sth
sth version

Windows with Scoop:

scoop bucket add sth https://github.com/Skills-transfer-hub/scoop-sth
scoop install sth
sth version

Windows alternatives: winget install STH.STH or choco install sth.

Without a package manager, use the official releases, verify SHA256SUMS and add the binary to PATH. See the STH installation documentation.

Restart the terminal if needed, then use Check installation or /sth-doctor. Once STH is available, /sth-skills lets you connect a catalog to the project.

Validate the mod

claude plugin validate .
claude plugin test .

Tests cover terminal and desktop rendering, buttons and drafts, missing data, permissions, summaries and resume, plus the existing Buddy and Fika animations.

Publish a compact distribution

Use a checkout of the source on main; compact releases omit build tools and previews. Commit the source changes and version bump first. The builder needs Python 3.12, Pillow 12.3.0 and NumPy 2.3.5. From the mod's source directory:

sth_release_dir=$(mktemp -d)
sth_source_root=$(git rev-parse --show-toplevel)
sth_source_commit=$(git rev-parse HEAD)
python3 tools/build_directory_bundle.py --source . --output "$sth_release_dir/bundle" --include-tests
claude plugin validate "$sth_release_dir/bundle/sth-usage"
claude plugin test "$sth_release_dir/bundle/sth-usage"
python3 tools/stage_directory_release.py --source-root "$sth_source_root" --bundle "$sth_release_dir/bundle/sth-usage" --output "$sth_release_dir/tree" --source-commit "$sth_source_commit"
python3 tools/publish_directory_release.py --source-root "$sth_source_root" --tree "$sth_release_dir/tree" --publish

The publisher updates only codex/directory-release, which contains the compact plugin, marketplace, documentation and licensing notices. It refuses older versions and never force-pushes. Omitting --publish performs a dry run. Original artwork and development files remain on main.

Configure the Claude Directory source to follow codex/directory-release so future update checks see compact releases. Directory validation and review remain separate from GitHub publication. Marketplace users can install from https://github.com/Skills-transfer-hub/sth-claude.git#codex/directory-release; they enable automatic updates separately in /plugin → Marketplaces → sth.

Rebuild the preview

From the source checkout on main, with Node 22 or later and the STH design system available locally:

node tools/preview_usage_pills.mjs /path/to/design-system
python3 -m http.server 8768 --bind 127.0.0.1 --directory previews/usage-band

Open the local preview. STH, Summary and More open sample views in the same panel; Home returns to the usage overview and closes the previous view. The STH view has working Installed and Catalog tabs. Installation, removal, session actions and dashboard navigation are disabled in the preview.

The generator uses the mod's SVG renderer and copies the original Buddy image and design system styles without modifying their sources. The preview uses the design system's Google Fonts import, with its declared local fallbacks. The mod does not fetch these fonts at runtime.

비슷한 프로젝트