AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Data Formats

skill-vstorm-co-pydantic-deepagents-data-formats · by vstorm-co

Working with diverse data formats: binary, text, structured, and custom

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add skill-vstorm-co-pydantic-deepagents-data-formats

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-vstorm-co-pydantic-deepagents-data-formats)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Data Formats? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Data Formats

How to work with diverse and unknown data formats.

Format Detection

Always inspect before parsing:

file                     # MIME type detection
xxd  | head -5           # hex dump (first bytes)
head -3                  # text preview
python3 -c "
with open('', 'rb') as f:
    h = f.read(16)
    print(h, h.hex())
"

Common Formats

Binary

  • Magic bytes: Most binary formats start with a signature (ELF: \x7fELF, PNG: \x89PNG)
  • Endianness: Check if little-endian or big-endian (struct.unpack('I')
  • Alignment: Fields are often aligned to 4 or 8 bytes
  • Offsets: Binary headers often contain offsets to other sections

Structured text

  • CSV/TSV: Check delimiter (comma, tab, pipe), quoting, header row
  • JSON: python3 -c "import json; json.load(open('f'))"
  • YAML: Check indentation, anchors/aliases
  • TOML: python3 -c "import tomllib; ..."
  • XML: Check encoding declaration, namespaces

Checkpoints / Model files

  • PyTorch: .pt, .pthtorch.load(f, map_location='cpu')
  • TensorFlow: .ckpt → index + data files, use tf.train.load_checkpoint()
  • NumPy: .npy, .npznumpy.load()
  • HuggingFace: config.json + model.safetensors
  • ONNX: onnx.load()

Database files

  • SQLite: file says "SQLite 3.x database" → sqlite3 ".tables"
  • WAL files: SQLite write-ahead log — recover with sqlite3 PRAGMA
  • CSV dumps: Often need schema inference

Parsing Strategies

Unknown binary format

  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

Large structured files

  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

Multi-file datasets

  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

Common Pitfalls

  • Assuming UTF-8 when the file is Latin-1 or binary
  • Assuming CSV when it's TSV (or vice versa)
  • Ignoring the header row
  • Not handling quoted fields with embedded delimiters
  • Reading binary files as text (corrupts data)
  • Endianness mismatch (x86 is little-endian, network byte order is big-endian)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.