Install any skill in seconds. Free to start, no credit card required.
Get Started Free →When a user uploads or references a data file (CSV, JSON, XLSX, TXT, LOG) or any file larger than 100KB, immediately estimate token cost. If over 30k tokens, chunk and summarize. Use when large files are detected to prevent context overflow and maintain agent performance.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 850% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 538% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 324% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 206% | 0% |
Prevents context overflow by enforcing size-aware data loading. Large files can exceed context windows and crash agent workflows. This skill measures files before loading, chunks oversized data, and returns compact summaries with safe previews so downstream processing can continue without context exhaustion.
Before loading ANY data file:
bashpython scripts/estimate_size.py "<file_path>"
This returns byte count and estimated token count.
| Estimated Tokens | Action | |------------------|--------| | < 10,000 | Run quick inspection, load directly | | 10,000 - 30,000 | Run quick inspection, consider filtering | | > 30,000 | Chunk and summarize before loading |
For files under 10k tokens:
bashpython scripts/quick_inspect.py "<file_path>"
Return stats and load file directly.
For files over 30k tokens:
bashpython scripts/chunker.py "<file_path>" python scripts/summarize.py "<chunk_file>"
Return overall summary + per-chunk summaries + safe preview of first rows.
Always provide:
cat on unknown or large filesInput: User says "Analyze this sales data" and uploads a 50MB CSV file
Workflow:
scripts/estimate_size.py sales.csv - Output: 50MB, ~13M tokensscripts/chunker.py sales.csvscripts/summarize.py on representative chunksInput: User asks "Check my config.json for issues"
Workflow:
scripts/estimate_size.py config.json - Output: 2KB, ~512 tokensscripts/quick_inspect.py config.jsonInput: User uploads a 500KB application.log
Workflow:
scripts/estimate_size.py application.log - Output: 500KB, ~128K tokensscripts/chunker.py application.logOther measured skills in the registry, with their headline benchmark lift.