zarr-python
Skill by davila7
Guides an AI assistant through Zarr, a Python library for storing large N-dimensional arrays with chunking and compression. It suits scientific computing pipelines that need parallel I/O and cloud storage on S3 or GCS.
Install zarr-python
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/zarr-python ~/.claude/skills/zarr-pythonRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/zarr-python ~/.gemini/antigravity-cli/skills/zarr-pythonAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The zarr-python skill gives the assistant guidance on the Zarr library. Zarr stores large N-dimensional arrays in chunks, with compression applied to each chunk. The skill covers creating and opening arrays, NumPy-style reading and writing, and resizing or appending data. It also explains how to choose chunk shapes for access patterns, when to use sharding, and which compressors are available.
The skill also covers storage backends, including local files, memory, ZIP files, and cloud storage through s3fs and gcsfs. It describes groups for organizing arrays hierarchically, attributes for metadata, and integration with NumPy, Dask, and Xarray. It is aimed at developers and researchers who work with large datasets in scientific computing pipelines.
Written from the project's SKILL.md and checked against it.
What it can do
- Array creationCreates Zarr arrays with chunks, dtype, and compression, or from existing NumPy data.
- Indexing and I/OReads and writes slices, with coordinate, orthogonal, and block indexing.
- Chunking guidanceExplains chunk size and shape choices based on how data is accessed.
- ShardingGroups many small chunks into larger storage objects to reduce object counts.
- Compression optionsCovers Blosc, Gzip, and uncompressed codecs, with tips on speed and ratio.
- Storage backendsCovers local files, in-memory stores, ZIP files, and S3 or GCS cloud storage.
- Groups and attributesOrganizes arrays in hierarchical groups and attaches JSON metadata to them.
- NumPy, Dask, and XarrayShows how Zarr works with NumPy functions, lazy Dask arrays, and Xarray datasets.
What you need
- Python 3.11 or later
- uv package installer, as used in the install commands
- s3fs package for S3 storage
- gcsfs package for Google Cloud Storage
Try asking
- Create a chunked 10000x10000 float32 Zarr array at data/grid.zarr
- Explain how to choose chunk shapes for row-wise reads from a Zarr array
- Open a Zarr store on S3 with s3fs and load it as an Xarray dataset
Good to know
- Entire chunks must fit in memory during compression.
- Entire shards must fit in memory before writing.
- A ZipStore must be closed after writing or reading.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli-tool/components/skills/scientific/zarr-python/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md20 KB -
references/api_reference.md12 KB
Alternatives to zarr-python
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
zarr-python: common questions
What is Zarr used for?
The source describes Zarr as a Python library for storing large N-dimensional arrays with chunking and compression. It is aimed at efficient parallel I/O and cloud-native workflows.
Does zarr-python work with Dask and Xarray?
Yes. The source shows Dask arrays loaded lazily with da.from_zarr and Xarray datasets opened with xr.open_zarr.
Which cloud storage services does it support?
The source shows examples for Amazon S3 through s3fs and Google Cloud Storage through gcsfs.
How do I install zarr-python?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is zarr-python free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is zarr-python safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to zarr-python?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
