zarr-python
Skill by K-Dense-AI
Guides an AI assistant through Zarr-Python 3.4.0 to store and query chunked N-D scientific arrays. It is for researchers and engineers handling large array data in Python.
Install zarr-python
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/zarr-python ~/.claude/skills/zarr-pythonRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/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
This skill guides an AI assistant through working with Zarr-Python 3.4.0, a library for chunked N-D scientific arrays and hierarchical stores. It covers codecs, sharding, partial reads, cloud object storage on S3 and GCS, and interoperability with NumPy, Dask and Xarray.
The workflow asks the assistant to inspect data first, choose chunks for real selections, write bounded blocks to a new destination, and reopen the store read-only to compare values. It also covers format migration and preserving scientific metadata such as dimension names, units and masks. It is aimed at researchers and engineers working with large array data in Python.
Written from the project's SKILL.md and checked against it.
What it can do
- Array roundtripCreates a chunked array with a codec, writes it in blocks, then reopens and verifies it.
- Codecs and shardingExplains codec choice, default codecs, and sharding with shard dimensions that are multiples of chunks.
- IndexingCovers coordinate, orthogonal and block indexing, plus bounded selections to avoid full materialization.
- Resize and appendShows how to append data and resize arrays along an axis, with notes on boundary chunks.
- Groups and attributesCreates group hierarchies, sets JSON-compatible attributes, and prints the logical group tree.
- Storage backendsReference notes on local, memory, ZIP, ObjectStore, fsspec, S3, GCS and HTTP storage paths.
- NumPy, Dask and Xarray integrationDescribes bounded NumPy and Dask operations, Xarray dimensions and masks, and consolidation.
- Format migrationCovers API versus format migration, metadata-only CLI behavior, and a copied-store verification workflow.
What you need
- Python 3.12+
- zarr 3.4.0 with NumPy 2+
- zarr[remote] and a protocol backend for remote I/O
- Network access and provider credentials for private stores
- zarr[cli] for the migration CLI
Try asking
- Create a chunked Zarr array for my time series data with dimension names and units.
- Show me how to read only a subset of a large Zarr store without loading all of it.
- Migrate my existing Zarr v2 store to format 3 and verify the copy matches.
Good to know
- Negative-step slices are unsupported.
- Format-3 metadata consolidation is experimental.
- Resizing is not secure erasure or a missingness policy.
- Remote snippets are illustrative and need a real authorized store.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/zarr-python/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Write Edit Bash
-
SKILL.md9 KB -
references/api_reference.md5 KB -
references/chunking_and_compression.md5 KB -
references/integration.md6 KB -
references/performance_and_patterns.md6 KB
Show all 8 files
-
references/review.md2 KB -
references/storage_backends.md5 KB -
references/v3_migration.md4 KB
Alternatives to zarr-python
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
zarr-python: common questions
Does this skill work with Zarr format 2 data?
The source says the 3.4.0 release reads and writes formats 2 and 3, and new arrays default to format 3.
Can I use this skill with Xarray and Dask?
Yes. The skill covers NumPy, Dask and Xarray interoperability, including bounded operations and Xarray dimensions and masks.
Does a successful open prove my data is complete?
No. The source says a missing or unwritten chunk normally reads as fill_value, so a successful open alone does not prove completeness.
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: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
