AGENT SKILL

io-conversion

Open, convert, export, and validate local and optional remote tabular data with Vaex.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
io-conversion
license
MIT
metadata
{ "disco-role": "operating" }
description
Open, convert, export, and validate local and optional remote tabular data with Vaex.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

IO Conversion

Use this sub-skill when the task is about getting tabular data into or out of Vaex: opening local files, converting CSV/Arrow/Parquet/Feather/HDF5, exporting DataFrames, checking roundtrips, or diagnosing format-specific failures.

Route first

  • For generic DataFrame construction, lazy DataFrame semantics, virtual columns, selections, and basic inspection, route to ../dataframe-core/SKILL.md.
  • For overall vaex command discovery, settings, aliases, environment variables, and non-conversion CLI commands, route to ../cli-settings/SKILL.md.
  • For expression syntax, filters used in conversion, groupby/binby/aggregation, joins, and analytic validation, route to ../expressions-analytics/SKILL.md.
  • Stay here for vaex.open, open_many, from_csv, from_csv_arrow, from_pandas, from_arrow_table, df.export*, df.to_arrow_table, local astro file openers, cloud path caveats, and vaex convert data semantics.

Read order

  1. references/io-workflows.md for actionable open/convert/export recipes, API signatures, vaex convert options, and roundtrip checks.
  2. references/data-formats.md for format selection, memory-mapping behavior, schema caveats, and Pandas/Arrow/HDF5 handoff details.
  3. references/astro-and-cloud-io.md for optional local astro formats and remote/cloud/TAP skip conditions. Do not run network or credentialed checks unless the user explicitly authorizes them.
  4. references/troubleshooting.md when vaex.open fails, a plugin is missing, a CSV conversion is memory-heavy, conversion cleanup is surprising, or a file opens in Pandas but not in Vaex.

Safe bundled helpers

  • scripts/io_roundtrip_smoke.py creates tiny local data, exercises Vaex export and open roundtrips, and validates Pandas/Arrow table handoffs. It never uses network paths.
  • scripts/convert_csv_hdf5.py converts a local CSV to Vaex HDF5 with optional column selection, filtering, sorting, fractioning, chunk size, listing, dry run, and safe partial-output handling. It rejects remote paths.

Run both helpers with --help first. They are safe from arbitrary working directories and use installed public Vaex APIs rather than source-checkout files.

Operating rules

  • Prefer memory-mappable Vaex HDF5 or Arrow-family files for repeated large-data work; treat CSV as an ingestion/interchange format and convert when the same data will be queried repeatedly.
  • Use vaex.open(path) for lazy file-backed access when the format is supported; use vaex.open(path, convert="data.hdf5") or the bundled conversion helper for large CSVs that need a faster local binary representation.
  • Validate every conversion with at least: row count, column names, a small sample or checksum-like aggregate, and the exact group or file pattern used.
  • Treat cloud storage, TAP, and credentialed URLs as optional trust-boundary work. Document the plan and skip by default in automated scripts.
  • Never assume a Pandas-created HDF5 file is Vaex-readable. Convert through vaex.from_pandas(...).export_hdf5(...) when the source HDF5 layout is row oriented or otherwise Pandas-specific.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351