Skip to content

Chunked, compressed N-D arrays for cloud-scale pipelines that work with NumPy, Dask, and Xarray.

CCM score
65 of 100
skills.sh installs
239
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers array creation, indexing, resizing, and appending, plus chunking, sharding, and compression tuning for large datasets
  • Includes storage backends for local disk, in-memory, ZIP files, and S3 or GCS through s3fs and gcsfs
  • Explains how chunk shape should match access patterns, with a benchmark showing up to 65× speedups for row versus column reads
  • Designed for scientific computing pipelines that read and write large arrays in parallel across local and cloud storage

Install

$ npx -y skills add davila7/claude-code-templates --skill zarr-python -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Zarr Python

Overview

Zarr is a Python library for storing large N-dimensional arrays with chunking and compression. Apply this skill for efficient parallel I/O, cloud-native workflows, and seamless integration with NumPy, Dask, and Xarray.

Quick Start

Installation

uv pip install zarr

Requires Python 3.11+. For cloud storage support, install additional packages:

uv pip install s3fs  # For S3
uv pip install gcsfs  # For Google Cloud Storage

Basic Array Creation

import zarr
import numpy as np

# Create a 2D array with chunking and compression
z = zarr.create_array(
    store="data/my_array.zarr",
    shape=(10000, 10000),
    chunks=(1000, 1000),
    dtype="f4"
)

# Write data using NumPy-style indexing
z[:, :] = np.random.random((10000, 10000))

# Read data
data = z[0:100, 0:100]  # Returns NumPy array

Core Operations

Creating Arrays

Zarr provides multiple convenience functions for array creation:

# Create empty array
z = zarr.zeros(shape=(10000, 10000), chunks=(1000, 1000), dtype='f4',
               store='data.zarr')

Details

Repository
github.com/davila7/claude-code-templates
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

Questions

What is the zarr-python skill used for?

The zarr-python skill covers chunked N-dimensional arrays for cloud storage, with compressed arrays, parallel I/O, and S3 and GCS integration. It works with NumPy, Dask and Xarray for large-scale scientific computing pipelines. Agents use it to create, read, write and resize Zarr arrays.

How do I install the zarr-python skill?

Run npx -y skills add davila7/claude-code-templates --skill zarr-python -y in your project to install it. Once installed, the agent can apply Zarr chunking, compression and storage backends to your array workloads.

What do I need to use the zarr-python skill?

The skill's guide requires Python 3.11 or newer and the zarr package, installed with uv pip install zarr. For cloud storage you also need s3fs for S3 or gcsfs for Google Cloud Storage.

Which category does the zarr-python skill belong to?

The zarr-python skill sits in the Data Science & Analytics category on Claude Marketplaces. Other skills in that category include azure-kusto and analyze-project, and this one focuses on chunked array storage for scientific data.

More from davila7/claude-code-templates

All 398

Similar to Zarr Python

More Data Science & Analytics