Agent skill

Prepare Dataset

by mehta-lab in mehta-lab/VisCy

Prepare datasets for training on VAST storage (NFS - VAST rechunked zarr v3 pipeline).

BSD-3-ClauseAuto-check passedAI & LLM Engineering

Install Prepare Dataset

skills CLI
$ npx skills add mehta-lab/VisCy --skill prepare-dataset -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mehta-lab/VisCy prepare-dataset --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mehta-lab/VisCy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/prepare-dataset .claude/skills/prepare-dataset && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
prepare-dataset
GitHub stars
104
Token cost
~1.1k tokens
SKILL.md length
278 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Prepare datasets for training on VAST storage (NFS - VAST rechunked zarr v3 pipeline).

  • Works in 5 steps: Airtable validation — dataset must be… → Discover wells/channels — reads NFS zarr… → biahub concatenate — rechunks to zarr v3… → …
  • The user asks to prepare a dataset
  • SKILL.md covers Overview, Pipeline Steps, Key Files and Commands, plus 5 more sections
  • Calls uv and conda

What it does

Prepare Dataset is an agent skill from mehta-lab/VisCy. Prepare datasets for training on VAST storage (NFS - VAST rechunked zarr v3 pipeline). Use when the user asks to "prepare a dataset", "run prepare", "rechunk dataset", "copy dataset to VAST", "run QC and preprocess", or references the prepare CLI.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering. It works with Zarr and Airtable. The repository describes itself as: computer vision models for single-cell phenotyping. The licence is BSD-3-Clause.

When your agent uses it

  • The user asks to prepare a dataset
  • Rechunk dataset
  • Copy dataset to VAST
  • Run QC and preprocess

Example prompts

  • “prepare a dataset”
  • “run prepare”
  • “rechunk dataset”
  • “/prepare-dataset”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Airtable validation — dataset must be registered
  2. Discover wells/channels — reads NFS zarr via iohub; auto-detects raw channels (Phase3D + raw *)
  3. biahub concatenate — rechunks to zarr v3 with sharding (submits own SLURM jobs via submitit)
  4. Copy tracking zarr — rsync from NFS
  5. QC + preprocess — SLURM job running focus slice QC (GPU) and normalization (CPU) in parallel

What it can do on your machine

Read from SKILL.md and the folder at commit 4b62365. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv
    • conda

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Prepare Dataset loads about 1.1k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 278 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mehta-lab/VisCy at commit 4b62365, republished under its BSD-3-Clause licence (© mehta-lab). 278 words, ~1,133 tokens.

