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.
| < 10,000 | Run quick inspection, load directly | | 10,000 - 30,000 | Run quick inspection, consider filtering | | > 30,000 | Chunk and summarize before loading |
Return overall summary + per-chunk summaries + safe preview of first rows.
Quando un utente carica o fa riferimento a un file di dati (CSV, JSON, XLSX, TXT, LOG) o qualsiasi file più grande di 100KB, stima immediatamente il costo del token utilizzando scripts/estimate_size.py. Se >30k token, dividere in blocchi il file e riepilogare ogni blocco. Se più piccolo, eseguire un'ispezione rapida. Restituisci un'anteprima e un riepilogo sicuri senza chiedere all'utente cosa fare. Fonte: elliotjlt/claude-skill-potions.