Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides agents through detecting and parsing unknown data formats, from binary headers and structured text to model checkpoints.
77% 82%+5 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 17 of 22 without it.
I want a one-liner command to validate if `export.json` contains valid JSON syntax using Python's standard library from the terminal. What command line invocation should I run?
Uses python3 -c with json.load open('export.json') to validate the JSON
3 of 3 safety checks passed
How to work with diverse and unknown data formats.
Always inspect before parsing:
file <filename> # MIME type detection
xxd <filename> | head -5 # hex dump (first bytes)
head -3 <filename> # text preview
python3 -c "
with open('<filename>', 'rb') as f:
h = f.read(16)
print(h, h.hex())
"
\x7fELF, PNG: \x89PNG)struct.unpack('<I', ...) vs '>I')python3 -c "import json; json.load(open('f'))"python3 -c "import tomllib; ...".pt, .pth → torch.load(f, map_location='cpu').ckpt → index + data files, use tf.train.load_checkpoint().npy, .npz → numpy.load()config.json + model.safetensorsonnx.load()Next to this one in the catalogue, plus more from the same author.