SkillsReviewed · ai4s-research

Open Science large-file skill

Large-file is an AI assistant skill for researchers and developers inspecting large data files, but some formats require a full scan and its summaries have no strict size limit. It combines instructions with a Python probe that returns file structure, samples and selected statistics as JSON, helping an assistant choose which data ranges to read next.

Researched 16 Nov 2026

In short.

Large-file is an AI assistant skill for researchers and developers working with large scientific files, but the code does not fully enforce its promised limits on memory use and summary size. It provides format-specific inspection across tables, scientific arrays, genomics files and logs, with optional libraries for specialized formats. Its approach can reduce the data sent to an assistant, while full scans, incomplete format handling and potentially large metadata or samples remain practical constraints. Runtime behavior, performance and compatibility are untested.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises SKILL.md and large_file_probe.py in runtime/skills/core/large-file at revision a9e6302253ba7705a593dcd52d5102ea94411284, together with the repository's root LICENSE. The rest of the repository, third-party skills, dependency internals and user datasets are outside scope. No code was executed; assistant integration, format correctness, performance and memory behavior remain untested.

The overview

Resource identity

The large-file skill belongs to ai4s-research/open-science. The supplied folder contains SKILL.md, which describes the assistant workflow, and large_file_probe.py, which implements file inspection. The resource is a skill with a companion utility; the utility itself makes no model calls.

