skills/codex-usage/SKILL.md
Codex の利用状況や API 従量課金換算を `@ccusage/codex` で確認するときに使う。日別・月別・セッション別の集計、期間指定、JSON 出力、最近の使用傾向の確認に使う。
npx skillsauth add ekozmdev/my-agent-skills codex-usageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
@ccusage/codex を使って、利用状況を集計する。
@ccusage/codex の標準出力または --json 出力だけを扱う.codex/ 配下の生ファイルや履歴を直接読んで独自解析することはしない@ccusage/codex の出力に忠実であることを優先するmonthly、daily、session、--help、--jsonmonthly を実行し、今月は daily --since YYYY-MM-01 を実行する.codex 生ログの直接解析@ccusage/codex の標準出力と session --json では、少なくともそのまま使えるリポジトリ識別子は出てこない。リポジトリ別集計のように生ログ解析が必要なものは、このスキルでは扱わない。
npx @ccusage/codex@latest が実行できること--offline を使うYYYY-MM-01 で求める--since に指定して日別集計を実行するsession や --json で追加調査するラッパースクリプトを優先して使う。
bash ./.agents/skills/codex-usage/scripts/report.sh monthly --noColor
直接実行する場合:
npx @ccusage/codex@latest monthly --noColor
bash ./.agents/skills/codex-usage/scripts/report.sh monthly --help
bash ./.agents/skills/codex-usage/scripts/report.sh daily --help
bash ./.agents/skills/codex-usage/scripts/report.sh session --help
bash ./.agents/skills/codex-usage/scripts/report.sh monthly --noColor
bash ./.agents/skills/codex-usage/scripts/report.sh daily --noColor
bash ./.agents/skills/codex-usage/scripts/report.sh session --noColor
bash ./.agents/skills/codex-usage/scripts/report.sh monthly --since 2026-03-01 --until 2026-03-31 --noColor
bash ./.agents/skills/codex-usage/scripts/report.sh daily --since 2026-03-01 --noColor
bash ./.agents/skills/codex-usage/scripts/report.sh monthly --json --since 2026-01-01
月別・日別・セッション別の @ccusage/codex --json 出力をモデルごとに再集計する。
bash ./.agents/skills/codex-usage/scripts/model_breakdown.sh monthly
bash ./.agents/skills/codex-usage/scripts/model_breakdown.sh monthly --since 2026-03-01
bash ./.agents/skills/codex-usage/scripts/model_breakdown.sh daily --since 2026-03-01
--help で使えるオプションを確認してよいmonthly で全体感を見るdaily --since YYYY-MM-01 を必ず実行するdaily をそのまま提示するsession で重いセッションを掘るmodel_breakdown.sh を使う--offline を付けるdaily --since ... --until ... で掘るtesting
uvで依存パッケージを管理する。追加・削除・更新・requirementsの出力に使う。
development
uvでPythonプロジェクトを初期化する。uv initの実行、生成物の確認、pyproject.tomlのadd-boundsやexclude-newer設定時に使う。
development
ユーザーレベルの AGENTS.md または ~/.agents/skills 配下のスキルを更新した場合に実行する。~/.codex/AGENTS.md と ~/.agents/skills を GitHub 管理リポジトリへ同期し、差分があればユーザー確認後にコミット・プッシュするスキル。
development
PythonプロジェクトでRuffを導入・設定する。uvでのインストール、ruff.toml配置、.gitignore更新のときに使う。