large-json-search
Installation
SKILL.md
Context-Safe Large JSON Search
A minified 900 KB JSON export is one line, so head -n 20 and line-based file readers dump the entire file into context, and JSON.parse() fails past ~512 MB (ERR_STRING_TOO_LONG / RangeError: Invalid string length). Use Gronify's streaming commands with explicit caps so only the lines you ask for enter context.
Prerequisites
Check command -v gronify (PowerShell: Get-Command gronify) and verify cap flags exist (gronify search --help | grep -e --max-count, requires 1.2.0+). If missing, use npx gronify ... or ask the user before running npm install -g gronify or brew install 1solomonwakhungu/tap/gronify.
Mandatory size gate
Before opening any unfamiliar .json file, measure it:
wc -c payload.json # PowerShell: (Get-Item payload.json).Length
- Under ~50 KB: read the file normally.
- 50 KB or larger (or minified onto 1 line): never
catit or open it whole with a file-read tool. Follow the narrowing loop below with--no-color.