Agent skill · Data & Analytics

cellxgene-census

Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs/downloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill cellxgene-census --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 4
SKILL.md size: 10 KB
Bundled scripts: none
Version: 1.2
Allowed tools: ReadWriteEditBash
Requires: Requires Python >=3.10,<3.13. Examples target cellxgene-census 1.17.x and the 2025-11-08 stable LTS Census; spatial…
Path: skills/cellxgene-census/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# CZ CELLxGENE Census ## Overview The CZ CELLxGENE Census provides programmatic access to a comprehensive, versioned collection of standardized single-cell and spatial transcriptomics data from CZ CELLxGENE Discover. This skill enables efficient querying and analysis of public Census releases without downloading whole datasets first. The Census includes: - **217+ million total cells** and **125+ million unique cells** in the 2025-11-08 stable LTS release - **1,845 datasets** in the 2025-11-08 stable LTS release - **Human, mouse, marmoset, rhesus macaque, and chimpanzee** data in the current schema - **Standardized metadata** (cell types, tissues, diseases, donors) - **Raw gene expression** matrices and source H5AD lookup/download helpers - **Pre-calculated summary counts, embeddings, and spatial data** - **Integration with AnnData, Scanpy, TileDB-SOMA, TileDB-SOMA-ML, and other analysis tools** ## When to Use This Skill This skill should be used when: - Querying single-cell expression data by cell type, tissue, or disease - Exploring available single-cell datasets and metadata - Training machine learning models on single-cell data - Performing large-scale cross-dataset analyses - I

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Installation and Setup
  4. Core Workflow Patterns
  5. Key Concepts and Best Practices
  6. Always Filter for Primary Data
  7. Specify Census Version for Reproducibility
  8. Estimate Query Size Before Loading
  9. Use tissuegeneral for Broader Groupings
  10. Select Only Needed Columns
  11. Check Dataset Presence for Gene-Specific Queries
  12. Two-Step Workflow: Explore Then Query
  13. Available Metadata Fields
  14. Cell Metadata (obs)
Ships with 3 files
  • references/census_schema.md
  • references/common_patterns.md
  • references/core_workflow_patterns.md
Commands it runs
uv pip install "cellxgene-census==1.17.*"
uv pip install "cellxgene-census[spatial]==1.17.*" "spatialdata[extra]>=0.2.5"
uv pip install "cellxgene-census==1.17.*" tiledbsoma-ml
More from scientific-agent-skills
All skills →
About this skill
What does the cellxgene-census skill do?

Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs/downloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill cellxgene-census --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going