terry-li-hm

usage

0
0
# Install this skill:
npx skills add terry-li-hm/skills --skill "usage"

Install specific skill from multi-skill repository

# Description

Check Claude Code Max plan usage stats. Use when user says "usage", "check usage", "how much have I used", "token usage", or wants to see Claude Code consumption.

# SKILL.md


name: usage
description: Check Claude Code Max plan usage stats. Use when user says "usage", "check usage", "how much have I used", "token usage", or wants to see Claude Code consumption.
user_invocable: true


Claude Code Usage Check

Check token usage and equivalent costs for Claude Code Max plan.

Tools Available

  • ccusage β€” Static reports (daily, monthly, session, blocks)
  • claude-monitor β€” Live dashboard (realtime tracking)

Quick Commands

# Current month daily breakdown
ccusage daily -s $(date +%Y%m01)

# Monthly summary
ccusage monthly

# With model breakdown
ccusage daily -s $(date +%Y%m01) --breakdown

# Per-session breakdown
ccusage session -s $(date +%Y%m01)

# Live monitoring (run in separate terminal)
claude-monitor --plan max20

Procedure

  1. Run ccusage daily -s $(date +%Y%m01) --breakdown for current month with model breakdown
  2. Summarize key stats:
  3. Total tokens used this month
  4. Equivalent API cost (for context on value extracted)
  5. Daily average
  6. Model mix (Opus vs Haiku vs Sonnet)
  7. If user wants live tracking, suggest running claude-monitor --plan max20 in a separate terminal

Max Plan Context

Plan Monthly Cost Token Allowance
Max5 $100 ~88K tokens/5min window
Max20 $200 ~220K tokens/5min window

Terry's weekly reset: Saturday 6pm HKT

The equivalent API cost shown by ccusage helps gauge value β€” if you're consistently using >$200/month equivalent, Max20 is worth it.

Weekly Limit Tracking

Anthropic doesn't disclose the exact weekly cap. Based on Terry's actual limit hits:
- Jan 23: Hit limit ~$800-1000 into the week
- Jan 30: Hit limit ~$700-900 into the week

Calibrated estimate: ~$800 equiv for Max20 weekly cap.

Thresholds (calibrated to Terry's data):
| % Used | Equiv Cost | Status |
|--------|------------|--------|
| 0-60% | $0-480 | βœ… Safe |
| 60-75% | $480-600 | ⚠️ Caution β€” pace yourself |
| 75-90% | $600-720 | 🟠 Warning β€” switch to Sonnet for routine tasks |
| 90%+ | $720+ | πŸ”΄ Danger β€” high risk of hitting limit |

Historical limit hits (from ~/.claude logs):
- 2026-01-23 12:07 HKT β€” "resets Jan 24 6pm"
- 2026-01-30 07:28 HKT β€” "resets 6pm" (Saturday)

To calculate weekly usage:
1. Find last Saturday 6pm HKT
2. Sum equiv cost since then
3. Calculate days until next Saturday 6pm
4. Show % of estimated $800 cap and burn rate

To find historical limit hits:

grep -rh '"text":"You'\''ve hit your limit' ~/.claude/projects/-Users-terry/*.jsonl | grep -o '"timestamp":"[^"]*"\|"text":"[^"]*"' | paste - - | sort -u

Aliases

These are defined in ~/.zshrc:
- cu β€” Quick current month daily view
- cm β€” Launch live monitor


Prompt

Step 1: Get usage data + limit history

# Current month usage
ccusage daily -s $(date +%Y%m01) --breakdown

# Recent limit hits (last 5)
grep -rh '"text":"You'\''ve hit your limit' ~/.claude/projects/-Users-terry/*.jsonl 2>/dev/null | \
  grep -o '"timestamp":"[^"]*"\|"text":"[^"]*"' | paste - - | sort -u | tail -5

Step 2: Calculate weekly status

  1. Find last reset: Most recent Saturday 6pm HKT before now
  2. Sum equiv cost since that reset
  3. Calculate % of estimated $600 cap
  4. Days remaining until next Saturday 6pm HKT

Step 3: Summarize with weekly warning

Output format:

**Weekly Limit Status**
- Reset: [last Sat date] 6pm β†’ [next Sat date] 6pm HKT
- Days remaining: X.X days
- Used this week: $XXX equiv (~XX% of ~$800 cap)
- Status: [βœ… Safe | ⚠️ Caution | 🟠 Warning | πŸ”΄ Danger]
- Burn rate: $XX/day β†’ projected $XXX by reset

**Recent Limit Hits**
- [date] β€” hit at ~$XXX, reset [time]
- [date] β€” hit at ~$XXX, reset [time]

**This Month**
| Day | Tokens | Cost |
...

**Recommendation:** [Pace advice based on status and history]

Thresholds (calibrated)

  • βœ… Safe (0-60%, <$480): No concerns
  • ⚠️ Caution (60-75%, $480-600): Pace yourself, avoid heavy sessions
  • 🟠 Warning (75-90%, $600-720): Switch to Sonnet for routine tasks
  • πŸ”΄ Danger (90%+, >$720): High risk of hitting limit, use Haiku/Sonnet only

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.