Skill / SKILL.md

Token Budget Guard

ducdg88/ducpt-skills

Read local Claude Code or Claude API usage logs and report token counts, prompt-cache hit rate and estimated cost by model, then warn before a session goes over a spending budget. Runs fully offline on files already on disk; never calls a paid API and never guesses prices. Use when the user says "tiết kiệm token", "đang đốt credit", "token budget", "chi phí AI", "cảnh báo trước khi vượt ngân sách", "cache hit là gì", or wants to know why an agent session cost more than expected before running a bigger job.
2 views 11 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Read local Claude Code or Claude API usage logs and report token counts, prompt-cache hit rate and estimated cost by model, then warn before a session goes over a spending budget. Runs fully offline on files already on disk; never calls a paid API and never guesses prices. Use when the user says "tiết kiệm token", "đang đốt credit", "token budget", "chi phí AI", "cảnh báo trước khi vượt ngân sách", "cache hit là gì", or wants to know why an agent session cost more than expected before running a bigger job.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/ducdg88/ducpt-skills' skill-source

Use the complete skill-source/skills/token-budget-guard directory with your client’s skill installer.

  • skills/token-budget-guard

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/token-budget-guard

Compatibility & requirements

Declared compatibility

Python 3.8+ standard library only. Reads local JSONL/JSON log files; no network access, no API key needed.

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
c108348f5a70afd49bbb9815467799baab2f069b1a6d4237393ce055cffd69c3
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills