본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트11k · #11727

model-usage

하는 일

이 스킬은 CodexBar 도구의 로컬 비용 기록을 바탕으로 AI 모델별 사용 비용을 AI가 보고하도록 합니다. 어떤 AI 모델이 비용을 가장 많이 드는지 알고 싶은 사람들을 위한 스킬입니다.

사용하는 경우

  • ✓Codex나 Claude에서 최근에 가장 많이 쓴 모델을 알고 싶을 때.
  • ✓모델별 비용을 전부 나눠 보고 싶을 때.
  • ✓스크립트가 읽을 수 있는 형식으로 모델별 비용 요약이 필요할 때.

스킬 링크

https://github.com/spinabot/brigade/blob/main/skills/model-usage/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/spinabot/brigade/blob/main/skills/model-usage/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Claude 모델마다 얼마를 썼는지 간단한 목록으로 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 CodexBar 도구나 사용자가 준 파일에서 비용 데이터를 읽습니다. 그다음 비용을 모델별로 묶어, 가장 최근 모델만 고르거나 모든 모델을 나열해 일반 텍스트나 JSON으로 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Model usage

Overview

Get per-model usage cost from CodexBar's local cost logs. Supports "current model" (most recent daily entry) or "all models" summaries for Codex or Claude.

TODO: add Linux CLI support guidance once CodexBar CLI install path is documented for Linux.

Quick start

  1. Fetch cost JSON via CodexBar CLI or pass a JSON file.
  2. Use the bundled script to summarize by model.
python {baseDir}/scripts/model_usage.py --provider codex --mode current
python {baseDir}/scripts/model_usage.py --provider codex --mode all
python {baseDir}/scripts/model_usage.py --provider claude --mode all --format json --pretty

Current model logic

  • Uses the most recent daily row with modelBreakdowns.
  • Picks the model with the highest cost in that row.
  • Falls back to the last entry in modelsUsed when breakdowns are missing.
  • Override with --model <name> when you need a specific model.

Inputs

  • Default: runs codexbar cost --format json --provider <codex|claude>.
  • File or stdin:
codexbar cost --provider codex --format json > /tmp/cost.json
python {baseDir}/scripts/model_usage.py --input /tmp/cost.json --mode all
cat /tmp/cost.json | python {baseDir}/scripts/model_usage.py --input - --mode current

Output

  • Text (default) or JSON (--format json --pretty).
  • Values are cost-only per model; tokens are not split by model in CodexBar output.

References

  • Read references/codexbar-cli.md for CLI flags and cost JSON fields.
자주 묻는 질문

비용 데이터는 어디서 오나요?

CodexBar의 로컬 비용 기록에서 오며, 스킬이 CodexBar 명령줄 도구를 통해 읽습니다.

토큰 수도 모델별로 나뉘나요?

아닙니다. 데이터는 모델별 비용을 주지만 토큰은 모델별로 나뉘지 않습니다.

대신 저장된 파일을 쓸 수 있나요?

네. 도구를 실시간으로 실행하는 대신, 저장된 비용 파일을 주거나 데이터를 파이프로 넣을 수 있습니다.

상세 정보

작성자의 원본 설명

Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.

repo: spinabot/brigade

인기도

GitHub 스타
11k
순위
#11727
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