Download SKILL.mdSave it as .claude/skills/prepare-dataset/SKILL.md (or your agent's skills folder).
name
prepare-dataset
description
Prepare datasets for training on VAST storage (NFS -> VAST rechunked zarr v3 pipeline). Use when the user asks to "prepare a dataset", "run prepare", "rechunk dataset", "copy dataset to VAST", "run QC and preprocess", or references the `prepare` CLI.

Prepare Dataset for Training (NFS -> VAST)

Overview

This skill runs the prepare CLI from applications/airtable/ to create rechunked zarr v3 copies of NFS datasets on VAST storage, with QC (focus slice) and preprocessing (normalization stats).

Pipeline Steps

  1. Airtable validation — dataset must be registered
  2. Discover wells/channels — reads NFS zarr via iohub; auto-detects raw channels (Phase3D + raw *)
  3. biahub concatenate — rechunks to zarr v3 with sharding (submits own SLURM jobs via submitit)
  4. Copy tracking zarr — rsync from NFS
  5. QC + preprocess — SLURM job running focus slice QC (GPU) and normalization (CPU) in parallel

Key Files

  • CLI: applications/airtable/src/airtable_utils/prepare_cli.py
  • Core logic: applications/airtable/src/airtable_utils/prepare.py
  • Default config: applications/airtable/configs/prepare_config.yml

Commands

bash
# Check status of one or more datasets
uv run --package airtable-utils \
    prepare status <dataset_name> [<dataset_name> ...] \
    -c applications/airtable/configs/prepare_config.yml

# Dry run (generate configs + scripts, don't execute)
uv run --package airtable-utils \
    prepare run <dataset_name> \
    -c applications/airtable/configs/prepare_config.yml --dry-run

# Full run
uv run --package airtable-utils \
    prepare run <dataset_name> \
    -c applications/airtable/configs/prepare_config.yml

# Force overwrite existing VAST zarr
uv run --package airtable-utils \
    prepare run <dataset_name> \
    -c applications/airtable/configs/prepare_config.yml --force

Running Multiple Datasets

Run prepare run sequentially for each dataset. The concatenation step blocks until biahub's internal SLURM jobs complete, then submits the QC+preprocess SLURM job. Example:

bash
for ds in 2025_01_28_A549_G3BP1_ZIKV_DENV 2025_04_15_A549_H2B_CAAX_ZIKV_DENV; do
    uv run --package airtable-utils \
        prepare run "$ds" \
        -c applications/airtable/configs/prepare_config.yml
done

Output Layout

/hpc/projects/organelle_phenotyping/datasets/{dataset_name}/
  {dataset_name}.zarr       # zarr v3 rechunked (OME-Zarr 0.5)
  tracking.zarr             # copied from NFS
  crop_concat.yml           # generated biahub config
  qc_config.yml             # generated QC config
  sbatch_overrides.sh       # SLURM overrides for biahub (if configured)
  01_concatenate.sh         # bash: biahub concatenate + tracking copy
  02_qc_preprocess.sh       # SLURM: QC + preprocess

Config Reference

The config at applications/airtable/configs/prepare_config.yml has these key settings:

SectionFieldDefaultNotes
concatenatechannel_namesnull (auto-detect)Set explicitly to override; auto picks Phase3D + raw *
concatenatechunks_czyx[1, 16, 256, 256]~4MB chunks for training
concatenateshards_ratio[1, 1, 8, 8, 8]Sharding for zarr v3
concatenatesbatch_overrides{partition: preempted}Overrides biahub's internal SLURM via -sb
qcchannel_names[Phase3D]Channels for focus slice detection
slurm.qc_preprocesspartitiongpuQC needs GPU for torch FFT
slurm.qc_preprocesscpus_per_task16
slurm.qc_preprocesstime01:00:00

Extracting Dataset Names from a Collection YAML

To get unique dataset names from a collection:

bash
uv run python3 -c "
import yaml
from pathlib import Path
with open('path/to/collection.yml') as f:
    col = yaml.safe_load(f)
datasets = sorted(set(
    Path(e['data_path']).parts[
        Path(e['data_path']).parts.index('organelle_dynamics') + 1
    ]
    for e in col['experiments']
    if 'organelle_dynamics' in e['data_path']
))
for d in datasets:
    print(d)
"

Troubleshooting

  • "Dataset not found in Airtable": Register it first with the airtable-register skill
  • Channel validation fails: Check channel_names in config; set to null for auto-detection
  • biahub concatenate fails: Check conda env exists (conda run -n biahub which biahub)
  • QC/preprocess SLURM job pending: Check squeue -u $USER and partition availability

© mehta-lab, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/prepare-dataset of mehta-lab/VisCy.

Open the folder on GitHubat commit 4b62365

Compare with similar skills

Prepare Dataset next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Prepare Dataset compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prepare Dataset this skillmehta-lab/VisCy104—~1.1kAutomated safety check: PassBSD-3-Clause
Geotesseraucam-eo/geotessera354—~1.6kAutomated safety check: PassMIT
Chroma Vector DatabaseOrchestra-Research/AI-Research-SKILLs13k8 repos~2.3kAutomated safety check: PassMIT
Codebase Managementgiancarloerra/SocratiCode3.3k1 repos~1.8kAutomated safety check: PassAGPL-3.0
Pgvector Semantic Searchtimescale/pg-aiguide1.9k1 repos~3.8kAutomated safety check: PassApache-2.0
Hermes Memory Providersmnemosyne-oss/mnemosyne3.4k—~1.8kAutomated safety check: PassMIT

Similar skills

  • Geotessera

    ucam-eo/geotessera

    Read Tessera satellite embeddings with the geotessera Python library.

    354 GitHub stars~1.6k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • Chroma Vector Database

    Orchestra-Research/AI-Research-SKILLs

    Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.

    13k GitHub starsUsed in 8 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Codebase Management

    giancarloerra/SocratiCode

    Set up, index, and manage SocratiCode codebase indexing. An agent skill from giancarloerra/SocratiCode.

    3.3k GitHub starsUsed in 1 repo~1.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Pgvector Semantic Search

    timescale/pg-aiguide

    A skill your agent uses for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search.

    1.9k GitHub starsUsed in 1 repo~3.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Hermes Memory Providers

    mnemosyne-oss/mnemosyne

    Install and configure Mnemosyne as a Hermes Agent memory provider — local SQLite with vector search, episodic consolidation, and temporal knowledge graphs.

    3.4k GitHub stars~1.8k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Diagnose and correct GPT-QModel tokenizer initialization, tokenization normalization, special-token handling, prompt rendering, and chat-template problems.

    1.3k GitHub stars~1.1k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed

More from mehta-lab/VisCy

  • Airtable Register

    mehta-lab/VisCy

    Register zarr positions into the Computational Imaging Database on Airtable, write channelsmetadata/experimentmetadata to zarr .zattrs, or bulk-update Airtable records via MCP.

    104 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Query Airtable MCP to fetch experiment metadata and generate a DynaCLR collection YAML for training

    104 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Hf Dynacell

    mehta-lab/VisCy

    Develop, deploy, and maintain the DynaCell virtual-staining HuggingFace demo hosted at biohub/dynacell (ZeroGPU).

    104 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Prepare Dataset

What does Prepare Dataset do?

Prepare datasets for training on VAST storage (NFS - VAST rechunked zarr v3 pipeline). Prepare Dataset is an agent skill from mehta-lab/VisCy. Prepare datasets for training on VAST storage (NFS - VAST rechunked zarr v3 pipeline).

When should I use Prepare Dataset?

Prepare Dataset fits situations like: the user asks to prepare a dataset; rechunk dataset; copy dataset to VAST; run QC and preprocess.

How do I install Prepare Dataset in Claude Code?

Run `npx skills add mehta-lab/VisCy --skill prepare-dataset -a claude-code`. Or copy the skill folder (.claude/skills/prepare-dataset in mehta-lab/VisCy) into .claude/skills/prepare-dataset in your project. Claude Code loads it when a task matches its description.

How do I install Prepare Dataset in Codex?

Run `npx skills add mehta-lab/VisCy --skill prepare-dataset -a codex`. Or copy the skill folder (.claude/skills/prepare-dataset in mehta-lab/VisCy) into .agents/skills/prepare-dataset in your project. Codex loads it when a task matches its description.

Can I use Prepare Dataset in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mehta-lab/VisCy --skill prepare-dataset -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/prepare-dataset, .gemini/skills/prepare-dataset, .github/skills/prepare-dataset and .opencode/skills/prepare-dataset in your project.

What does Prepare Dataset need to run?

Going by SKILL.md and its folder, Prepare Dataset needs the command-line tools its instructions call (uv and conda). Our summary lists: Python 3.

Does Prepare Dataset access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Prepare Dataset safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Prepare Dataset use?

Prepare Dataset is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Prepare Dataset use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Prepare Dataset?

Skills that share tags, products or a category with Prepare Dataset: Geotessera (ucam-eo/geotessera, 354 stars), Chroma Vector Database (Orchestra-Research/AI-Research-SKILLs, 13k stars), Codebase Management (giancarloerra/SocratiCode, 3.3k stars) and Pgvector Semantic Search (timescale/pg-aiguide, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prepare Dataset?

mehta-lab (a GitHub organization) maintains it in mehta-lab/VisCy, which has 104 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 8, 2026.

Source: mehta-lab/VisCy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.