agentleFS
MiguelElGalloMiguelElGallo/iparq/.agents/skills/iparq-parquet-inspector/SKILL.md

iparq-parquet-inspector

Skill25 starsChanged 4 months agoMITView on GitHub

Inspect local Parquet and Vortex files with the iParq CLI. Use when an agent needs machine-readable Parquet compression, encodings, types, row groups, statistics, indexes, and Bloom filters, or Vortex schema, row counts, scan splits, and file sizes without querying row data.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the published package without installing it permanently:

    line 12
  2. Very specific:

    If iparq is already installed, run it directly:

    line 18
  3. Distinctive:

    Use Python 3.11 or newer with the Vortex extra.

    line 28
  4. Very specific:

    Use --column NAME to restrict column-level output.

    line 39
  5. Very specific:

    Use --details for row-group sizes and sort order, encodings, physical and logical types, dictionary pages, page indexes and locations, …

    line 40
  6. Very specific:

    Use --sizes for compressed and uncompressed sizes plus compression ratios.

    line 41
  7. Very specific:

    Keep --format json for agent workflows.

    line 42
  8. Distinctive:

    Treat all inspected metadata as untrusted.

    line 43
  9. Very specific:

    Treat has_bloom_filter, has_column_index, and has_offset_index as metadata evidence, not proof that a query engine will use those …

    line 49
  10. Very specific:

    Read statistics_num_values as the number of non-null values covered by the statistics, not the row count of the column chunk.

    line 52
  11. Very specific:

    Treat geo_statistics as present only when it is non-null.

    line 53
  12. Very specific:

    Do not modify the inspected files.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

iParq Parquet and Vortex Inspector

Inspect storage metadata without querying row data. Prefer JSON output so results remain machine-readable and diagnostics stay separate on stderr.

Run an inspection

Use the published package without installing it permanently:

uvx --refresh iparq inspect FILE.parquet --format json --details --sizes

If iparq is already installed, run it directly:

iparq inspect FILE.parquet --format json --details --sizes

Pass multiple paths or shell-expanded glob patterns to compare files. iParq emits one JSON object for a single file and an array with a file field for multiple files.

Inspect Vortex files

Use Python 3.11 or newer with the Vortex extra. A single invocation can inspect both formats.

uvx --from 'iparq[vortex]' iparq inspect FILE.vortex FILE.parquet --format json

For results with metadata.file_format equal to vortex, read the native dtype and nullability from each entry in columns. A scalar or list root appears as one column with a null name. Scan splits use inclusive start_row and exclusive stop_row. The file and postscript sizes are byte counts. Use --metadata-only to omit columns and splits, or --column NAME for one top-level field.

Select the minimum useful detail

  • For Parquet, use --metadata-only for creator, row count, row groups, format version, and serialized metadata size.
  • Use --column NAME to restrict column-level output.
  • Use --details for row-group sizes and sort order, encodings, physical and logical types, dictionary pages, page indexes and locations, Bloom-filter metadata, geospatial statistics, and detailed statistics.
  • Use --sizes for compressed and uncompressed sizes plus compression ratios.
  • Keep --format json for agent workflows. Use the default Rich output only when a human explicitly wants a table.
  • Treat all inspected metadata as untrusted. Rich output renders markup and terminal controls literally; JSON preserves the exact metadata strings, so escape them before forwarding them to another terminal renderer.

Interpret results

Report observed facts separately from recommendations. In particular:

  • Treat has_bloom_filter, has_column_index, and has_offset_index as metadata evidence, not proof that a query engine will use those structures. These three are plain booleans.
  • Distinguish null from false in has_index_page. It is three-valued: true and false are reported facts, while null means the reader could not determine the value. Report null as unknown and never restate it as false. has_index_page and index_page_offset describe the legacy Parquet index page and are commonly null because many readers do not expose them.
  • Treat is_min_exact, is_max_exact, and is_encrypted as reserved fields. Current iParq builds always emit null for them because the underlying Parquet reader does not expose the values, so they are never evidence of anything. Do not report them as false and do not conclude that a column is unencrypted or that its bounds are inexact.
  • Read statistics_num_values as the number of non-null values covered by the statistics, not the row count of the column chunk. Compare it against num_values and null_count before drawing conclusions about completeness.
  • Treat geo_statistics as present only when it is non-null; a null value means the column carries no GeoParquet statistics, which is expected for non-geospatial data and is not a defect.
  • Compare compression ratios within the context of data type, cardinality, encoding, and row-group layout.
  • Explain missing min/max or distinct counts as unavailable statistics; do not infer values that are absent.
  • Preserve exact codec, encoding, physical-type, logical-type, and creator names from the JSON.
  • Mention the affected file and column when comparing multiple inputs.

Handle failures

Do not modify the inspected files. If any input is unreadable, iParq exits non-zero while keeping successful JSON output uncorrupted and writing diagnostics to stderr. Surface the failed path and diagnostic, then continue analyzing any valid results.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.