The assessed source is pinned to revision a9e6302253ba7705a593dcd52d5102ea94411284. Its original folder is [https://github.com/ai4s-research/open-science/tree/a9e6302253ba7705a593dcd52d5102ea94411284/runtime/skills/core/large-file].

Practical assessment

The resource addresses a useful problem: an assistant needs enough information to understand a file without receiving its entire contents. The separation between an initial JSON summary and a later targeted read gives users a concrete way to manage that problem.

Its usefulness depends on the format and the required accuracy. Explicit metadata readers, sampled values and JSON failure messages provide a practical starting point, but the implementation has gaps in compression handling, counting and output limits. Suitability for a production data workflow remains unassessed because nothing was executed.

Who it suits

The intended users are researchers and developers who ask AI assistants to work with scientific datasets larger than the assistant can reasonably read. Examples include simulation logs, sequencing files, multidimensional arrays and wide tables.

Beginners get a consistent description of columns, dimensions or sample identifiers before choosing an analysis. Experienced developers can inspect the JSON or adapt the standalone probe. Both groups still need enough format knowledge to recognize incomplete summaries and choose appropriate follow-up reads.

Supported inspection

The code provides readers for CSV/TSV tables, NDJSON, ordinary text and logs; Parquet, HDF5, FITS and NetCDF; FASTQ, FASTA and VCF; BAM/CRAM/SAM; GRIB; and ROOT. Output varies by format, such as column types, dataset shapes, variable dimensions, reference names or tree branches.

Table output includes inferred types, an approximate row count and head/tail samples. FASTQ output includes sampled identifiers and length statistics from up to the first 100,000 reads, although counting continues through the file. Log inspection extracts the last matching VASP energy values and an accuracy-related phrase. Missing optional libraries produce an unavailable result with an installation hint.

Using it

Requirements

The standalone probe needs Python 3 and access to a local file. Tables, NDJSON, text, logs, FASTQ, FASTA and VCF use the Python standard library. The supplied files do not declare a minimum Python version, supported operating systems or dependency versions.

Specialized readers require pyarrow for Parquet, h5py for HDF5, astropy for FITS, netCDF4 for NetCDF, pysam for alignment files, cfgrib or pygrib for GRIB, and uproot for ROOT. The documented assistant command assumes an OpenCode skill location under $XDG_CONFIG_HOME. Compatibility with other assistant hosts is not established.

How it works

The probe chooses a reader mainly from the filename extension, adds the file path and size, and emits one JSON object. The documentation calls this a memory pointer: it is a description of the file, rather than a programming-language pointer or a copy of the dataset.

The sample count defaults to five and is clamped between one and fifty. Some sampled strings are shortened to 200 characters, and text tails are read from the final 65,536 bytes. Other readers inspect metadata through format libraries.

Small output does not imply little disk work. Line counting, genomic record counting and log extraction can scan the complete file. After inspection, the assistant is expected to request specific rows, columns or array slices and state which ranges were read.

Getting started

The standalone usage is python large_file_probe.py DATA_FILE --sample 5. For the documented OpenCode layout, the command is python "$XDG_CONFIG_HOME/opencode/skills/large-file/large_file_probe.py" DATA_FILE --sample 5. That layout assumes the companion files are already installed and XDG_CONFIG_HOME resolves to the intended directory.

Install the relevant optional reader for the file format you need. Before passing the result to an assistant, inspect the JSON for error or introspection fields indicating failure or an unavailable dependency. The supplied folder provides no installer or evidence of a successful assistant integration.

Example workflow

For a hypothetical measurements.csv, the command python large_file_probe.py measurements.csv --sample 3 requests three sampled rows. The table reader is designed to return column names, inferred types, an approximate row count and head/tail samples. No example file was processed, so no output values are asserted.

If the summary identifies id and temp_c columns, a follow-up read could use pandas.read_csv("measurements.csv", usecols=["id", "temp_c"], nrows=10_000). This combines the documentation's column and row restrictions. Its usecols-only and Parquet column-selection examples do not themselves cap the number of rows loaded.

Assessment & evidence

Limitations

The advertised consistently tiny output and bounded memory are not enforced across formats. NDJSON samples retain complete parsed records, column names and other metadata can grow without a fixed cap, and text readers can encounter arbitrarily long lines. HDF5 and NetCDF collect full metadata lists before truncating displayed entries.

Counts and samples have accuracy limits. CSV row estimates count newline characters rather than CSV records, affecting quoted multiline fields and files without a final newline. A tail sample can begin inside a record. NDJSON keys come only from initially sampled lines, while its count also uses newline characters. FASTQ parsing assumes four lines per record without validating the structure.

Compression support is uneven. Genomic text readers detect gzip, but CSV.gz and NDJSON.gz fall through to ordinary text handling. Format detection strips .bz2 for some formats without providing a bzip2 reader. Unrecognized binary formats also fall back to text decoding.

FITS inspection accesses hdu.data to obtain shapes despite the header-only description; actual loading and memory behavior are untested. Log extraction recognizes a few patterns rather than validating scientific convergence. Many probe failures still produce process exit status zero, so automation must inspect the JSON result rather than relying on exit status alone.

Why the approach can help

File structure and a small sample can help an assistant choose a suitable analysis without filling its context with raw data. The code makes that approach concrete through schemas, dimensions, identifiers and selected log numbers.

The benefit depends on what is omitted. Types inferred near the beginning of a table may miss later values, and sampled keys may miss later JSON fields. A compact summary therefore supports planning a targeted read; it does not establish dataset completeness or scientific correctness. The documentation's token-saving anecdote and example output sizes have no accompanying reproducible measurements in the supplied files.

Alternative approaches

For a known format, the libraries already used by this resource offer a more direct route. Examples include pyarrow metadata inspection for Parquet, h5py dataset inspection and slicing for HDF5, or a pandas CSV read with explicit row and column limits.

Direct library use gives developers control over parsing and range selection, while this skill provides one entry point across formats and instructions for an assistant. No competing skill, comparative benchmark or evidence of relative performance is supplied.

Source evidence

The instructions describe intended behavior; the Python source establishes implemented readers, limits and error handling. Both are available at their original pinned locations: [https://raw.githubusercontent.com/ai4s-research/open-science/a9e6302253ba7705a593dcd52d5102ea94411284/runtime/skills/core/large-file/SKILL.md] and [https://raw.githubusercontent.com/ai4s-research/open-science/a9e6302253ba7705a593dcd52d5102ea94411284/runtime/skills/core/large-file/large_file_probe.py].

The supplied scope contains no test suite, execution logs or reproducible benchmark supporting runtime claims. Source inspection supports the behavior described here, while actual parser results, dependency interactions and resource use remain untested.

Access & freshness

Costs

The supplied files state no price, subscription or support charges. The script contains no model-service or payment integration. Charges for an assistant used alongside it are unknown.

Operating costs depend on local compute, storage access and optional dependency setup. Full-file scans can add substantial reading time even when little data reaches the assistant. No measured runtime, peak memory, token savings or monetary costs are established.

Licence and reuse

The repository LICENSE grants MIT permission for the software and associated documentation, with copyright attributed to AI4S Workbench contributors in 2026. It permits use, modification, redistribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. It provides no warranty.

The notice separately states that third-party scientific skills have their own licences. No separate licence appears in the supplied core large-file folder. Dependency licences and rights to any inspected datasets are not established by these files. The original notice is [https://raw.githubusercontent.com/ai4s-research/open-science/a9e6302253ba7705a593dcd52d5102ea94411284/LICENSE].

Version and freshness

The supplied snapshot identifies revision a9e6302253ba7705a593dcd52d5102ea94411284 and a capture time of 2026-11-16T05:38:19.092Z. These findings apply to those file contents.

A release version, commit date and supported dependency versions are not established. Changes after this snapshot and compatibility with newer library releases are unknown.

Practical next steps

Before relying on the probe, compare its output with known counts, schemas and dimensions for representative files. Measure runtime and memory on the formats you actually use, especially compressed tables, large JSON records and FITS data. Inspect JSON failure fields in any automated integration.

Developers adapting it should consider explicit record and metadata size limits, compression-aware readers, record-aware counting and nonzero exit status for failed inspection. For assistant use, check which sample values enter the JSON, choose explicit bounds for follow-up reads and record the columns or ranges used.

Evidence for this report

LICENSEnotice · checked 2026-11-16
runtime/skills/core/large-file/SKILL.mdselected · checked 2026-11-16