This skill wraps multiple cell type annotation strategies into a single Python class. It allows agents to flexibly choose between rule-based (markers), data-driven (CellTypist), or reasoning-based (LLM) approaches depending on the context.
When to Use This Skill
Initial Analysis: When processing raw AnnData objects.
Validation: When cross-referencing automated labels with known markers.
Discovery: When identifying rare cell types using LLM reasoning on marker lists.
Core Capabilities
Marker-Based Scoring: Scores cells based on provided gene lists (e.g., "T-cell": ["CD3D", "CD3E"]).
Deep Learning Reference: Wraps celltypist to transfer labels from massive atlases.
LLM Reasoning: Extracts top markers per cluster and constructs prompts for LLM interpretation.
Workflow
Load Data: Ensure data is in AnnData format (standard for Scanpy).
Choose Strategy:
Use Markers if you have a known gene panel.
Use CellTypist for broad immune/tissue profiling.
Use LLM for novel clusters.
Annotate: Run the corresponding method.
Inspect: Check adata.obs for the new annotation columns.
Example Usage
User: "Annotate this dataset looking for T-cells and B-cells."
Agent Action:
from universal_annotator import UniversalAnnotator
import scanpy as sc
adata = sc.read_h5ad('data.h5ad')
annotator = UniversalAnnotator(adata)
markers = {
'T-cell': ['CD3D', 'CD3E', 'CD8A'],
'B-cell': ['CD79A', 'MS4A1']
}
annotator.annotate_marker_based(markers)
# Results in adata.obs['predicted_cell_type']
1---2name: universal-single-cell-annotator3description: <!--4---5<!--6# COPYRIGHT NOTICE7# This file is part of the "Universal Biomedical Skills" project.8# Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>9# All Rights Reserved.10#11# This code is proprietary and confidential.12# Unauthorized copying of this file, via any medium is strictly prohibited.13#14# Provenance: Authenticated by MD BABU MIA1516-->1718---19name: 'universal-single-cell-annotator'20description: 'Annotate scRNA-seq'21measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes.22allowed-tools:23 - read_file24 - run_shell_command25---262728# Universal Single-Cell Annotator2930This skill wraps multiple cell type annotation strategies into a single Python class. It allows agents to flexibly choose between rule-based (markers), data-driven (CellTypist), or reasoning-based (LLM) approaches depending on the context.3132## When to Use This Skill3334* **Initial Analysis**: When processing raw AnnData objects.35* **Validation**: When cross-referencing automated labels with known markers.36* **Discovery**: When identifying rare cell types using LLM reasoning on marker lists.3738## Core Capabilities39401. **Marker-Based Scoring**: Scores cells based on provided gene lists (e.g., "T-cell": ["CD3D", "CD3E"]).412. **Deep Learning Reference**: Wraps `celltypist` to transfer labels from massive atlases.423. **LLM Reasoning**: Extracts top markers per cluster and constructs prompts for LLM interpretation.4344## Workflow45461. **Load Data**: Ensure data is in `AnnData` format (standard for Scanpy).472. **Choose Strategy**:48 * Use **Markers** if you have a known gene panel.49 * Use **CellTypist** for broad immune/tissue profiling.50 * Use **LLM** for novel clusters.513. **Annotate**: Run the corresponding method.524. **Inspect**: Check `adata.obs` for the new annotation columns.5354## Example Usage5556**User**: "Annotate this dataset looking for T-cells and B-cells."5758**Agent Action**:59```python60from universal_annotator import UniversalAnnotator61import scanpy as sc6263adata = sc.read_h5ad('data.h5ad')64annotator = UniversalAnnotator(adata)6566markers = {67 'T-cell': ['CD3D', 'CD3E', 'CD8A'],68 'B-cell': ['CD79A', 'MS4A1']69}7071annotator.annotate_marker_based(markers)72# Results in adata.obs['predicted_cell_type']73```747576<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->
Run npx skillmds@latest add biotender-max/universal-single-cell-annotator in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
<!-- It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
BioTender-max (@biotender-max) published this skill. Their other Agent Skills are listed on their SkillMD profile.