From father-time
Estimate the token cost of reading a file or directory before doing it. Use when asking "how many tokens would this cost", "how big is this file in tokens", or before reading large files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/father-time:context-budgetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Estimate how many tokens a file or directory will consume before reading it.
Estimate how many tokens a file or directory will consume before reading it.
Rule of thumb: 1 token ≈ 4 characters (English text/code). This is a rough estimate.
When the user asks about a file or directory:
wc -c < "filepath"
Or for a directory:
find "dirpath" -type f -exec wc -c {} + | tail -1
Estimate tokens: file_size_bytes / 4
Show the estimate with context AND model comparison:
File: path/to/file.py
Size: 12,400 bytes
Est. tokens: ~3,100
Context impact: 0.3% of 1M window
Cost to read (first time / cached):
Opus: $0.047 / $0.005
Sonnet: $0.009 / $0.001
Haiku: $0.002 / $0.0002
Use these prices per 1M tokens for the comparison:
| Model | Input | Cache Read | Cache Write | Output |
|---|---|---|---|---|
| Opus 4.6 | $5.00 | $0.50 | $6.25 | $25.00 |
| Sonnet 4.6 | $3.00 | $0.30 | $3.75 | $15.00 |
| Haiku 4.5 | $1.00 | $0.10 | $1.25 | $5.00 |
For directories, also show file count and breakdown of largest files.
| Tokens | % of 1M | % of 200K | Verdict |
|---|---|---|---|
| < 1K | 0.1% | 0.5% | Trivial |
| 1-5K | 0.1-0.5% | 0.5-2.5% | Light |
| 5-20K | 0.5-2% | 2.5-10% | Moderate |
| 20-50K | 2-5% | 10-25% | Heavy — consider reading specific sections |
| 50K+ | 5%+ | 25%+ | Very heavy — read only what you need |
--offset and --limit on Read for large filesnpx claudepluginhub afterrealm/marketplace --plugin father-timeGuides token-efficient tool patterns: Edit for diffs, Glob/Grep for searches, concise context. Applies always to extend session capacity.
Evaluates .claude/ directory token efficiency by scanning files, estimating tokens, categorizing load types, detecting issues like long CLAUDE.md or duplicates, and generating scored report.
Generates a compact project map listing every file's size, token estimate, and category. Highlights total token cost, heaviest files, and structure breakdown for quick codebase understanding.