Zarr-Python Large Array Guide
Helps Claude write correct Zarr 3.x code for chunked, compressed N-dimensional arrays on local disk or cloud object storage.
Data & AnalyticsIntermediate★ 33,030⑂ 3,248AI score 9/10Last updated: Aug 9, 2026
What it does
- Produces up-to-date Zarr 3.x code: array creation (
create_array,zeros,ones,full), opening arrays, NumPy-style and advanced indexing (vindex,oindex,blocks), resize and append. - Shows how to build group hierarchies, attach JSON-serializable
attrsmetadata, and inspect structure withtree(). - Points to bundled references for chunk sizing (~1 MB local, 5–100 MB in cloud), sharding, codec choice, fsspec S3/GCS stores, and credential hygiene (prefer IAM roles, never print secrets).
- Flags Zarr 2 → 3 breaking changes such as removed
create_dataset/require_datasetand their replacements.
Who it's for
- Researchers and data engineers handling GB–TB scale array data (climate, satellite, microscopy).
- Teams building parallel I/O pipelines with Dask and Xarray.
- Anyone migrating an existing Zarr 2 codebase to 3.x.
Example uses
- "Create a 10000×10000 float32 array with 1000×1000 chunks and write it to an S3 bucket" →
create_arraysnippet pluszarr[remote]/s3fs setup. - "Build a group hierarchy for temperature and precipitation with unit metadata" →
create_group+attrsexample. - "My old
create_datasetcall fails on zarr 3" → rewritten withcreate_arrayper the migration notes.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/HEAD/skills/zarr-python/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/zarr-python folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/zarr-python/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git && mkdir -p ~/.claude/skills && cp -r scientific-agent-skills/skills/zarr-python ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and go to your home directory:
cd ~ - Clone the repo:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create the skills folder if needed:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r scientific-agent-skills/skills/zarr-python ~/.claude/skills/ - Verify the
references/files came along:ls ~/.claude/skills/zarr-python - Restart Claude Code, then try: "use zarr to create a chunked array on S3".
- In your Python environment install the library separately:
uv pip install zarr(addzarr[remote]withs3fs/gcsfsfor cloud stores). Check the official docs for the true latest version before pinning.
View source on GitHub ↗License: MIT