build-and-compile
Building, compiling, and resolving dependency issues across languages
Working with diverse data formats: binary, text, structured, and custom
$ npx -y skills add vstorm-co/pydantic-deepagents --skill data-formats --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/data-formatsContext preview
The summary Claude sees to decide when to auto-load this skill.
Working with diverse data formats: binary, text, structured, and custom
name: data-formats description: "Working with diverse data formats: binary, text, structured, and custom" tags: [data, parsing, formats, benchmark] version: "1.0.0"
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())
"1. Hex dump first 256 bytes: `xxd file | head -16` 2. Look for magic bytes, version numbers, string tables 3. Check file size — does it suggest a pattern? (e.g., N * record_size) 4. Look for documentation of the format online 5. Write a minimal parser, test on known values
1. Never load entirely — sample first: `head`, `tail`, `shuf -n 10` 2. Check consistency: are all lines the same format? 3. Count fields: `head -1 file | awk -F',' '{print NF}'` 4. Watch for: mixed types, missing values, encoding issues
1. List all files and sizes 2. Look for manifest/index files (often JSON or CSV) 3. Check naming patterns — timestamps, sequence numbers, shards 4. Process one file first, then generalize
Open-source, self-hosted Claude Code - a terminal AI assistant and the Python framework behind it. Tool-calling, sandboxed execution, multi-agent teams, skills, checkpoints, unlimited context - on Pydantic AI, any model.
Repo: vstorm-co/pydantic-deepagents
Building, compiling, and resolving dependency issues across languages
Systematic exploration of unknown environments before starting work
Writing efficient code that handles large data and tight constraints